(Hi
I spend the whole day trying to configure my xbees module to make them communicate. I have followed a tutorial on the net : I have configured one of my module as coordinateur (AT mode) and the other router (AT).
With two modules connected to the computer with usb cables, IfI open 2 serial console (in two different session of xctu), it works well, when I write in one, I can the the same in the other.
I have followed the next step of the tutorial : two modules on two arduino. One arduino is sending data and the other arduino is reading. I can't receive datas in this case.
Here's my 2 programs :
the first one for the router
#include <SoftwareSerial.h>
SoftwareSerial XBee(1,0);
void setup() {
XBee.begin(9600);
Serial.begin(9600);
}
void loop() {
Serial.println("Hello World!");
delay(5000);
}
the second one for the coordinator :
#include <SoftwareSerial.h>
SoftwareSerial XBee(1,0);
void setup() {
XBee.begin(9600);
Serial.begin(9600);
}
void loop() {
if (Serial.available() > 0) {
Serial.write(Serial.read());
}
}