Page 1 of 2

ESP32 firmware update over the internet?

Posted: Wed Jul 05, 2017 9:50 am
by vtrix_
Is there a way to update the firmware through internet or a service like resin.io that works for esp32?

Re: ESP32 firmware update over the internet?

Posted: Wed Jul 05, 2017 1:36 pm
by kolban
There is a concept called "Over The Air" Updates (OTA) ... see for example:

http://esp-idf.readthedocs.io/en/latest ... m/ota.html

If I may, let me suggest reading that article and then searching this forum for related. The vast majority of an application that you (or anyone else) writes comprises BOTH the application code and the ESP-IDF (loosely, think of it like the operating system). This is what I would consider the "firmware". Try not to think of the ESP32 as having a base set of firmware code that is then augmented with an application. Rather, think of the "whole application" as including the OS based material. This is the unit of flashing to flash memory.

Re: ESP32 firmware update over the internet?

Posted: Wed Jul 05, 2017 1:53 pm
by vtrix_
kolban wrote:There is a concept called "Over The Air" Updates (OTA) ... see for example:

http://esp-idf.readthedocs.io/en/latest ... m/ota.html

If I may, let me suggest reading that article and then searching this forum for related. The vast majority of an application that you (or anyone else) writes comprises BOTH the application code and the ESP-IDF (loosely, think of it like the operating system). This is what I would consider the "firmware". Try not to think of the ESP32 as having a base set of firmware code that is then augmented with an application. Rather, think of the "whole application" as including the OS based material. This is the unit of flashing to flash memory.
Thank you for your reply, this is used only locally isn't it? Can you use OTA to flash an esp32 over internet and not just over WiFi?

Re: ESP32 firmware update over the internet?

Posted: Wed Jul 05, 2017 2:54 pm
by martinayotte
this is used only locally isn't it?
The concept of OTA isn't restricted to local update.
It could be also on the Extranet, depending of your network infrastucture.
If ESP is fetching the firmware binary from a cloud server, this is pretty straight forward.
If you wish to push the firmware binary from outside to an ESP behind firewall/router, then you need IP forwarding rules on this router.

Re: ESP32 firmware update over the internet?

Posted: Wed Jul 05, 2017 4:41 pm
by Ritesh
martinayotte wrote:
this is used only locally isn't it?
The concept of OTA isn't restricted to local update.
It could be also on the Extranet, depending of your network infrastucture.
If ESP is fetching the firmware binary from a cloud server, this is pretty straight forward.
If you wish to push the firmware binary from outside to an ESP behind firewall/router, then you need IP forwarding rules on this router.
Hi,

Right now, we are using OTA APIs to update firmware and for that we are using 2 OTA option which is second option in to OTA table selection of SDK configurations.

So, Now, our application is going to increase and size might be increased over 1 MB. So, we can not use default partition with 2 OTA selection as there will be only 1 MB partition for application storage.

So, if we go for custom partition and increase OTA1 and OTA2 partitions to 2 MB then will same OTA APIs will work to update firmware with only OTA configurations changes?

I haven't tried it with but asking if anyone has faced any issue after doing that type of stuff.

Re: ESP32 firmware update over the internet?

Posted: Thu Jul 06, 2017 1:23 am
by ESP_Sprite
The OTA code should be partition-aware so yes, larger partitions should allow you to flash larger code.

Re: ESP32 firmware update over the internet?

Posted: Thu Jul 06, 2017 4:11 am
by Ritesh
ESP_Sprite wrote:The OTA code should be partition-aware so yes, larger partitions should allow you to flash larger code.
Hi,

Thanks for quick reply.

I will check that stuff and will get back to you if need any help for that.

Re: ESP32 firmware update over the internet?

Posted: Mon Mar 25, 2019 7:13 am
by dhananjay.sutariya
Hi,
I'm still unable to figure out the platforms over which we can perform ota update. (Not locally)

Regards,
Dhananjay Sutariya

Re: ESP32 firmware update over the internet?

Posted: Mon Mar 25, 2019 12:40 pm
by Ritesh
dhananjay.sutariya wrote:
Mon Mar 25, 2019 7:13 am
Hi,
I'm still unable to figure out the platforms over which we can perform ota update. (Not locally)

Regards,
Dhananjay Sutariya
Means? Please clarify it with few more details and your requirements. So that it will be helpful for us to provide support for that

Re: ESP32 firmware update over the internet?

Posted: Mon Mar 25, 2019 1:01 pm
by dhananjay.sutariya
If i want to do OTA without local server.
Are there any AWS platform (or any such) where i can upload my binary so that it can be fetched by my device.