I’m trying to use rappa’s [xbee-arduino library to simplify passing data around in my xbee project. I’m not even able to get the basic tx/rx example to work, and wondering if anyone has any tips.
Here’s the configuration I’m using right now for the transmitting unit:
1 XBee series 1 module
1 Arduino Pro Mini
Transmitting xbee AT parameters:
ID 9123
DL FFFF (broadcast)
MY 1
BD 7 (115200 baud)
RO 0
AP 2 (API mode w/ escaped bytes)
D5 1 (tied to output LED)
D0 2 (D0 is tied to ground to send a constant value of 0)
IU 1
IT 1
IR 1
On the Arduino side, I have a wire going from analog IO 5 to ground.
I’m using the Tx example straight from the library code. The only changes I made were to push the XBee.begin() parameter up to 115200 and to use the onboard LED on pin 13 for errorLed. I have the Rx example loaded on a second Arduino+Xbee module with similar Xbee configuration.
Anyway, the problem is that the code is jumping to this section and flashing two bursts of the error LED:
} else {
// local XBee did not provide a timely TX Status Response -- should not happen
flashLed(errorLed, 2, 50);
}
This implies to me that the Arduino isn’t even able to talk to the Xbee for some reason, and I can’t tell if this is a correct interpretation, and am completely stuck for ideas on how to fix. The tx/rx lines are not swapped. Does anyone have any tips on configuring xbees to work with this library? Thanks.](http://forum.sparkfun.com/viewtopic.php?t=14906&highlight=xbee+arduino)