ota_update module for firmware downloading#7167
Closed
kYc0o wants to merge 23 commits intoRIOT-OS:masterfrom
Closed
ota_update module for firmware downloading#7167kYc0o wants to merge 23 commits intoRIOT-OS:masterfrom
kYc0o wants to merge 23 commits intoRIOT-OS:masterfrom
Conversation
and bootloader images
Member
Contributor
Author
|
Yes, safely, however I'm afraid #7398 is too outdated, thus maybe I'll open a new one with the most recent work. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Based on #6922 and #7007.
This module enables firmware downloading using TFTP, but making the version requests using CoAP.
The server which is ready to answer such request is from @aabadie available here. You can follow the instructions there to set up a OTA server for the images produced by this PR.
Basically the instructions are the same as explained on #6922, but if you want to include the ota_update module you need to add it as any other module with:
USEMODULE += ota_update_tftpThe module will set up a CoAP client which will ask a server given by
OTA_SERVER_ADDRESS(IPv6 address) and a CoAP port given byOTA_SERVER_COAP_PORT, which is the one configured on the OTA server.Afterwards, it asks every
OTA_PERIODIC_REQ_TIMEseconds for an update (it "pulls" the update from the server). Push updates will be added in following PRs.For now, it only works for iotlab-m3 boards, since the previous PRs work also only for this board.
Thanks to #7128 and #5366 it will be soon possible to use this in samr21-xpro boards. Stay tuned.