There's about a zillion things that could be wrong. Different channels, one of them isn't a coordinator. While we're at it, are these series 1 or 2. Have you followed any particular tutorial on setting them up and getting them to work? etc, a little more information is needed.
Every XBee S2 network needs exactly one coordinator. Use Digi's X-CTU program to load the coordinator firmware on one of the modules. See my blog post for an explanation of the simplest way to make two S2 modules talk. Best not to mess with channels or any other settings; as draythomp says, there are many things that can go wrong. XBees have lots of settings. Resist the temptation to fiddle with the knobs until you know what you are doing. The default settings will be fine almost always. While you're using X-CTU, reset both modules to factory default status and start again at square one.
Oh, ok. But if one is a coordinator, it will still be able to exchange other kinds of information with the other Xbee (such as sensor readings). I won't need a third Xbee, right?
Quote from: Gepapado on Jan 18, 2013, 08:29 pmOh, ok. But if one is a coordinator, it will still be able to exchange other kinds of information with the other Xbee (such as sensor readings). I won't need a third Xbee, right?Correct, a coordinator can do anything that a router can do. There really is almost no difference in using the two, from an application standpoint, default destination addresses are different and that's about it. There are six different firmware options for S2 modules: Coordinator, Router, and End Device, each in AT (transparent) mode or API mode. End Devices are the only ones that can sleep. Get your feet wet with routers first before attempting end devices.
Thank you very much. I followed the instructions in your blog post and supposedly have set the Xbees up correctly. However, when I try a range test, it always fails miserably. For the moment, I have merely connected the coordinator to my computer with this http://imall.iteadstudio.com/im120525005.html board. The router is connected to an Arduino via an Xbee explorer https://www.sparkfun.com/products/9132. At the moment, I am merely powering the Xbee, and the DIN and DOUT are essentially floating. I don't know wether I should ground them or connect them to pins 0, 1 and re-upload the program with the Serial communication test.
byte myValue = 42;Serial.print(myValue, DEC);
byte myReceivedValue;myReceivedValue = Serial.read();
Please enter a valid email to subscribe
We need to confirm your email address.
To complete the subscription, please click the link in the
email we just sent you.
Thank you for subscribing!
via Egeo 16