# Has anyone else had trouble with XBees resetting themselves to factory settings?

**URL:** <https://forums.digi.com/t/has-anyone-else-had-trouble-with-xbees-resetting-themselves-to-factory-settings/19341>\
**Category:** XBee & XBee Gateway\
**Tags:** factory-defaults, reset, xbee-pro-s1\
**Created:** [March 27, 2018, 10:59am UTC](https://forums.digi.com/t/has-anyone-else-had-trouble-with-xbees-resetting-themselves-to-factory-settings/19341 "2018-03-27T10:59:12Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![TheGribble](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.digi.com/thegribble/32/189_2.png) [@TheGribble](https://forums.digi.com/u/TheGribble)\
**Post date:** [March 27, 2018, 10:59am UTC](https://forums.digi.com/t/has-anyone-else-had-trouble-with-xbees-resetting-themselves-to-factory-settings/19341/1 "2018-03-27T10:59:12Z")

</div>

We’ve got a few thousand XBee Pro S1 modules installed in our devices in the field and we’ve been getting a few recently sent back because the xbees aren’t working; on investigation they all had the default settings like a brand new XBee.

Has anybody got any idea what might be happening? Could be our software sending the wrong command but I didn’t think there was a “Factory defaults” command or anything?

Many thanks,

Ben.

---

<div class="post-metadata">

**Author:** ![eduardo-cp](https://avatars.discourse-cdn.com/v4/letter/e/9dc877/32.png) [@eduardo-cp](https://forums.digi.com/u/eduardo-cp)\
**Post date:** [October 17, 2019, 10:51am UTC](https://forums.digi.com/t/has-anyone-else-had-trouble-with-xbees-resetting-themselves-to-factory-settings/19341/2 "2019-10-17T10:51:14Z")

</div>

I have the same problem with Xbee-PRO 900HP, did anyone solve it?

---

<div class="post-metadata">

**Author:** ![bathmarm0t](https://avatars.discourse-cdn.com/v4/letter/b/258eb7/32.png) [@bathmarm0t](https://forums.digi.com/u/bathmarm0t)\
**Post date:** [December 5, 2022, 8:04am UTC](https://forums.digi.com/t/has-anyone-else-had-trouble-with-xbees-resetting-themselves-to-factory-settings/19341/3 "2022-12-05T08:04:45Z")

</div>

This is also happening to us. Have either of you found anything?

---

<div class="post-metadata">

**Author:** ![mvut](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.digi.com/mvut/32/31_2.png) [@mvut](https://forums.digi.com/u/mvut)\
**Post date:** [December 7, 2022, 1:30pm UTC](https://forums.digi.com/t/has-anyone-else-had-trouble-with-xbees-resetting-themselves-to-factory-settings/19341/4 "2022-12-07T13:30:09Z")

</div>

All, the only way for an XBee module to restore to defaults after they have been written to memory using the WR command, is for an ATRE, WR command to be issued.

---

<div class="post-metadata">

**Author:** ![cinarca](https://avatars.discourse-cdn.com/v4/letter/c/22d042/32.png) [@cinarca](https://forums.digi.com/u/cinarca)\
**Post date:** [January 26, 2023, 9:29am UTC](https://forums.digi.com/t/has-anyone-else-had-trouble-with-xbees-resetting-themselves-to-factory-settings/19341/5 "2023-01-26T09:29:37Z")

</div>

The same here.  
Using S1 then S2 for years without any problems, then XBee3 802.15.4 and some devices are reset to factory defaults.  
Module configuration is done using XCTU, module is updated to latest firmware version, plugged into our device.  
The devices just send data transparently, no AT commands.  
Since the issue is not frequent, it’s quite hard to capture it : I am on this issue since 3 weeks, without any clue on what is happening…

Pascal

---

<div class="post-metadata">

**Author:** ![TheGribble](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.digi.com/thegribble/32/189_2.png) [@TheGribble](https://forums.digi.com/u/TheGribble)\
**Post date:** [January 26, 2023, 2:17pm UTC](https://forums.digi.com/t/has-anyone-else-had-trouble-with-xbees-resetting-themselves-to-factory-settings/19341/6 "2023-01-26T14:17:06Z")

</div>

We gave up in the end, I read the xbee settings on boot and check if it’s using our custom network id. If it is I read the settings from the xbee and save them. If not I write the saved settings back to the xbee. It works, but it’s pretty poor that it’s necessary.

Oh, and I also tapped the serial lines and recorded all traffic to and from the xbee for three weeks with a PLC turning the system off and on every ten minutes to record this happening. I can confirm that during that time we never sent an xbee write command but this still happened.

---

<div class="post-metadata">

**Author:** ![cinarca](https://avatars.discourse-cdn.com/v4/letter/c/22d042/32.png) [@cinarca](https://forums.digi.com/u/cinarca)\
**Post date:** [January 27, 2023, 8:22am UTC](https://forums.digi.com/t/has-anyone-else-had-trouble-with-xbees-resetting-themselves-to-factory-settings/19341/7 "2023-01-27T08:22:06Z")

</div>

We have anther product with an embedded XBee setup procedure; it never fails; this does not mean that the module is not reset to defaults from time to time.

I am using Through Hole modules only, I wonder if there was some subtle hardware changes between S2 and XBee3 particularly on RESET and DIN/CONFIG?  
On you side, do you drive RESET with an open drain IO? Also; In some posts, I have seen that a pull up resistor is used on DIN…

I probably will implement a XBee config validation/update process if I don’t find any hardware issue.

---

<div class="post-metadata">

**Author:** ![mvut](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.digi.com/mvut/32/31_2.png) [@mvut](https://forums.digi.com/u/mvut)\
**Post date:** [January 30, 2023, 7:28pm UTC](https://forums.digi.com/t/has-anyone-else-had-trouble-with-xbees-resetting-themselves-to-factory-settings/19341/8 "2023-01-30T19:28:49Z")

</div>

Folks, the reset line just triggers a hardware reset similar to a power cycle. It does not do anything to the firmware or any written settings.

What I would suggest is looking at page 71 of the XBee 3 hardware reference manual. You may be causing brownouts.

---

<div class="post-metadata">

**Author:** ![cinarca](https://avatars.discourse-cdn.com/v4/letter/c/22d042/32.png) [@cinarca](https://forums.digi.com/u/cinarca)\
**Post date:** [January 31, 2023, 8:46am UTC](https://forums.digi.com/t/has-anyone-else-had-trouble-with-xbees-resetting-themselves-to-factory-settings/19341/9 "2023-01-31T08:46:39Z")

</div>

Thanks for your reply,

the brownout issue is concerning B versions of the silicon, and I all the issues I have are on the C version.

---

<div class="post-metadata">

**Author:** ![TheGribble](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.digi.com/thegribble/32/189_2.png) [@TheGribble](https://forums.digi.com/u/TheGribble)\
**Post date:** [January 31, 2023, 12:46pm UTC](https://forums.digi.com/t/has-anyone-else-had-trouble-with-xbees-resetting-themselves-to-factory-settings/19341/10 "2023-01-31T12:46:15Z")

</div>

I can also confirm that we saw this issue on the old xbee2 units as well as on the xbee3.

---

<div class="post-metadata">

**Author:** ![Jay](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.digi.com/jay/32/104_2.png) [@Jay](https://forums.digi.com/u/Jay)\
**Post date:** [February 2, 2023, 3:54am UTC](https://forums.digi.com/t/has-anyone-else-had-trouble-with-xbees-resetting-themselves-to-factory-settings/19341/11 "2023-02-02T03:54:09Z")

</div>

This can happen if parameter settings are assigned but not written with a ATWR command. The assigned settings will be lost on a reset or a power cycle. If no settings have been written the module will revert to factory defaults.

A low voltage or out of spec power conditions could account for unexpected behavior - for example, issuing a write command during a brown out condition may not complete, or could corrupt a location in volatile memory. Theoretically a recovery could be needed by the micro to defaults. The module is not tested for out-of-specification conditions so a solid recovery routine is recommended for battery powered applications or inconsistent power situations.

---

<div class="post-metadata">

**Author:** ![myoung](https://avatars.discourse-cdn.com/v4/letter/m/ad7895/32.png) [@myoung](https://forums.digi.com/u/myoung)\
**Post date:** [June 21, 2023, 7:50pm UTC](https://forums.digi.com/t/has-anyone-else-had-trouble-with-xbees-resetting-themselves-to-factory-settings/19341/12 "2023-06-21T19:50:40Z")

</div>

Hello, I came across your comments @TheGribble which are helpful. We have had similar problems with XBee3 radios resetting themselves to factory defaults. If you are still monitoring this thread, would you comment further on the test you did? I take it that during your test you were able to get the problem to repeat some number of times by power cycling the radio module every 10 minutes for 3 weeks. Is that correct? If a power cycle is what causes the issue that would be helpful to confirm. Maybe there is a problem with the XBee3 microcontroller supervisor circuits that on rare occasion a power transition will run code resetting the radio non-volatile or something related. In another forum posts the tech support response was to not run the XBee3 below VMIN, but voltage must pass below VMIN at some point when powering on and off.

FYI: Our experience has been this problem is rare, but consistent enough to be a problem. For us we only noticed this as a problem with the XBee3 radios (802.15.4), not the older S1 or S2C. Also of note, in my search I found four other forum posts of similar issues with the XBee3 radios:

> [@Xbee3 reset to default values](https://forums.digi.com/t/xbee3-reset-to-default-values/20985):
>
> I have a device and a host that use the xb3-24z8pt-j module in 802.15.4 mode and sometime the module resets to its defaults parameters. Precisely, the baud rate and the MY values reset to the defaults value. What can cause this issue? I don’t use any command that can reset the module to its default values. I’m aware of the thread [http://cms.digi.com/support/forum/65331/xbee-parameters-goes-to-default-values](http://cms.digi.com/support/forum/65331/xbee-parameters-goes-to-default-values) and the only WR value we do is to write the CH parameter when we want to change the c…

> [@Xbee3 reset to default values](https://forums.digi.com/t/xbee3-reset-to-default-values/22481):
>
> I have a XBEE3 module in 802.15.4 mode and sometime the module resets to its defaults parameters. I interface the module to uP using UART in transparent mode. In firmware I don’t enter in command mode, i think is impossible that the module receive the ATRE command. There is some hardware possibility to reset the module? Thank’s Daniele

> [@Unknown reset to factory default](https://forums.digi.com/t/unknown-reset-to-factory-default/22732/4):
>
> Similar problem. How can we protect the XB3 when the battery is approaching or falling below VMIN? Will holding the RESET pin low help?

> [@XBee3 802.15.4 RF Module loose firmware settings](https://forums.digi.com/t/xbee3-802-15-4-rf-module-loose-firmware-settings/26034):
>
> Hello, I use Bee3 802.15.4 RF modules with SPI port and sometimes the AT settings return to their default state when working. Sometimes is even worse, and some settings are complete erroneous and different of the default state. I use API Mode Without Escapes to send and receive data’s, 16-bit Transmit Request - 0x01 frame with broadcast address and I receive with 16-bit Receive Packet - 0x81 frame. I don’t change settings with AT command when working only when I start the board. What could b…

---

<div class="post-metadata">

**Author:** ![timjohnson2584](https://avatars.discourse-cdn.com/v4/letter/t/f4b2a3/32.png) [@timjohnson2584](https://forums.digi.com/u/timjohnson2584)\
**Post date:** [July 18, 2023, 9:46am UTC](https://forums.digi.com/t/has-anyone-else-had-trouble-with-xbees-resetting-themselves-to-factory-settings/19341/14 "2023-07-18T09:46:59Z")

</div>

> [@edenwheeler](#):
>
> Dear Ben,
> 
> I understand your frustration and concern about the XBees resetting to factory settings. It’s disheartening to have devices returned with default settings, especially [Newtoki](https://newtoki.me/) when deployed in the field. You’re not alone in facing this issue, and it can happen due to hardware or software problems.
> 
> Electrical interference or manufacturing issues could be causing the hardware problem. On the software side, unintended commands or communication errors might trigger the reset. Review your code and seek assistance from the manufacturer’s technical support to find a solution.
> 
> Remember to stay proactive, seek community support, and remain persistent. Challenges like these can be overcome with collaboration and determination.
> 
> Best of luck in resolving the issue, Ben.

We have anther product with an embedded XBee setup procedure; it never fails; this does not mean that the module is not reset to defaults from time to time.

I am using Through Hole modules only, I wonder if there was some subtle hardware changes between S2 and XBee3 particularly on RESET and DIN/CONFIG?  
On you side, do you drive RESET with an open drain IO? Also; In some posts, I have seen that a pull up resistor is used on DIN…

I probably will implement a XBee config validation/update process if I don’t find any hardware issue.

---

<div class="post-metadata">

**Author:** ![mvut](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.digi.com/mvut/32/31_2.png) [@mvut](https://forums.digi.com/u/mvut)\
**Post date:** [July 18, 2023, 12:20pm UTC](https://forums.digi.com/t/has-anyone-else-had-trouble-with-xbees-resetting-themselves-to-factory-settings/19341/15 "2023-07-18T12:20:44Z")

</div>

The XBee 2 is based off of an Ember EM250 or EM357 depending on if it is an S2 or S2C. The XBee 3 is based off of a Geko Processor.

It is more important on the XBee 3 that you do not drop below the VCC Min. then on the XBee S2 hardware without powering off the radio when you drop below VCC Min.

---

<div class="post-metadata">

**Author:** ![Zaemo](https://avatars.discourse-cdn.com/v4/letter/z/b9bd4f/32.png) [@Zaemo](https://forums.digi.com/u/Zaemo)\
**Post date:** [July 18, 2023, 6:35pm UTC](https://forums.digi.com/t/has-anyone-else-had-trouble-with-xbees-resetting-themselves-to-factory-settings/19341/16 "2023-07-18T18:35:03Z")

</div>

I’ll join the chorus. I’ve had 2 (maybe now 3) XB3’s (through hole) reset to factory default after they have been deployed. The end user can only change the CH or BT ID. My units are battery powered and the Li-Po is set to cut out at 3.0V so they should never even approach the MIN voltage requirement.  
This is quite frustrating.

---

<div class="post-metadata">

**Author:** ![mvut](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.digi.com/mvut/32/31_2.png) [@mvut](https://forums.digi.com/u/mvut)\
**Post date:** [July 21, 2023, 2:57pm UTC](https://forums.digi.com/t/has-anyone-else-had-trouble-with-xbees-resetting-themselves-to-factory-settings/19341/17 "2023-07-21T14:57:18Z")

</div>

Anyone having this issue should contact Digi Technical Support with full details on how to reproduce the issue. You can contact Digi Support by sending an email to [tech.support@digi.com](mailto:tech.support@digi.com) or go to [my.digi.com](http://my.digi.com) and log in and submit a support case.

---

<div class="post-metadata">

**Author:** ![Zaemo](https://avatars.discourse-cdn.com/v4/letter/z/b9bd4f/32.png) [@Zaemo](https://forums.digi.com/u/Zaemo)\
**Post date:** [July 23, 2023, 4:49am UTC](https://forums.digi.com/t/has-anyone-else-had-trouble-with-xbees-resetting-themselves-to-factory-settings/19341/18 "2023-07-23T04:49:40Z")

</div>

I’m trying to get a workaround going by setting Custom Defaults. I have successfully applied new custom defaults that survive power resets and software resets. It seems there are two different types of default reset commands.

ATRE - Restore Defaults to FACTORY values EXCEPT Custom Defaults I entered  
ATR1 - Restores Default values INCLUDING Custom Defaults.

If the device were to encounter this errant reset condition again, would the Custom Default values be present (like ATRE) or the real Factory values (like ATR1)? If the module goes back to the factory defaults, creating a custom configuration is a waste of time and effort. It sounds as if the custom defaults would be in non-volatile memory, no?

How can I then save the new Custom Configuration and apply it to more XBee’s? Typing these into each chip via AT commands individually will get boring fast.

As always, thank you for your help.  
Chad

P.S. Can anyone elaborate on this?

Use the **WR** command sparingly; the device’s flash supports a limited number of write cycles.

My clients will change the **CH** as often as needed as they move to new locations.

---

<div class="post-metadata">

**Author:** ![mvut](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.digi.com/mvut/32/31_2.png) [@mvut](https://forums.digi.com/u/mvut)\
**Post date:** [July 24, 2023, 1:46pm UTC](https://forums.digi.com/t/has-anyone-else-had-trouble-with-xbees-resetting-themselves-to-factory-settings/19341/19 "2023-07-24T13:46:28Z")

</div>

Please contact Digi Support as indicated above.
