Page 1 of 1

OTA Firmware Updates

Posted: Wed May 22, 2019 1:13 pm
by fstakem
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?

Re: OTA Firmware Updates

Posted: Sat Nov 09, 2019 2:41 pm
by kinno
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 ( and
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 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.

Re: OTA Firmware Updates

Posted: Fri Jan 24, 2020 2:27 pm
by BjHave
I don't want to cross post, so I will just post a link to another thread where I wrote an answer.