Zigbee networks Zigbee coordinator operation
Digi XBee® 3 Zigbee® RF Module
84
Command Description
II Set the initial 16-bit PAN ID to match the read OI value.
SC Set the scan channels bitmask to enable the read operating channel (CH command).
For example, if the operating channel is 0x0B, set SC to 0x0001. If the operating
channel is 0x17, set SC to 0x1000.
ZS Set the stack profile to match the read ZS value.
II is the initial 16-bit PAN ID. Under certain conditions, the Zigbee stack can change the 16-bit PAN ID
of the network. For this reason, you cannot save the II command using the WR command. Once II is
set, the coordinator leaves the network and starts on the 16-bit PAN ID specified by II.
Example: start a coordinator
1. Set CE (Device Role) to 1 to indicate to the local device that it should form a network. Use WR
(Write) to save the changes.
2. Set SC and ID to the desired scan channels and PAN ID values. The defaults are usually
sufficient.
3. If you change SC or ID from the default, issue the WR command to save the changes.
4. If you change SC or ID from the default, apply changes (make SC and ID changes take effect)
either by sending the AC command or by exiting AT Command mode.
5. If an Associate LED has been connected, it starts blinking once the coordinator has selected a
channel and PAN ID and the network has started.
6. The API Modem Status frame (Coordinator Started) is sent out the serial port when using API
mode.
7. Reading the AI command (association status) returns a value of 0, indicating a successful
startup.
8. Reading the MY command (16-bit address) returns a value of 0, the Zigbee-defined 16-bit
address of the coordinator.
After startup, the coordinator allows joining based on its NJ value. We highly recommend that you
issue a WR command to write all applied settings to flash.
Example: replace a coordinator (security disabled)
1. Read the OP, OI, CH, and ZS commands on the running coordinator.
2. Set the CE, ID, SC, and ZS parameters on the new coordinator to match the existing
coordinator, followed by WR command to save these parameter values.
3. Turn off the running coordinator.
4. Set the II (Initial 16-bit PAN ID) parameter on the new coordinator to match the read OI value
on the old coordinator.
5. Wait for the new coordinator to start (AI = 0).