1

I am following this tutorial to learn about Arduino wireless communication. I have 2 Arduino unos with Xbee S1s sitting on Xbee Pro shields.

I've programmed the Xbee S1s by screening into the /dev/tty/* and configuring them with: +++, ATID1234, ATMY1000 (ATMY1001), ATDL1001 (ATDL1000) and ATWR. I've double checked the values to ensure they are correct.

So i've created a super simple Sender and Receiver package:

Sender.ino

int counter = 0;
void setup() {
 Serial.begin(9600);
}
void loop() {
 Serial.println(counter++);
 delay(1000);
}

Receiver.ino:

void setup() {
 Serial.begin(9600);
}
void loop() {
 Serial.println("Looping");
 while (Serial.available() == 0); // wait
 int counter = Serial.parseInt();
 Serial.println(counter);
 Serial.flush();
 delay(500);
}

So first of all, when I upload my program to my arduino, I make sure that the S1s are not attached to the Pro shields which is attached to the unos.

When both of my unos are powered, I see a red light blinking but no indication of "busy blinking" which is supposed to happen when two XBee S1s are connected to the same channel. I am currently seeing a consistent blinking at about 1 second frequency.

Can someone tell me why I am only able to see "Looping" in my Serial monitor on my receiver?

asked Jun 17, 2014 at 6:00
2
  • 1
    So I was just hacking around and I finally figured out what went wrong! Apparently, there's a switch "XBEE/USB" that needs to be switched to XBEE for BOTH shields. After that, everything works as planned Commented Jun 17, 2014 at 6:41
  • 1
    Please add that as an answer, and accept your own question, if you solved it. Commented Jun 17, 2014 at 7:09

1 Answer 1

1

blah reported:

So I was just hacking around and I finally figured out what went wrong! Apparently, there's a switch "XBEE/USB" that needs to be switched to XBEE for BOTH shields. After that, everything works as planned.

Can someone vote this up please to remove it from the unanswered queue?

answered Sep 19, 2015 at 0:32

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.