OTA Firmware Updates

All ESP32 boards running MicroPython.
Target audience: MicroPython users with an ESP32 board.
Post Reply
Posts: 1
Joined: Wed May 22, 2019 1:01 pm

OTA Firmware Updates

Post by fstakem » Wed May 22, 2019 1:13 pm

I am just curious as to the present state of OTA Firmware updates for the ESP32.

I saw the github project by loboris but it doesn't seem to have a commit in quite a while. Has this just been abandoned or has any of the functionality been merged back into the main repo?

The merge request seems to point to this being in the main repo:
ports/esp32 add api support for ota updates #3576

Even though the code seems to have been merged I can't seem to find any documentation on it on the main micropython site. Is this experimental or just not documented?

Posts: 32
Joined: Mon Oct 21, 2019 2:06 pm

Re: OTA Firmware Updates

Post by kinno » Sat Nov 09, 2019 2:41 pm

I would also love to know the status of this. I am working through the ESP-IDF and I noticed that it is available there. I am playing around a bit with it.

Also the issues on the micropython Github shows work on this topic with partition tables etc.

If there is a way to make a 'ideal situation for me' I would say OTA works in this basic way (again this is 'my' ideal).

1. OTA firmware is one bin file - including all your python (boot.py and main.py)
2. OTA bin is hosted on my OTA server with TLS.
3. Once OTA function called on edge device (ESP32) it checks its own version against available version and updates accordingly

I would have the OTA section in my boot.py so when there is a power cycle (watchdog, power outage, etc) it checks and updates firmware if available.

Alternatively could use asyncio to have a periodic check (may be better).

I know documentation is a pain and I can help with preparing the documents. I imagine I'll get slapped around a bit at first (with formatting and other standards) but once the flow is going perhaps I could contribute in this way.

Thanks all for your time. I look forward to discussion on this topic.

Posts: 5
Joined: Fri Aug 09, 2019 12:32 pm

Re: OTA Firmware Updates

Post by BjHave » Fri Jan 24, 2020 2:27 pm

I don't want to cross post, so I will just post a link to another thread where I wrote an answer.


Post Reply