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

OTA firmware update #26

Open
lars-t-hansen opened this issue Jan 12, 2023 · 1 comment
Open

OTA firmware update #26

lars-t-hansen opened this issue Jan 12, 2023 · 1 comment
Labels
ecosystem Impacting updates, fleet mgmt, cloud interaction feature New feature or request important UX

Comments

@lars-t-hansen
Copy link
Collaborator

Title says it all. Provided that the device has USB power and is connected to wifi, how can the firmware be updated from the device itself?

  • who triggers it? (polling by device / prompting by user?) (mqtt is a thing)
  • how is it done?
  • how do we rollback when things go south?
@lars-t-hansen lars-t-hansen added the feature New feature or request label Jan 12, 2023
@lars-t-hansen lars-t-hansen self-assigned this Jan 12, 2023
@lars-t-hansen
Copy link
Collaborator Author

Arduino has an OTA system (https://github.com/espressif/arduino-esp32/tree/master/libraries/ArduinoOTA) but this looks like it requires the device to advertise itself on the local net and for some agent on that net to connect to it and upload the OTA update. This is not what we want; we want the device to learn about an update and then download it from a designated location. The information about the update might arrive by MQTT, and the device could just open a socket to the update server and download the code. No doubt the ArduinoOTA library contains many ideas we could reuse.

@lars-t-hansen lars-t-hansen added the ecosystem Impacting updates, fleet mgmt, cloud interaction label Mar 8, 2023
@lars-t-hansen lars-t-hansen removed their assignment Apr 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ecosystem Impacting updates, fleet mgmt, cloud interaction feature New feature or request important UX
Projects
None yet
Development

No branches or pull requests

1 participant