We’ll begin by configuring the router XBees. We’ll use the CoolTerm terminal program and an XBee Explorer USB adapter again to set up your radios. For each of your sensor node radios:
Select a router XBee you’ve labeled with an “R” and place it into the XBee Explorer.
Plug the XBee Explorer into your computer.
Run the CoolTerm program and press the Options button to configure it.
Select the appropriate serial port, and check the Local Echo box so you can see your commands as you type them.
Click on the Connect button to connect to the serial port.
+++ to go into
command mode. You should receive an OK reply from the radio.
Select the same PAN ID you entered for your first radio above.
ATID followed by
the PAN ID you selected and press Enter on the keyboard. You should
receive OK again as a reply.
Every ZigBee coordinator always has 0 as its 16-bit network
address. In fact, that’s the default destination address for any
newly configured XBee radio. To use 16-bit addressing, the high part
of your radio’s destination address will be
ATDH 0 and press
Enter on the keyboard. You should receive an OK response.
ATDL followed by
the low part of your radio’s
destination address, in this case also a zero
because that’s the fixed address for the coordinator. Type
ATDL 0 and press Enter. You
should receive an OK response.
ATJV1 to ensure
that your router attempts to rejoin the coordinator on
ATD02 to put pin 0 in ...