XBee®/XBee‐PRO® ZB SMT RF Modules
policy is not valid based on its network and security configuration settings, then the coordinator will leave the
network and attempt to form a new network based on its network formation command values.
To prevent the coordinator from leaving an existing network, the WR command should be issued after all
network formation commands have been configured in order to retain these settings through power cycle or
reset events.
Leaving a Network
There are a couple of mechanisms that will cause the coordinator to leave its current PAN and start a new
network based on its network formation parameter values. These include the following:
•Change the ID command such that the current 64-bit PAN ID is invalid.
•Change the SC command such that the current channel (CH) is not included in the channel mask.
•Change the ZS or any of the security command values (excluding NK).
•Issue the NR0 command to cause the coordinator to leave.
•Issue the NR1 command to send a broadcast transmission, causing all devices in the network to leave and
migrate to a different channel.
•Press the commissioning button 4 times or issue the CB command with a parameter of 4.
•Issue a network leave command.
Note that changes to ID, SC, ZS, and security command values only take effect when changes are applied (AC
or CN commands).
Replacing a Coordinator (Security Disabled Only)
In rare occasions, it may become necessary to replace an existing coordinator in a network with a new physical
device. If security is not enabled in the network, a replacement XBee coordinator can be configured with the
PAN ID (16-bit and 64-bit), channel, and stack profile settings of a running network in order to replace an
existing coordinator.
NOTE: Having two coordinators on the same channel, stack profile, and PAN ID (16-bit and 64-bit) can cause
problems in the network and should be avoided. When replacing a coordinator, the old coordinator should be
turned off before starting the new coordinator.
To replace a coordinator, the following commands should be read from a device on the network:
AT Command
Description
OP
OI
Read the operating 64-bit PAN ID.
Read the operating 16-bit PAN ID.
Read the operating channel.
Read the stack profile.
CH
ZS
Each of the commands listed above can be read from any device on the network. (These parameters will be the
same on all devices in the network.) After reading these commands from a device on the network, these
parameter values should be programmed into the new coordinator using the following commands.
AT Command
Description
ID
II
Set the 64-bit PAN ID to match the read OP value.
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.
© 2010 Digi International, Inc.
39