Xbee, Configuring from BS2, Coordinator vs. "out of box" config?
![xanatos](https://forums.parallax.com/uploads/userpics/416/n3HKAG8I3I8DH.jpg)
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:
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
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
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
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
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