Hardware Reference
In-Depth Information
Note that the MY and DL values for each XBee are swapped with each other
because one XBee's destination address is the other's source address. (The ID
that I use in these examples for the PAN is 1234, but you can choose another
four-digit hex PAN ID if you desire.) The BD is set to 3, the default value. Instead
of setting it to the actual baud rate, you set it to a number that represents the
baud rate. The baud values are related to BD values follows:
0: 1200 baud
1: 2400 baud
2: 4800 baud
3: 9600 baud (Default)
4: 19200 baud
5: 38400 baud
6: 57600 baud
7: 115200 baud
Connect your XBee to your computer using either of the two methods described
earlier. Make sure to insert the XBee in the right direction. After connecting it,
you need to identify the serial port that it is connected to. You can do this the
same way you did for the Arduino in Chapter 1, “Getting Up and Blinking with
the Arduino.” Note down what serial port the XBee connected to.
ConiguringYourXBeewithX-CTU
Next, you program your XBees with the values specified in Figure 11-7. If you
are using Windows, you can use an application called X-CTU to do this using a
graphical interface. I recommend this method if you have access to a Windows
computer. If you don't have a Windows computer, skip to the next section, where
you learn how to configure your XBees using a serial terminal in Linux or OS X.
A quick Google search for “X-CTU” will return the most up-to-date download
link for the application from the Digi website. The installer is also linked from
the web page for the chapter: www.exploringarduino.com/content/ch11 . Find
a download link, then complete the following steps:
1. Download the installer, install X-CTU, and launch the application. Once
launched, you should see a window like the one in Figure 11-8. A list of
available Com ports appears on the left side of the window.
Search WWH ::




Custom Search