Hardware Reference
In-Depth Information
Figure 5-4. End-device configuration
The code is a simple chat-style program that can receive data from another XBee and transmit data itself. With
everything configured and plugged in, start a serial program to monitor and send data from the Arduino; use the
terminal in the X-CTU's terminal for the coordinator. Any data typed into either terminal will show up on the other
terminal. When typing in the terminal for the Arduino, the code does not echo the typed data back to the terminal; the
local echo in the terminal would need to be set for you to see the typed characters. This setup is good when devices
need to access or poll from the end device when power consumption is a concern.
Summary
This chapter demonstrated working with XBee modules in both AT command mode and API packet mode. There
are a lot more configuration and communication options available, such as implementing encryption, working with
other ZigBee-compatible devices, and using the other available pins for analog-to-digital sensors or controlling PWM.
The XBee data sheet for the modules provides a wealth of information. This chapter did not discuss setting up a large
network of XBees, but the concepts described are scalable.
 
Search WWH ::




Custom Search