hi there!
i am using 2 xbees for serial communication, one is connected to arduino via wire and transmits data to the other xbee which is connected to a usb explorer breakout and i am reading the data in the xctu console log.
the console log gives me strange characters when i power up the arduino, which means that they are transmitted from the first xbee.
does anyone know why i am receiving these strange characters?
I need to get rid of these characters.
I am using 2x Xbee S1, and the configuration for the Receiver is:
DL Destination Address Low 1
MY 16 bit SOurce Adddress 2
The transmitter configuration is:
DL Destination Address Low 2
MY 16 bit SOurce Adddress 1
All the other values are set to default.
Image attached to see my console log from xctu.
Any help on how to get rid of the strange characters?
transmitter code:
int counter=0;
// the setup routine runs once when you press reset:
void setup() {
// declare pin 9 to be an output:
Serial.begin(9600);
}
// the loop routine runs over and over again forever:
void loop() {
counter=counter+5;
Serial.print("Counter=");
Serial.println(counter);
if (counter==100) {
counter=0;
}
delay(1);
}
Hi!
At first look it seems some display problems with ASCII tables in X-CTU.
Maybe I'm thinging wrong, but try to use some others programs like serial port monitor
Choose your COM port where is xbee sitting, choose all tables, klick Start monitoring, hit play, power on your arduino and start watching for data it sends to xbee.
Just found out that my problem was with my I/O settings!!!
I had a digital Input pin enabled (DI00), Pull up resistor 0 and Samples Rate before TX 5.
Samples Rate before TX is sending the strange characters.
I managed to solve it by setting Samples Rate TX to 0, but now i am unable to use the I/O pins, just the serial.
What are the correct settings to use xbee I/O pins and also have godd serial communication without strange characters?