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

Firmware upgrade to end devices through EdgeX (i.e., core-data RedisDB) #4052

Closed
vediyappan-villali opened this issue Jun 15, 2022 · 4 comments
Labels
question Further information is requested

Comments

@vediyappan-villali
Copy link

vediyappan-villali commented Jun 15, 2022

I want to download the firmware from a web application to EdgeX (i.e., core-data), then from there I need to send/flash it to end device (i.e., UART device or Modbus sensors).

I could see there is an option to upload the device profile file.

Uploading device profile:

vediyappan@vediyappan-desktop:~/work/samples$ curl http://localhost:59881/api/v2/deviceprofile/uploadfile -F "[email protected]" | json_pp
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  1076  100    81  100   995   6373  78297 --:--:-- --:--:-- --:--:-- 97818
{
   "apiVersion" : "v2",
   "id" : "5c0150a1-54a6-4463-9342-45c6352fe863",
   "statusCode" : 201	 `<----- The HTTP 201 created success status response code indicates that the request has succeeded and has led to the creation of a resource.`
}
vediyappan@vediyappan-desktop:~/work/samples$

Is there any way to transfer/download a firmware file to EdgeX (i.e., core-data RedisDB)? If yes, how can we do that and where the downloaded files are getting stored? So that I can look for the options how can I flash it to device once the file is available in EdgeX.

@vediyappan-villali vediyappan-villali added the question Further information is requested label Jun 15, 2022
@vediyappan-villali vediyappan-villali changed the title Firmware upgrade to end devices using EdgeX Firmware upgrade to end devices through EdgeX (i.e., core-data RedisDB) Jun 15, 2022
@cloudxxx8
Copy link
Member

We don't support the binary file set command right now, and this requirement should be able to be considered in this ADR
edgexfoundry/edgex-docs#644

You need to write a service to download the file and store it as your requirement (anywhere you like) and call the function call accomplished by the above ADR

@vediyappan-villali
Copy link
Author

@cloudxxx8 Ok, I will look for other options (i.e., writing service to download file). Thank you for the info.

@bnevis-i
Copy link
Collaborator

Can this issue be closed?

@vediyappan-villali
Copy link
Author

Yes, we can close this.

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

No branches or pull requests

3 participants