Please refer to specific flow chart in the following.
The application service of user side is used to receive the task information and verification information pushed by OneNET OTA. OneNET provides simpleDEMO。
Please browse the website: https://github.com/cm-heclouds/ota-receive in case it fails to go to the page.
Token is used for verification. The verification process includes: when submitting the configuration by the user, the platform will take the value of md5 for token+uid and send it to the url configured by the user via HTTP GET request. If PASSED is returned, the configuration is successful; if FAILED is returned, meaning the configuration fails.
After URL and token push is configured, the upgrade packages requiring pushing are associated with the URL. The user can select to push or not to push the upgrade information (by initiating and cancelling association and other operations).
If the user initiates push function and associates the upgrade package, OneNET-OTA will push the information of the upgraded device to the url configured by the user adopting HTTP POST method.
URL: http://<API_ADDRESS>/ota/receive
HTTP parameters: signature=dfadfdafda
Successfully returned: PASSED | FAILED
Description: Signature is the value of md5 configured by the user for token+uid in OneNET-OTA.
URL: http://<API_ADDRESS>/ota/receive
HTTP request content:
{
"info":{
"uid":1,
"date":1573611869000
},
"signature":"3783bdc4ccdf08f1189d21871edd9df5",
"msg":{
"dids":[123,345],
"startTime":1573611869000,
"version":"11"
}
}