My equipment:
2x Xbee Pro 900 http://www.sparkfun.com/products/9097
Arduino Uno R3
Xbee Shield http://www.sparkfun.com/products/9976
Xbee Explorer http://www.sparkfun.com/products/8687
Configuration
XB1 –> Xbee shield –> Arduino Uno
Transmitting to:
XB2 –> Xbee Explorer –> Computer
My goal is to get the xbee modules to communicate with each other.
So far, I have updated the firmware of each xbee using x-ctu program. the version number is 1161. Within x-ctu’s modem configuration tab the modem is identified as a XBP09-DP and the function for both the units after a fresh write/read becomes “XBEE-PRO 900 - 232 ADAPTER”.
I have been able to get some sort of rudimentary communication at a random baud rates but the output is always different from the input. I’ve verified that each XBEE is transmitting at 9600baud and arduino code is serial printing at 9600 baud. Here is the code I am running:
void setup() {
// initialize the digital pin as an output.
// Pin 13 has an LED connected on most Arduino boards:
pinMode(13, OUTPUT);
Serial.begin(9600);
}
int val = 42;
void loop() {
Serial.print(val);
digitalWrite(13, HIGH); // set the LED on
delay(100); // wait for a second
Serial.print('L');
digitalWrite(13, LOW); // set the LED off
delay(100); // wait for a second
}
Question
I’m reading the output from the recieving XBEE from the arduino’s Serial Communication Tab and it looks like random characters. Initially I thought it was a baud rate issue, but changing the baud rates to any of the available solves nothing.
Essentially what I’ve tried to do is Todd Germeroth’s instructions which can be found here: http://diydrones.com/forum/topics/xbee-pros-unable-to-talk-w?commentId=705844%3AComment%3A685700
I ran into the issue of the function set being shifted to the 232 ADAPTER for both modules (when it is only supposed to be for the one)
Any help would be appreciated, and thanks for helping out a newb!