Digi International Inc XBEEPRO2 Manual Do Utilizador
XBee®/XBee‐PRO® ZB RF Modules
© 2011 Digi International, Inc.
43
The following commands control the router joining process.
Once the router joins a network, the network configuration settings and child table data persist through power
cycles as mentioned in the "Persistent Data" section previously. If joining fails, the status of the last join
attempt can be read in the AI command register.
cycles as mentioned in the "Persistent Data" section previously. If joining fails, the status of the last join
attempt can be read in the AI command register.
If any of the above command values change, when command register changes are applied (AC or CN
commands), the router will leave its current network and attempt to discover and join a new valid network.
commands), the router will leave its current network and attempt to discover and join a new valid network.
When a ZB router has successfully joined a network, it:
•Allows other devices to join the network for a time
•Sets AI=0
•Starts blinking the Associate LED
•Sends an API modem status frame ("associated") out the UART (API firmware only).
•Sets AI=0
•Starts blinking the Associate LED
•Sends an API modem status frame ("associated") out the UART (API firmware only).
Command
Description
ID
Sets the 64-bit PAN ID to join. Setting ID=0 allows the router to join any
64-bit PAN ID.
SC
Set the scan channels bitmask that determines which channels a router
will scan to find a valid network. SC on the router should be set to match
SC on the coordinator. For example, setting SC to 0x281 enables
scanning on channels 0x0B, 0x12, and 0x14, in that order.
SD
Set the scan duration, or time that the router will listen for beacons on
each channel.
ZS
Set the stack profile on the device.
EE
Enable or disable security in the network. This must be set to match the
EE value (security policy) of the coordinator.
KY
Set the trust center link key. If set to 0 (default), the link key is expected to
be obtained (unencrypted) during joining.