-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
firmware flash webUI v4.0x fails #235
Comments
from the console, what does otaurl return?
if you set the value via the otaurl command, does it return the correct value
after that?
upgrade 1 will tell it to upgrade from the console.
I've done several ota upgrades with the 4.x firmware without a problem. I have
the url hard-coded in user_config.h and have done it both from the web page and
the web console
|
Already found the error. My fault, too much cleaned up. Solved in next release. Workaround: change line 966 in webserver.ino from svalue[16] to svalue[100]; |
It was indeed hardcoded in the userconfig.h and through MQTT refreshing the Otaurl and upgrading went just fine. Just as soon as I proceed upgrade through the web-interface the Otaurl gets messed up I. |
See you found the problem. Thanks! |
Will it be possible to upgrade OtA to the new release given the regression? |
Yes. You can also upgrade using the second option on the web page by uploading the file yourself. |
yes but not through the web page, you would have to do it from the web console
or via a mqtt command.
did you have to set the otaurl, or just do the upgrade command?
|
Will make the adjustment and try the upload options. |
Made the code-adjustment and flashed new firmware through FTDI. Then, re-flash through MQTT still faills (tested, OtaUrl is correct and accessible):
|
Right. Another problem as the url is now fine. Does the ota upgrade work if you initiate it form MQTT with command upgrade 1? |
It doesn't react anymore on |
What happens if you reset the device (power cycle). Does it connect to your broker? |
Yes it does perfectly:
|
And now try command otaurl first and chack it's output. Then command upgrade 1 |
MQTT or Console? |
Doesn't matter as long as you do not use the web upgrade page |
This is the output. No luck, I'm afraid:
|
Great!. So you have a problem with your URL. Try again replacing the odroid-server.local name with it's ip address. |
You're right! That did solve it. Don't know why, I did verify the url through my browser, but it did. Thanks! |
4.0.7 20170319 * Increased Sonoff Led PWM frequency from 432 to 1000 * Fix possible watch dog reboot after changing module type on web page * Fix reporting of GPIO usage from web page * Fix Sonoff Led blank during firmware upgrade * Fix Sonoff Led flicker and possible flash corruption by using latest Arduino-esp8266 versions * of pwm core files included in sonoff library (#211) * Add PWM output control with commands PWM1 to PWM5 using user selectable GPIOs (#211) * Fix exceptions due to low values of commands HlwPCal (10000), HlwUCal (1000) and HlwICal (2500) (#223) * Add Switch state to sensor status (#227, #233) * Add user configuarble GPIO to module Sonoff Touch (#228) * Add define WEB_PORT to user_config.h to change default web server port from 80 (#232) * Fix failed Ota Firmware upgrade started from Web page (#235)
4.0.7 20170319 * Increased Sonoff Led PWM frequency from 432 to 1000 * Fix possible watch dog reboot after changing module type on web page * Fix reporting of GPIO usage from web page * Fix Sonoff Led blank during firmware upgrade * Fix Sonoff Led flicker and possible flash corruption by using latest Arduino-esp8266 versions * of pwm core files included in sonoff library (arendst#211) * Add PWM output control with commands PWM1 to PWM5 using user selectable GPIOs (arendst#211) * Fix exceptions due to low values of commands HlwPCal (10000), HlwUCal (1000) and HlwICal (2500) (arendst#223) * Add Switch state to sensor status (arendst#227, arendst#233) * Add user configuarble GPIO to module Sonoff Touch (arendst#228) * Add define WEB_PORT to user_config.h to change default web server port from 80 (arendst#232) * Fix failed Ota Firmware upgrade started from Web page (arendst#235)
Hi,
Updating firmware from the WebUI v4.0x fails. Serial log shows:
The OtaUrl shown in the log has been truncated somehow. The URL should be: 'http://odroid-server.local/firmware/sonoff/firmware.bin'. Issue can be replicated consequently. Changing the URL through the web interface does not solve the issue, as does not resetting the whole configuration either through menu or 4-sec pushing the button.
Can I try other scenario's to get this working? Any suggestion is welcome! thanks already
The text was updated successfully, but these errors were encountered: