Hardware Reference
In-Depth Information
Frames are what Digi's data sheet calls the series of data that is used for apI mode; the term frame is
interchangeable with packet .
Note
Module Configuration
Configuring the modules for API mode is similar to the setup for the AT command configuration:
1.
A single coordinator is needed. Change the firmware settings to ZIGBEE COORDINATOR
API and ZIGBEE ROUTER API for the router.
2.
Set the PANID along with the baud rate; you can use the same settings as before for this setup.
3.
The destination address is not necessary for this mode to communicate; packets
determine where the information is going.
4.
Choose a name for the node identification (NI) setting when configuring the module;
ROUTER and COORDINATOR will suffice. The NI setting is helpful for identifying the
node. This is independent of the addresses and equivalent to a computers host name.
5.
Upload the software serial sketch to an Arduino with both baud rates set to the XBee
modules' rate of 57600, and connect the serial adapter to pins 2 and 3 of the Arduino,
as shown in Figure 5-3 .
Figure 5-3. Setup for API examples. The XBee is connected to pins 2 and 3 for software serial
6.
Once the Arduino is configured, connect via a serial terminal such as PuTTY, minicom,
or HyperTerminal, with the setting 57600 8N1.
 
 
Search WWH ::




Custom Search