Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

factory reset vs several on/off cycles #584

Closed
kuchod opened this issue Feb 20, 2018 · 12 comments
Closed

factory reset vs several on/off cycles #584

kuchod opened this issue Feb 20, 2018 · 12 comments
Assignees
Milestone

Comments

@kuchod
Copy link

kuchod commented Feb 20, 2018

After an electrical problem I had to reconfigure half of my sonof basic, because they reset to factory defaults if you cycle the power several times. Is this the expected behavior?

@xoseperez
Copy link
Owner

Of course not. Are you sure the EEPROM was erased?

@kuchod
Copy link
Author

kuchod commented Feb 21, 2018

I have 6 sonof installed around de house and several of them where on (relay off) during the problem.

The problem was some sort of derivation to earth in the kitchen that caused the differential breaker to open the circuit. Tried to rearm it several times until I realized what the problem was, and then the connected sonof's apeared with factory settings, every configuration erased. The disconnected ones where ok.

During reconfiguration, I think I entered a wrong password two times in one of the sonof's and lost access, so I went to the interruptor and cycled it several times (9?, 10?)... et voila! factory settings again. I dont know how many cycles does it need to reset, but until now it didnt happen with a normal use.

@xoseperez
Copy link
Owner

Tried to reproduce it with no success... tried it cutting power for a short time or using longer times, tried it 9, 10, 15, 20 times and nothing. If the number of resets is 5 it enters safe mode (as expected), but aside from that, I couldn't make it go back to factory settings...

The default firmware does factory reset using the command line option (factory.reset) or holding the main button down for >10s (on most devices).

@xoseperez xoseperez added the bug label Feb 26, 2018
@h3lmutek
Copy link

h3lmutek commented May 1, 2018

it does to me too :(

@Bochets34
Copy link

Hello,

just got similar issues, my configuration is 12 sonoff dual R2, one plug S20 and one basic.
espurna release was 1.12.3.
only half (6 over 12) of my dual R2 got the issue: reset to default configuration: passwd, wifi and even httpi key changed.
I had to enter values again to get my setup back to 'normal'.

it appeared after an electricity cutoff for several hours last week. power came several time very briefly, trying to reengage from the provider, I'm leaving in countryside :)

I upgraded to the latest release 1.12.6, hoping it will prevent from that issue in the future...
Olivier

@kakaki
Copy link

kakaki commented Aug 3, 2018

I have same issue with one device with nodemcu, it keeps resetting all configuration, after some days, couldn’t find what is causing problem, it is on 1.13.0c firmware.

@abmantis
Copy link
Contributor

I also had this issue more than once after powering off a Sonoff.

@xoseperez xoseperez added this to the 1.14.0 milestone Aug 13, 2018
@kakaki
Copy link

kakaki commented Aug 18, 2018

Updated all devices to 1.13.1 - problem still exists - one of devices cleared all settings.
This time it's on esp8285 esp-m3 .

@xoseperez xoseperez modified the milestones: 1.14.0, 1.13.3 Aug 27, 2018
@xoseperez xoseperez self-assigned this Sep 2, 2018
@xoseperez
Copy link
Owner

have been abusing a Sonoff Basic hard. Cycle resetting it several (up to 20, maybe 30) times. I have done it several times, as fast as I could manually or waiting a few seconds in between. I couldn't make it fail.

Anyone here is able to reproduce it in a consistent way?

@xoseperez xoseperez modified the milestones: 1.13.3, 1.13.4 Oct 8, 2018
@rizkypr
Copy link

rizkypr commented Dec 22, 2018

i have been using espurna on Sonoff Basic, this also happened to me too if i powered up the circuit breaker after a fault then if the circuit breaker trip immediately after powered up again because of the fault still exist all my sonoff basic reset to default setting. Is this something to do with stability detector? All sonoff basic with tasmota is fine though just for info.

@jlwainwright
Copy link

Same issue here. I have 20 Sonoff Basic's installed and this would occur when the trip switch gets switched on and immediately trips again. So basically a milliseconds on/off switching of the units.

Checked and these devices were also on FW 1.12.3, 1.12.5 as with all my other devices.

@mcspr
Copy link
Collaborator

mcspr commented Jan 22, 2019

@jlwainwright @rizkypr bulk of this should be fixed in dev
89ed0ca for possible exc28/29 stack trace being too big
7c85225 doing less flash operations
also pending #1420 to avoid commits altogether for system stability checker and custom reset

eeprom commit() takes ~29ms with my d1mini (esp12e one) btw, tried testing with mechanical relay board, but idk if it switches that fast to test this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

9 participants