
ZigBee networks
End device operation
XBee/XBee-PRO® S2C ZigBee® RF Module
72
configuration commands (
EE
,
KY
). If the end device's PAN ID, operating channel, stack profile, or
security policy is invalid, the end device will leave the network and attempt to join a new network
based on its network joining command values.
To prevent the end device from leaving an existing network, the
WR
command should be issued after
all network joining commands have been configured in order to retain these settings through power
cycle or reset events.
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 four times or issue the
CB
command with a parameter of 4.
n
The parent of the end device parent powers down or the end device moves out of range of the
parent such that the end device fails to receive poll acknowledgment messages.
Note
Changes to command values only take effect when changes are applied (
AC
or
CN
commands).
Example: join a network
After starting a coordinator that is allowing joins, the following steps cause a router to join the
network:
1. Set
ID
to the desired 64-bit PAN ID, or to 0 to join any PAN.
2. Set
SC
to the list of channels to scan to find a valid network.
3. If you
SC
or
ID
from the default, apply changes (that is, make
SC
and
ID
changes take effect) by
issuing the
AC
or
CN
command.
4. The Associate LED starts blinking once the router has joined a PAN.
5. If the Associate LED is not blinking, read the
AI
command to determine the cause of join failure.
6. Once the router joins, the
OP
and
CH
commands indicate the operating 64-bit PAN ID and
channel the end device joined.
7. The
MY
command reflects the 16-bit address the router received when it joined.
8. The API Modem Status frame (“Associated”) is sent out the serial port when using API mode.
9. The joined end device attempts to enter low power sleep modes based on its sleep
configuration commands (
SM
,
SP
,
SN
,
ST
,
SO
).