ESP32 firmware update over the internet?
ESP32 firmware update over the internet?
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?
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.
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.
Free book on ESP32 available here: https://leanpub.com/kolban-ESP32
Re: ESP32 firmware update over the internet?
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?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.
- martinayotte
- Posts: 141
- Joined: Fri Nov 13, 2015 4:27 pm
Re: ESP32 firmware update over the internet?
The concept of OTA isn't restricted to local update.this is used only locally isn't it?
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?
Hi,martinayotte wrote:The concept of OTA isn't restricted to local update.this is used only locally isn't it?
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.
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.
Regards,
Ritesh Prajapati
Ritesh Prajapati
-
- Posts: 9764
- Joined: Thu Nov 26, 2015 4:08 am
Re: ESP32 firmware update over the internet?
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?
Hi,ESP_Sprite wrote:The OTA code should be partition-aware so yes, larger partitions should allow you to flash larger code.
Thanks for quick reply.
I will check that stuff and will get back to you if need any help for that.
Regards,
Ritesh Prajapati
Ritesh Prajapati
-
- Posts: 41
- Joined: Thu Feb 28, 2019 12:21 pm
Re: ESP32 firmware update over the internet?
Hi,
I'm still unable to figure out the platforms over which we can perform ota update. (Not locally)
Regards,
Dhananjay Sutariya
I'm still unable to figure out the platforms over which we can perform ota update. (Not locally)
Regards,
Dhananjay Sutariya
Last edited by dhananjay.sutariya on Wed Mar 27, 2019 5:08 am, edited 1 time in total.
Re: ESP32 firmware update over the internet?
Means? Please clarify it with few more details and your requirements. So that it will be helpful for us to provide support for thatdhananjay.sutariya wrote: ↑Mon Mar 25, 2019 7:13 amHi,
I'm still unable to figure out the platforms over which we can perform ota update. (Not locally)
Regards,
Dhananjay Sutariya
Regards,
Ritesh Prajapati
Ritesh Prajapati
-
- Posts: 41
- Joined: Thu Feb 28, 2019 12:21 pm
Re: ESP32 firmware update over the internet?
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.
Are there any AWS platform (or any such) where i can upload my binary so that it can be fetched by my device.
Last edited by dhananjay.sutariya on Wed Aug 28, 2019 5:39 am, edited 1 time in total.
Who is online
Users browsing this forum: No registered users and 106 guests