Module Startup Logic Analyzer Trace - Coordinator

The following images show this example as captured on a logic analyzer. This trace can be downloaded and viewed with free software from www.saleae.com. This is the best way to analyze the data, as it allows you to zoom in/out and measure timing.

The image below shows the entire operation:

Reset ZigBee Module
First, we toggle the RESET line of the module for 1mSec and you can see the POLL at the end

Next, once SRDY transitions low we POLL:

Then, when SRDY transitions high we retrieve the SYS_RESET_IND message:

Set Startup Options
We use this command to erase any previous network configuration. We use the ZB_WRITE_CONFIGURATION command with parameter ZCD_NV_STARTUP_OPTION.

Since this is a Synchronous Request Message it has a corresponding response, shown here:

Reset Module
We reset the module again to apply the changes.

Again, the familiar SYS_RESET_IND:

Set Device Type
Here we tell the module that it is a Coordinator. We use the ZB_WRITE_CONFIGURATION command with parameter ZCD_NV_LOGICAL_TYPE.

... and the familiar SRSP:

Set Channel List
Here we configure the module for a set of channels to operate on. If we don't do this then the module will default to channel 11.

... and the SRSP:

Set Callbacks
This command configures how we receive messages back from the Module.

... and the SRSP:

Register Application
This configures the module for our application - endpoints, binding, etc. The command is too long to fit on one screenshot so it has been divided into two below.

First half:

Second half:

... and the SRSP:

Start Application
Once we're done configuring everything, we tell the module to join a network (or if a Coordinator, to start a network) using the settings we previously uploaded.

... and the SRSP:

Wait for Successful Join
Once started, we wait to receive indication that we've joined the network successfully. After awhile SRDY transitions low so we POLL:

Now we receive the last message in this sequence, a ZDO_STATE_CHANGE_IND with status of DEV_ZB_COORD which indicates that we are now on the network.

