OTA

All ESP32 boards running MicroPython.
Target audience: MicroPython users with an ESP32 board.
Post Reply
LisaM
Posts: 19
Joined: Tue Nov 07, 2017 6:11 pm

OTA

Post by LisaM » Sun Jul 15, 2018 2:48 pm

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?

kevinkk525
Posts: 969
Joined: Sat Feb 03, 2018 7:02 pm

Re: OTA

Post by kevinkk525 » Sun Jul 15, 2018 3:30 pm

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

LisaM
Posts: 19
Joined: Tue Nov 07, 2017 6:11 pm

Re: OTA

Post by LisaM » Sun Jul 15, 2018 5:11 pm

kevinkk525 wrote:
Sun Jul 15, 2018 3:30 pm
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.
So it's not the same... ;)

kevinkk525
Posts: 969
Joined: Sat Feb 03, 2018 7:02 pm

Re: OTA

Post by kevinkk525 » Sun Jul 15, 2018 5:21 pm

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

straga
Posts: 14
Joined: Mon Apr 17, 2017 7:38 am

Re: OTA

Post by straga » Tue Oct 23, 2018 1:25 pm

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 ?

straga
Posts: 14
Joined: Mon Apr 17, 2017 7:38 am

Re: OTA

Post by straga » Fri Oct 26, 2018 12:35 pm

Tried with Own OTA server with some improves in ota_updater.
https://www.youtube.com/watch?v=_ywJw2I ... e=youtu.be

straga
Posts: 14
Joined: Mon Apr 17, 2017 7:38 am

Re: OTA

Post by straga » Sun Oct 28, 2018 12:25 pm

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 ... .)
micropython_ota2.png
micropython_ota2.png (80.46 KiB) Viewed 9007 times

cyberlab
Posts: 56
Joined: Sat Apr 21, 2018 5:02 am

Re: OTA

Post by cyberlab » Sun Oct 28, 2018 3:03 pm


Post Reply