Examples; Starting An Xbee Network - AG Electronica XBee 2 Series Manual

Table of Contents

Advertisement

www.agelectronica.com
8.  Examples

8.0.1. Starting an XBee Network

www.agelectronica.com
Start the coordinator
1.
Determine the operating channels list using the SC (Scan Channels) command and the PAN
ID to operate using the ID (PAN ID) command. The default SD (Scan Duration) parameter
value should suffice. If these values are changed from the defaults, they should be written
to non-volatile memory using the WR (Write) command.
2.
The Associate LED, if enabled using the D5 (DIO5 Configuration) parameter, will start blink-
ing 1x per second once the coordinator has started.
If API is enabled (AP parameter > 0): The API Modem Status "Coordinator Started" is sent
out the UART.
3.
The AI (Association Indication) parameter will be 0 signifying a successful startup.
4.
The MY (16-bit Source address) attribute is 0
(the 16-bit network address of a ZigBee coordinator).
5.
After startup, the coordinator will allow joining based on its NJ (Node Join Time) value.
6.
It is recommended that the coordinator be configured with an NI-String identifier. This NI-
String identifier should be written to non-volatile memory using the WR (Write) command
to be preserved through power-loss.
Adding a Child (router)
1.
Determine the operating channel list (SC) and the desired PAN ID to join (ID) (0xFFFF - join
any Pan). The default SD parameter should suffice. If these values are changed from the
defaults, they should be written to non-volatile memory using the WR (Write) command.
2.
The router, on power-up, will attempt to locate a parent to join according to its SC and ID
parameters.
3.
Once the router has joined a parent, the Associate LED, if enabled (D5), will start blinking
2x per second. The ID and CH parameters will reflect the operating PAN ID and Channel.
The MY parameter will reflect the 16-bit network address of the router.
If API is enabled (AP parameter > 0): The API Modem Status "Joined" is sent out the UART.
4.
If the router is not joining as expected, the AI (Association Indication) parameter can be
read to determine the cause of failure.
Verify the PAN contains a coordinator or nearby joined router that has matching Channel
(SC, CH) and PAN ID (ID) settings and is allowing nodes to join to it (NJ parameter).
5.
Once the router has joined a PAN, the router will allow joining based on the NJ parameter.
6.
It is recommended that the router be configured with a unique NI-String identifier. This NI-
String identifier should be written to non-volatile memory using the WR (Write) command
to be preserved through power-loss.
Transmit Data (AT Firmware)
1.
Start a coordinator (refer to instructions above).
2.
Add one or more Child router(s) to the coordinator (refer to instructions above).
3.
Once the coordinator has started, all routers and End Devices should join to a parent and
their Associate LED should blink 2x per second.
4.
If any nodes have not joined, read the AI command to determine why.
5.
Issue the ATND command on the coordinator to get a list of all nodes on the network.
6.
Use the 'Terminal' tab of the X-CTU Software to send serial data between nodes. The data
should be transmitted from the source to the destination node as specified by the DH & DL
parameters.
7.
(Optional) Change the Destination address on any node to one of the 64-bit addresses dis-
covered using the ND command in step 5 (DH, DL Commands, or in the 'ZigBee Transmit
Request' API Frame). Then repeat step 6 to transmit data.
© 2007 Digi International, Inc.
www.agelectronica.com
     56
www.agelectronica.com

Advertisement

Table of Contents
loading

This manual is also suitable for:

Xb24-buit-004

Table of Contents