Shop OBEX P1 Docs P2 Docs Learn Events
Xbee, Configuring from BS2, Coordinator vs. "out of box" config? — Parallax Forums

Xbee, Configuring from BS2, Coordinator vs. "out of box" config?

xanatosxanatos Posts: 1,120
edited 2009-08-01 23:39 in General Discussion
I have the code from the AppBee document, and am specifically looking at the use of the code on pages 21+.· This code specifies how to set the Xbee (Series 1) to operate in a configuration that is not "out-of-the-box", which is to say any Xbee to any other Xbee or multiples thereof.· That code is:

SEROUT TX,Baud,[noparse][[/noparse]"+++"]· ' **** Enter command mode
PAUSE 2000
SEROUT TX,Baud,[noparse][[/noparse]"ATGT 3",CR] ' **** minimal guard time
SEROUT TX,Baud,[noparse][[/noparse]"ATNI Coordinator", CR]· ' **** Node Descriptive Name
SEROUT TX,Baud,[noparse][[/noparse]"ATDL ", HEX DestAddr,CR] ' **** Destination Address
SEROUT TX,Baud,[noparse][[/noparse]"ATMY ", HEX myAddr,CR]·' **** Current node address
SEROUT TX,Baud,[noparse][[/noparse]"ATD6 1",CR]·· ' **** RTS Flow Control
SEROUT TX,Baud,[noparse][[/noparse]"ATCN",CR] ' **** Exits command mode


My question is:· What would be the settings to return the XBee to it's default, out of the box, unaddressed condition?· I would guess I can use X-CTU to reload the default firmware settings to the unit, but that would be inconvenient in the field.· In fact, I can guess a LOT of things, but I'm looking for some confirmation from someone who knows by having done it before :-)· EDIT:· Can it really be as simple as the ATRE command???????· As in, I can configure these to the point of changing everything, then issue ATRE, and then drop the "eset" Xbee back into an application designed for an out-of-the-box Xbee, and have it work just like it was never programmed?

I'm also interested in hearing from anyone who has worked with the command ATND (node discovery).

Thanks!

Dave




Post Edited (xanatos) : 7/31/2009 11:01:56 PM GMT

Comments

  • Tracy AllenTracy Allen Posts: 6,666
    edited 2009-08-01 23:14
    That's right, ATRE for factory defaults.

    It may also be necessary to save the defaults to eeprom, using ATWR. Note that the snippet you posted does not include an ATWR, so those settings are not saved in the eeprom, so they are not restored automatically if the power is cycled.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Tracy Allen
    www.emesystems.com
  • xanatosxanatos Posts: 1,120
    edited 2009-08-01 23:39
    Thanks Tracy, that does indeed confirm what I got from reading the AT command set, I just wanted to be sure before I started messing with the settings and risk being unable to restore to their default config. I love these things! What amazing, easily used, powerful little items.

    Now I just need to figure out what the returned data will look like from the ATND command when I have 10 or more XBees configured around the controller Xbee!· And how to code a stamp to handle it in an applicaion that will display a listing of nodes active...

    Dave
Sign In or Register to comment.