Digi International Inc XBEEPRO2 Manual Do Utilizador

Página de 155
XBee®/XBee‐PRO® ZB RF Modules 
© 2011 Digi International, Inc.
     81
The node identification frame is similar to the node discovery response frame – it contains the device’s address, 
node identifier string (NI command), and other relevant data. All API devices that receive the node identification 
frame send it out their UART as an API Node Identification Indicator frame (0x95). 
Associate LED
The Associate pin (pin 15) can provide indication of the device’s network status and diagnostics information. To 
take advantage of these indications, an LED can be connected to the Associate pin as shown in the figure above. 
The Associate LED functionality is enabled by setting the D5 command to 1 (enabled by default). If enabled, the 
Associate pin is configured as an output and will behave as described in the following sections.
Joined Indication
The Associate pin indicates the network status of a device. If the module is not joined to a network, the 
Associate pin is set high. Once the module successfully joins a network, the Associate pin blinks at a regular 
time interval. This is shown in the following figure.
Joined Status of a Device 
The LT command defines the blink time of the Associate pin. If set to 0, the device uses the default blink time 
(500ms for coordinator, 250ms for routers and end devices).
Diagnostics Support
The Associate pin works with the commissioning pushbutton to provide additional diagnostics behaviors to aid in 
deploying and testing a network. If the commissioning push button is pressed once, and the device has not 
joined a network, the Associate pin blinks a numeric error code to indicate the cause of join failure. The number 
of blinks is equal to (AI value – 0x20). For example, if AI=0x22, 2 blinks occur.
If the commissioning push button is pressed once, and the device has joined a network, the device transmits a 
broadcast node identification packet. If the Associate LED functionality is enabled (D5 command), a device that 
receives this transmission will blink its Associate pin rapidly for 1 second.
The following figures demonstrate these behaviors.
 AI = 0x22
Δt
Device Not Joined
Device has joined a network
Associate
The associate pin can indicate the joined status of a device . Once the device has joined a 
network,  the associate pin toggles state at a regular interval  (Δt). The time can be set by 
using the LT command.
Associate
(D5 = 1 
Device not joined)
A single commissioning button press when the device has not joined a network that 
causes the associate pin to blink to indicate the AI Code where: AI = # blinks + 0x20. 
In this example, AI = 0x22.
AD0/DIO0