I have 2 arduino uno nodes with xbee's in api mode.
The sending and receiving is working fine. But whenever my program reaches the xbee.send() command, some weird characters are being printed on the screen. I have attached a picture. I am not sure what could be the reason. I checked the baud rate and that should not be a problem.
Can anyone give me any suggestion why this could be happening?
Can anyone give me any suggestion why this could be happening?
Sure. You've code is doing that. Fix it. If you need help, quit blocking our view of your code.
It is returning the ASCII value of the API frame that I am sending (I dont know why?)
node.zip (597 Bytes)
base station.zip (684 Bytes)
You have the XBee connected to the hardware serial port. So, everything it receives over the air goes to the serial port. Everything that the Arduino gets from the XBee is processed, and more information is written to the serial port. Everything either device writes to the serial port ends up at the Serial Monitor application.
Get the XBee off the hardware serial port if the extra data is a problem.
O ya true.
But I am not sure how to do that?
I am using xbee shield to interface the arduino with the xbee. If i remove the shield and just connect the xbee with the wires to my arduino, would that solve the problem.
Please dont mind, if my above statement doesnt make sense. I am new to this stuff.
I am using xbee shield to interface the arduino with the xbee.
Which one? Some, like the ones I have from Sparkfun, allow you to flip a switch and use pins 2 and 3, along with SoftwareSerial, to communicate with the XBee. Others have jumpers. Others have no means at all to allow for using different pins, and deserve to be dumped in the trash.
