Digi International Inc XBEEPRO2 Manual Do Utilizador

Página de 155
XBee®/XBee‐PRO® ZB RF Modules 
© 2011 Digi International, Inc.
     38
(broadcast) transmission on each potential channel. All nearby coordinators and routers (that have already 
joined a ZigBee network) will respond to the beacon request by sending a beacon back to the coordinator. The 
beacon contains information about the PAN the device is on, including the PAN identifiers (16-bit and 64-bit). 
This scan (collecting beacons on the potential channels) is typically called an active scan or PAN scan.
After the coordinator completes the channel and PAN scan, it selects a random channel and unused 16-bit PAN 
ID to start on. 
Security Policy
The security policy determines which devices are allowed to join the network, and which device(s) can 
authenticate joining devices. See chapter 5 for a detailed discussion of various security policies.
Persistent Data
Once a coordinator has started a network, it retains the following information through power cycle or reset 
events:
•PAN ID
•Operating channel
•Security policy and frame counter values
•Child table (end device children that are joined to the coordinator).
The coordinator will retain this information indefinitely until it leaves the network. When the coordinator leaves 
a network and starts a new network, the previous PAN ID, operating channel, and child table data are lost.
XBee ZB Coordinator Startup
The following commands control the coordinator network formation process.
Network formation commands used by the coordinator to form a network.
Once the coordinator starts a network, the network configuration settings and child table data persist through 
power cycles as mentioned in the "Persistent Data" section. 
When the coordinator has successfully started a network, it
•Allows other devices to join the network for a time (see NJ command)
•Sets AI=0
•Starts blinking the Associate LED
•Sends an API modem status frame ("coordinator started") out the UART (API firmware only).
Command
Description
ID
Used to determine the 64-bit PAN ID. If set to 0 (default), a random 64-bit PAN ID will be selected.
SC
Determines the scan channels bitmask (up to 16 channels) used by the coordinator when forming a 
network. The coordinator will perform an energy scan on all enabled SC channels. It will then perform a 
PAN ID scan and then form the network on one of the SC channels.
SD
Set the scan duration period. This value determines how long the coordinator performs an energy scan or 
PAN ID scan on a given channel.
ZS
Set the ZigBee stack profile for the network.
EE
Enable or disable security in the network.
NK
Set the network security key for the network. If set to 0 (default), a random network security key will be 
used.
KY
Set the trust center link key for the network. If set to 0 (default), a random link key will be used.
EO
Set the security policy for the network.