Xbee Arduino Communication issue


hi , want make 2 arduino boards communicate each other using xbee.concept easy 1 arduino sends code , other arduino recieves (through xbee series 2) , take action.however issues ,please help:

1.)xctu not recognize xbee after code other blank code has been uploaded on arduino

2.) uploading ,blank sketch , can make xctu recognize xbee modules , setup communication between 2 .one xbee setup coordinator , other 1 setup router.i can test connnection send messages each 1 , @ point communication perfect.

3.) comes part confusing me , wrote code arduino has xbee coordinator on it.code is:

void setup()
{ serial.begin(9600);
}
void loop()
{serial.write("abc");
}
on receiver side wrote

char incoming;
void setup()
{
serial.begin(9600);
}
void loop()
{
if(serial.read() > 0)

{incoming = serial.read();
serial.println(incoming);
}
}
the problem nothing gets printed on serial monitor on reciever side . had moved both jumpers on xbee sheilds xbee after uploading codes.
can please me in matter, thankful

also, status lights on both xbee sheilds keeps on blinking.

please don't crosspost. 1 topic, 1 post please. other post deleted.


Arduino Forum > Using Arduino > Networking, Protocols, and Devices (Moderator: fabioc84) > Xbee Arduino Communication issue


arduino

Comments