I created an app that sends a series of strings through an XBee to an Arduino Mega (w/ a receiving Xbee attached to a SainSmart XBee shield.)
The XBee that Sends the information (Router) is working properly. When I connect the receiving XBee (coordinator) to X-CTU, it shows that the XBee is receiving the string values.
The Problem: When I connect the receiving Xbee to the Arduino, the Arduino is not reading those values from the XBee.
I switch the jumper back to XBEE
The XBees are configured correctly (because it IS receiving data w/out the Arduino
For the arduino, I am using the example code that comes with the IDE
I am trying to get the XBee to talk to the Arduino. The receiving XBee is mounted onto an adapter that is on the Arduino. The adapter sends the data from the XBee to the rx,tx (0,1) pins on the Arduino Mega.
In my case, something is stopping the info from being retrieved by the Arduino.
The XBee on the Arduino Is receiving info, its just not getting to the Arduino.
When I connect the receiving XBee to XCTU, It shows that it is receiving. This Shield allows me to use a different Pin. I already tried changing to pin 12,13 rx,tx But it didn't work.
I saw a tutorial in which they removed the rx, tx pins from the shield (so they don't connect to the arduino) and hardwired from Dout, Din (from the XBee shield) to other pins on the Arduino.
I saw a tutorial in which they removed the rx, tx pins from the shield (so they don't connect to the arduino) and hardwired from Dout, Din (from the XBee shield) to other pins on the Arduino.
Is that what you did? What changes did you make to your code?
I used the other dedicated serial communication ports on the Mega.
Have you successfully communicated from XBee to Arduino? Is the RX Light on the arduino supposed to be on?
Ok. Well, I ordered a different Shield just in case. But I must be doing something wrong.
Please, correct me if I am wrong.In order to check what information the Arduino is receiving, I would have to apply Serial.println(Serial.read()) and open the Serial Monitor?
Please, correct me if I am wrong.In order to check what information the Arduino is receiving, I would have to apply Serial.println(Serial.read()) and open the Serial Monitor?
If the XBee is connected to a SoftwareSerial instance, then reading from Serial won't get data from the XBee.
Then what is the proper way to receive data via XBee and display what the Arduino is receiving?
Also, I have both XBees configured in AT mode. Is that OK?