I'm trying to setup a simple wireless link between two Arduinos, using two XBee modules and the XBee shield.
I configure the coordinator with:
ATID 2001
ATDL 4079D623
ATDH 0013A200
and the end device with
ATID 2001
ATDL 4079D621
ATDH 0013A200
I then upload simple code to the two Arduino platforms. On the end device:
#include <SoftwareSerial.h>
SoftwareSerial xbee(2, 3); // RX, TX
void setup() {
Serial.begin(9600);
xbee.begin(57600);
}
void loop() {
xbee.write("A");
delay(500);
}
and on the coordinator:
#include <SoftwareSerial.h>
SoftwareSerial xbee(2, 3); // RX, TX
void setup() {
Serial.begin(9600);
xbee.begin(57600);
}
void loop() {
Serial.write(xbee.read());
delay(500);
}
But no data is passing from the end device to the coordinator. Am I missing something obvious?