I bought XBee dev kit from Sparkfun, with 2 XBee modules and a shield. I follow XBee shield hookup guide as in https://learn.sparkfun.com/tutorials/xb … okup-guide, setup 2 XBee3 network, a coordinator and a router, then upload program to Arduino Mega 2560 through the shield, plugged the XBee router on the shield, and a LED light on pin 13 and ground. When I send data from XBee’s XCTU, I can see the red LED on the shield blinking, but the LED light doesn’t turn on, I don’t see the output from print in the program. I have attached the program.
Have you verified you’re able to pass serial data from one XBee to the other?
Out of the box without any configuration one XBee should be able to communicate with another. If you’ve changed the configuration it’s possible the XBees are not communicating anymore.
Try resetting both XBee’s back to their default settings and see if you’re able to send text from one to the other.
Both XBee3 modules flashed with latest Digi XBee3 ZigBee 3.0 firmware, both are configured as API 1 mode, networkID is 0 which makes them transmit to, receive from any XBee with network ID 0. The switch on the shield is on DLINE, when transmitting data from the coordinator using XCTU, I can see the receiving DOUT LED on the shield of the XBee3 router blinking. “SoftwareSerial XBee(10, 11); // RX, TX” is used in the code since the Arduino is Mega2560. Can you please take look at the attached code to see if anything is missing or wrong?
Unfortunately we’re not able to review your code. We suggest making sure you can transmit any text between the two devices first just to check that things are working. Once data is flowing, then you can start digging into code.
“SoftwareSerial XBee(10, 11); // RX, TX”
You’ve told the Arduino where to move RX and TX but have you modified the shield to physically move those lines?