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

Failed OTA upgrade #542

Closed
dariosm opened this issue Jun 23, 2017 · 12 comments
Closed

Failed OTA upgrade #542

dariosm opened this issue Jun 23, 2017 · 12 comments
Labels
stale Action - Issue left behind - Used by the BOT to call for attention

Comments

@dariosm
Copy link

dariosm commented Jun 23, 2017

After upgrading 4 sonoffs, with 5.2.1 version, just one of the would not start, keeping led light blinking for a while. I had to disassemble it from the mains (it was hooked to a ceiling lamp), and started it with a serial monitor:

ets Jan  8 2013,rst cause:1, boot mode:(3,3)

load 0x4010f000, len 1384, room 16
tail 8
chksum 0x2d
csum 0x2d
v09826c6d
~ld
�
00:00:00 Cnfg: Use defaults
00:00:00 APP: Project sonoff Sonoff (Topic sonoff, Fallback DVES_F99DEF, GroupTopic sonoffs) Version 5.2.1
00:00:00 Wifi: Connecting to AP1 indebuurt1 in mode 11N as sonoff-7663...
00:00:07 Wifi: Connect failed as AP cannot be reached
00:00:07 Wifi: Connecting to AP2 indebuurt2 in mode 11N as sonoff-7663...
00:00:14 Wifi: Connect failed as AP cannot be reached
00:00:14 WPSconfig: Active for 1 minute

It seems like sonoff lost the configuration after upgrade. I should say that I followed the two step upgrade suggested in the wiki, that is, first upgrade to minimal and then normal firmware.

Is there anything I could have done wrong?
Do you think I could solved this without disconnecting from the light installation? I'm afraid next time I upgrade the modules, this could happen again.

@arendst
Copy link
Owner

arendst commented Jun 23, 2017

What was the version level you upgraded from?

As you can see from the log it has defaulted the settings but started WPSconfig which allow you to press your wifi routers WPS button and your device should configure itself for your wifi lan. After that you still have to configure other parts of the device but at least you did not have to disconnect it from your installation.

@dariosm
Copy link
Author

dariosm commented Jun 23, 2017

@arendst sadly my router does not have that functionality (it is an ISP modem-router).
I think I've upgraded from 5.1.7, quite sure about that but not 100%. I'm certain, though, that the other sonoff modules were running the same version, and they were upgraded just fine, keeping configs and restarting with no issues.

@arendst
Copy link
Owner

arendst commented Jun 23, 2017

Do you happen to know what the version was BEFORE 5.1.7...

From my 19 devices one of them also failed the upgrade. It just blinks the blue led every 20 seconds. I still have to look into it what went wrong there...

@dariosm
Copy link
Author

dariosm commented Jun 23, 2017

I'm sorry for not being completely sure about this, but I think it came from 4.x version, no other 5.x version in the middle. From now I'll keep track of the version I upgrade to report more details here every time.

@arendst
Copy link
Owner

arendst commented Jun 24, 2017

I found the problem in my case and will solve it in next release.

Were you using the provided release firmware or did you happen to compile your own using esp8266/arduino 2.4.0-rc1?

@dariosm
Copy link
Author

dariosm commented Jun 24, 2017 via email

@hubecker
Copy link

hubecker commented Jun 25, 2017

Same for me, After upgrading sonoff pow from 5.2.0 to 5.2.1 version, it failed to restart.
I tried to flash it again with arduino IDE, no change.
In the serial monitor i see:

wdt reset load 0x4010f000, len 1384, room 16 tail 8 chksum 0x2d csum 0x2d v09826c6d ~ld
What to do now?

@dariosm
Copy link
Author

dariosm commented Jun 25, 2017 via email

arendst added a commit that referenced this issue Jun 25, 2017
5.2.2 20170625
* Add configuration SaveAddress to Status 1 and Information Page
* Change Sonoff Led Color conversion from AtoH to strtol
* Fix possible wrong uploads due to configuration overwrites (#542)
* Fix payload negative numbers (#547)
arendst added a commit that referenced this issue Jun 25, 2017
5.2.2 20170625
* Add configuration SaveAddress to Status 1 and Information Page
* Change Sonoff Led Color conversion from AtoH to strtol
* Fix possible wrong uploads due to configuration overwrites (#542)
* Fix payload negative numbers (#547)
@arendst
Copy link
Owner

arendst commented Jun 26, 2017

@hubecker erase flash using esptool and reload using ide.

@chadbone
Copy link

I am having this issue as well. I am trying to upload via PlatformIO. I did change the user_config.h (perhaps the second time) but it is for sure set now with my ssid and password.

The serial monitor reflects that it is trying to connect to indebuurt1 and 2. I do see in the serial monitor that the "Project" has been changed to my setting. My version is reporting as 5.10.0a.

Any ideas on how I can correct this? THANKS! your work is awesome.

@stale
Copy link

stale bot commented Apr 23, 2018

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale Action - Issue left behind - Used by the BOT to call for attention label Apr 23, 2018
@stale
Copy link

stale bot commented May 7, 2018

This issue will be auto-closed because there hasn't been any activity for a few months. Feel free to open a new one if you still experience this problem.

@stale stale bot closed this as completed May 7, 2018
curzon01 pushed a commit to curzon01/Tasmota that referenced this issue Sep 6, 2018
5.2.2 20170625
* Add configuration SaveAddress to Status 1 and Information Page
* Change Sonoff Led Color conversion from AtoH to strtol
* Fix possible wrong uploads due to configuration overwrites (arendst#542)
* Fix payload negative numbers (arendst#547)
curzon01 pushed a commit to curzon01/Tasmota that referenced this issue Sep 6, 2018
5.2.2 20170625
* Add configuration SaveAddress to Status 1 and Information Page
* Change Sonoff Led Color conversion from AtoH to strtol
* Fix possible wrong uploads due to configuration overwrites (arendst#542)
* Fix payload negative numbers (arendst#547)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stale Action - Issue left behind - Used by the BOT to call for attention
Projects
None yet
Development

No branches or pull requests

4 participants