
ZigBee networks
ZigBee coordinator operation
XBee/XBee-PRO® S2C ZigBee® RF Module
61
Leave a network
The following mechanisms cause the coordinator to leave its current PAN and start a new network
based on its network formation parameter values.
n
Change the
ID
command such that the current 64-bit PAN ID is invalid.
n
Change the
SC
command such that the current channel (
CH
) is not included in the channel
mask.
n
Change the
ZS
or any of the security command values (excluding
NK
).
n
Issue the
NR0
command to cause the coordinator to leave.
n
Issue the
NR1
command to send a broadcast transmission, causing all devices in the network
to leave and migrate to a different channel.
n
Press the commissioning button 4 times or issue the
CB
command with a parameter of 4.
n
Issue a network leave command.
Note
Changes to
ID
,
SC
,
ZS
, and security command values only take effect when changes are applied
(
AC
or
CN
commands).
Replace a coordinator (security disabled only)
On 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, you can configure a replacement XBee
coordinator 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
Avoid having two coordinators on the same channel, stack profile, and PAN ID (16-bit and 64-bit)
as it can cause problems in the network. When replacing a coordinator, turn off the old coordinator
before starting the new coordinator.
To replace a coordinator, read the following commands from a device on the network:
Command
Description
OP
Read the operating 64-bit PAN ID.
OI
Read the operating 16-bit PAN ID.
CH
Read the operating channel.
ZS
Read the stack profile.
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 the commands from a device on the
network, program the parameter values into the new coordinator using the following commands.
Command Description
ID
Set the 64-bit PAN ID to match the read
OP
value.