Arduino  serial and Xbee PROBLEM....

Hello AGAIN!

I was wondering if you could help...I just received the two arduino's Xbee series 2 shield...
Im followinfg tom igoe's tutorials on " maling things Talk" but ,using Arduino serial monitor, if i type +++ ( to get xbees ready ) i recieve the answer OK and nothing more

In the books it says that, after the OK i should type ATMY1234\r, and that typing ATMY\r it should response 1234...but i can't get any answer from the shield!
Even if i type AT ID ( the response should be 3332 i think )...it just doesn't respond...

Maybe series 2 uses a different programming code?( IGOE uses an older XBEE )

Any idea?

You're getting the "OK" reply form the XBees, so they appear to be connected and working properly. My first guess is that your serial terminal software is not sending the correct return character. I haven't tried using the Arduino IDE serial terminal much so I'm not sure how it handles the return character.

If you are using a Windows computer, try using the serial terminal built in to Digi's X-CTU software for the XBees and see if that works.

Thank you very much...now i can comunicate with the xbee shield...

Bad news is that Tom Igoe's book uses old code, so it will be harder to make the project he proposes...
For example he uses teh line ATID111\r instead of ATID111...

By the way i read the little guide on the Arduino site and i don't seem to understand some of the explanation...

For example i tryied to change the MY...if i type AT MY it responds FFFE...but i can't understand how to change it in order to make it comunicate with other xbee's....
The guide says that the valid values are 0 - 0xFFFF...but i don't really understand, why if i type something it says ERROR!
Plus, the default value should be 0 not FFFE according to the guide.

For instance the valid values for the ID is 0 - 0xFFFF (default is 0) and i changed simply typing AT ID1111...

So if anyone can help me understand better the meaning of 0xFFFF, 0x0B - 0x1A and so on, and how to change soe parameters i will be forever grateful..

i've found out on Squidbee page ( http://www.libelium.com/squidbee/index.php?title=How_to_set_XBee_parameters ) this little and simple explanation about ho to set the MY of Xbee...
It says that default setting should be 0 ( mine is FFFE...WHY???? )and that typing ATMY0 or ATMY! it should set the NODE...But mine just give me ERROR

Am i doing something wrong????????

I'm glad that you're able to talk to the XBees over the serial connection now. You're almost done!

Check out my How-to for setting up XBee Series 2 modules. You may have already done the firmware upgrade (you must re-flash one Series2 module to be your network coordinator), but if you look at the last section, there's a little bit of information about how the code is different for series 2 modules. The biggest difference is that you can't change ATMY, instead you address modules by their Alpha-numeric Node Identifier (ATNI). Hope that helps.

THANK YOU SOOOO MUCH...you just become my best friend ahahaha :stuck_out_tongue:

but as i solve one problem, a new one comes out from nowhere...I managed to set the first xbee but as i moount the second, i can't set it....when i select the write option of modem configuaration it says to reset but, i do it and ....nothing! looks like there is aproblem with the xbee module..

i noticed that the little light on the bottom of the module keeps flashing...maybe it is trying to tell me somthing!
the things that confuses me is that everything else in the Xctu seems to work...the test/query the terminal and so on...

By the way the problem isn't in the shield since i canged only the Xbee module...the first one works fien the other no...

it's getting worse...

I tried to re-set both of the shields, but when it asks to reset it just don't work...even the router settings!
i did step by step as the tutorial...

I don't know if it is possible this way but, when the window asking to reset the shield appears, i click cancel and it says that the writing has mostly failed...BUT if i write again in a few second it says that everything fine...

So i do everything is on the tutorial and it seem to work!!led flash as it should....atid and everything seems to work!

By the way, dear Cairn you just help sooo much.

thank you!

i noticed that the little light on the bottom of the module keeps flashing...maybe it is trying to tell me somthing!
the things that confuses me is that everything else in the Xctu seems to work...the test/query the terminal and so on...

Are you referring to the LED on the XBee shield? If that LED is blinking and if it is the only powered XBee around, then the blinking means that it is acting as a coordinator and has started a network. If that's the case, it also indicates that you've been successful at re-flashing that XBee module to be a coordinator.

Just so I can get a sense of where you're at, it sounds like you have reflashed one XBee to be a coordinator (Firmware version 1041) and the other XBee is at it's default settings of Router/End Device (Firmware version 1241). Is that correct? Are you using the FT232 breakout board to do the reflashing (as shown on step 2 in the How-to) or are you using something else (like maybe a chip-less Arduino)?

PS: I'm replying in spare moments at work, so sorry if I'm a little rushed...

EDIT: Just saw your reply above: see if you can do "Step 8: Sending Serial Data" from the How-to to see if everything is working well. Glad I can help!

Thank you very much for your help again...I tested everything and everything seems fine! the only difference between the pdf and my settings is the reset button problem, but i think i found the way....

Since i am here i ask to anyone who knows this....

In Tom Igoe's book, it uses this code ----> \r ?? i tried on the x-ctu and it respond OK...For instance i wrote ATID ----> 234
ATID\r----> OK....what is the difference? first one just tell me what ID i am using but what with the other?

If you don't want to waste time explaining to me how ascii code work,please just tell me where to find informations.

Ps. on arduino reference i found out that \r is a "carriage return character(ASCII 13, or '\r')"...In which carriage return means Enter on the keyboard right? So why write \r if it's the same of enter command?

I guess i'm pretty confuse!

Hi Cairn,

In your great tutorial you wrote than 2.5 xbee commuicates by default when setup. I did all the process but at the end I can't see the 'testing' message on he coordinator. I'm using I think ZB (how ot check that?). Is there something else to switch on to receive data ?

Thanks

Seb