xbee setup help

About a week ago i made a simple serial sending project usign two xbee’s of the 1st generation

it worked, for a while atleast, but now i can’t seem to get the two to connect (i think)…

anyways, i never did the “setup” for the two xbee’s, so i thought maybe i should, but while i was looking over the tutorial for how to do that, here:


i became confused about how to do it using just the arduino… do i write some code that goes through all the commands listed, each with a second between, using delay(1000); ? or is something more complex than that…

i really was unable to find any documentation on setting up xbee’s other than that tutorial, and honestly, for someone that is very new to the xbee, it is nearly useless, so any help would be appreciated, cause at this point im damn clueless

Download Xctu from digi’s website. Use it to configure and play around with your xbee. The try AT commands from hyperterminal and then use the same from arduino… It works…

I usually just use AT commands in the setup. Also I do not write the configuration
to the XBee flash. If you do not write the configuration to flash then the XBee
will always power up in the default mode.

See my examples in the application hints section at

(* jcl *)

AT commands are quick and easy. When we needed to reconfig ours we used Putty ( http://www.chiark.greenend.org.uk/~sgtatham/putty/ ) and took about 15 minutes total. If you do use Putty make sure you force an echo so you know if your commands work. AT commands are found at http://arduino.cc/en/Main/ArduinoXbeeShield Just be sure to write any changes if you need to configure multiple XBees

Another guy in my lab also had good results using the AT commands in Hyperterminal

force an echo?

It just means that anything that goes in or out is printed on the screen.
So when you have the Putty screen up click on the “Terminal” option on the left, then under “Line discipline options” force the local echo on, so when you run it you can see if the xbee accepts what you have to say.

Also, you need to remove the microcontroller from the Arduino and set the jumpers to USB.

If you need me to post screenshots I would be happy to when I get in to work tomorrow

I am terribly new to xbee’s, so that would be great, thanks a lot :slight_smile:

So unfortuneately I cannot figure out how to attach or post an image, so I will go through in detail as i reconfig two of my XBees. So here it goes. First off, you need to remove the Atmega from the board, so you can communicate directly with the XBee (if you are using the shield also set both the jumpers to USB). Next, download Putty and open it, it should look something like this after you choose the “Serial” option on the start up screen under connection type (image1). Next, make sure the correct communication speed and com are correct then click the terminal button on the left side and under “Line description options” force on the local echo (Image2). Next, click the open option on the bottom and a black screen should pop up. Now type in “+++” with the one second delay, and the screen should display “OK” (Image3). Now, lets check the current ID by typing “ATID” and the default ID should pop up. Now I will change it to 420 (or whatever) by typing “ATID420” and, again, looking for the OK. Next, check to see if it has been changed (typing ATID again). Finally, save the changes by typing “ATWR” and close out with “ATCN”. There are other AT commands found here http://www.arduino.cc/en/Main/ArduinoXbeeShield

msg me if this doesnt help or you want me to email screen shots

On a second thought, why isn’t an XBee library available? It seems like with the correct serial commands you could do all this in the code (I dont know how to send a carriage return in Serial or I would try). It seems like commands Baud rate or ID would be simple

Thanks a bunch, I will try this as soon as I get home… BTW! I believe there is a xbee library around, I have ran into it a few times, but I was kind of scared off by its over-complexity for my simple serial sending / receiving needs

Also, the images you mentioned dont exist, do you mind re-uploading them? they might come in handy…

also, final question before I think i completely get how to do this…

when you say type +++ with a second delay, do you mean between the pluses, or after the 3 +s signs are placed i should wait a second

as small a delay between each + sign as possible. with the [one second] delay before the first + and after the last. If you PM me your email I can send the pics