-
-
Notifications
You must be signed in to change notification settings - Fork 202
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 Upgrade From URL #300
Comments
Update from URL is enabled again in 0.6.3-dev. The 0.6.2 release contains a bug that requires you to power-cycle the plate instead of the "normal" reboot. 0.6.2 actually doesn't enable the new firmware until after a power-cycle 😞 This should be fixed now in 0.6.3-dev, so updating to a newer 0.6.3 code-base can be done via Web upload, Web URL or Arduino OTA without power-cycle. |
Tested, works. |
It's a fixed time-out that goes back to the home page. The download, update and reboot process takes a variable time, so it's hard to guesstimate how long it will take. To prevent this, you would need to do active javascript polling... |
Just add +3 seconds... |
done, but I guess it should save the last update URL used to NVS and use that as the default next time... |
Last URL is now saved. There is now also the option to follow redirects or not, this allows direct downloads from e.g. Github urls that redirect to a CDN for downloading of the actual file. |
The feature is now part of 0.6.3-rc1 |
In 0.6.4-dev 7f4e079 it's broken, OTA from URL is impossible to complete. Bar goes to the end on the screen but the plate doesn't reboot, instead the web interface jumps back to main menu. Rebooting from there doesn't result in booting from the new firmware image. |
Perform all steps below and tick them with [x]
Describe the bug
In the firmware upgrade web interface, updatding from URL is not working. Updating using the browser's upload form works fine.
To Reproduce
Put the OTA binary to a web server accessible via plain HTTP. Eg:
http://building.rig.local/code/openhasp/openHASP/build_output/firmware/lanbon_l8_ota_v0.6.3-dev.bin
Verify that downloading of the file from the URL is working fine using a PC.
Open a Telnet session to the plate.
Copy the URL in openHASP's From URL form field and press Update from URL button.
The web interface will show
After a while the page will return to root.
Telnet will show:
Expected behavior
It should update from URL.
Also it should "remember" the URL between the updates so that just replacing the binary on the server should be enough before pressing the Update from URL button (no need to paste it every time).
Screenshots or video
N/A
The text was updated successfully, but these errors were encountered: