I'm looking how to do OTA with the ESP32 version of MicroPython. However, i haven't found anything about that in this forum.
And no, pointing me to the Loboris fork isn't acceptable. In that fork there are incompatible differences with the main branch (like uasyncio) which makes it unuseable for me.
The OTA bootloader can be a separate EDF app, anybody having experience with one the available OTA bootloaders and the MicroPython firmware?
OTA
-
- Posts: 969
- Joined: Sat Feb 03, 2018 7:02 pm
Re: OTA
uasyncio in loboris fork is exactly the same as the official branch. But I understand that some webserver functionality does not work for you, which nobody yet looked into.
Kevin Köck
Micropython Smarthome Firmware (with Home-Assistant integration): https://github.com/kevinkk525/pysmartnode
Micropython Smarthome Firmware (with Home-Assistant integration): https://github.com/kevinkk525/pysmartnode
Re: OTA
So it's not the same...kevinkk525 wrote: ↑Sun Jul 15, 2018 3:30 pmuasyncio in loboris fork is exactly the same as the official branch. But I understand that some webserver functionality does not work for you, which nobody yet looked into.
-
- Posts: 969
- Joined: Sat Feb 03, 2018 7:02 pm
Re: OTA
uasyncio consists of init and core file. these are the same as they are not shipped with the firmware itself. Your problem is with the webserver uasyncio module, which does not correctly work on loboris fork, not uasyncio in general. Dont confuse people.
Kevin Köck
Micropython Smarthome Firmware (with Home-Assistant integration): https://github.com/kevinkk525/pysmartnode
Micropython Smarthome Firmware (with Home-Assistant integration): https://github.com/kevinkk525/pysmartnode
Re: OTA
We have pull request.
https://github.com/micropython/micropython/pull/3576
I am try it, it works.
https://youtu.be/fImFlty40GY
Why not approve yet ?
https://github.com/micropython/micropython/pull/3576
I am try it, it works.
https://youtu.be/fImFlty40GY
Why not approve yet ?
Re: OTA
Tried with Own OTA server with some improves in ota_updater.
https://www.youtube.com/watch?v=_ywJw2I ... e=youtu.be
https://www.youtube.com/watch?v=_ywJw2I ... e=youtu.be
Re: OTA
I tried put together all.
All modules work with asyncio in separate thread.
upy_ota : https://github.com/straga/upy_ota
Server OTA: use aiohttp with StreamResponse
Firmware with OTA:
upy_app : https://github.com/straga/upy_app/tree/ ... a_template
Example how it can be use:
All use asyncio (ftpse, telnetse, ota_updater and more ... .)
All modules work with asyncio in separate thread.
upy_ota : https://github.com/straga/upy_ota
Server OTA: use aiohttp with StreamResponse
Firmware with OTA:
upy_app : https://github.com/straga/upy_app/tree/ ... a_template
Example how it can be use:
All use asyncio (ftpse, telnetse, ota_updater and more ... .)