Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FOTA with ESP8266 (GIT8266O-303) #719

Open
dipendra77 opened this issue Sep 30, 2019 · 4 comments
Open

FOTA with ESP8266 (GIT8266O-303) #719

dipendra77 opened this issue Sep 30, 2019 · 4 comments

Comments

@dipendra77
Copy link

dipendra77 commented Sep 30, 2019

Hi,
I am working on a project based on ESP8266. I wanted to explore about the OTA upgrade feature of EPS8266. The example for simple OTA does not seem very clear. I wanted to know how do we upgrade a device which is at a remote location with a new firmware as we keep pushing changes every now and then. Can anyone please help me with the issue.?

@github-actions github-actions bot changed the title FOTA with ESP8266 FOTA with ESP8266 (GIT8266O-303) Sep 30, 2019
@ustccw
Copy link
Collaborator

ustccw commented Oct 9, 2019

@dipendra77 Please take a look at examples/system/ota/native_ota/2+MB_flash/new_to_new_no_old if by HTTP.
or examples/system/ota/simple_ota_example if by HTTPS.

@ustccw
Copy link
Collaborator

ustccw commented Oct 9, 2019

Additional, please see as #489 for details.

@dipendra77
Copy link
Author

dipendra77 commented Oct 10, 2019

Hi,
Thank you for responding. I understood the simple OTA example and can successfully upgrade to a new binary using the same. Sorry I was not very clear about the issue earlier. The actual problem is that these examples expect the device and the PC ( On which the https server is running) to be on the same network and a serial connection between the device and the PC. My use case for FOTA would be more like upgrading the firmware from a remote server ( a web server probably ) and without any physical connection between the device and the Host server. Or pushing updates through an android app and distributing it to all the devices on the field , directly to the users.
I found this on the web which does something similar with Arduino IDE, here is the link: https://github.com/espressif/arduino-esp32/blob/master/docs/OTAWebUpdate/OTAWebUpdate.md
I wanted to know if this is possible using the RTOS_SDK for ESP8266 / ESP32 ?
Any help will be appreciated.
Thank you.

@colesnicov
Copy link

For the first programming you have to connect the device to the computer with the help of a cable. You have to! then it doesn't matter if the device connects to a remote server and downloads an upgrade from there. The condition is that the device has access to the public Internet ..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants