O'Reilly logo

Building Wireless Sensor Networks by Robert Faludi

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Prepare the Sensor Boards

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:

  1. Select a router XBee you’ve labeled with an “R” and place it into the XBee Explorer.

  2. Plug the XBee Explorer into your computer.

  3. Run the CoolTerm program and press the Options button to configure it.

  4. Select the appropriate serial port, and check the Local Echo box so you can see your commands as you type them.

  5. Click on the Connect button to connect to the serial port.

  6. Type +++ to go into command mode. You should receive an OK reply from the radio.

  7. Select the same PAN ID you entered for your first radio above.

  8. Type ATID followed by the PAN ID you selected and press Enter on the keyboard. You should receive OK again as a reply.

  9. 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 zero. Type ATDH 0 and press Enter on the keyboard. You should receive an OK response.

  10. Enter 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.

  11. Enter ATJV1 to ensure that your router attempts to rejoin the coordinator on startup.

  12. Enter ATD02 to put pin 0 in ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required