tester: notes on successful ota update

This commit is contained in:
irriden
2023-10-16 22:44:33 +00:00
parent b6c8b5a7f1
commit dce2daa3d0
2 changed files with 14 additions and 5 deletions

View File

@@ -12,10 +12,9 @@ cargo run --bin ctrl
#### sample cmd.json file #### sample cmd.json file
```json ```json
{ {
"type": "Ota", "Ota": {
"content": { "url": "http://192.168.86.21:12346/sphinx-update-",
"url": "http://192.168.1.10/sphinx-update-", "version": 0
"version": 0
} }
} }
``` ```
@@ -30,3 +29,8 @@ BROKER_URL="http://44.198.193.18:30000/api"
SEED=c7629e0f2edf1be66f01c0824022c5d30756ffa0f17213d2be463a458d200803 SEED=c7629e0f2edf1be66f01c0824022c5d30756ffa0f17213d2be463a458d200803
NONCE="0" NONCE="0"
``` ```
### sample update server
cd into the directory where you placed the .bin file you want to send to the signers
mini_httpd -p 12346
then use something like the cmd.json example above to tell signer about the update

View File

@@ -1 +1,6 @@
"Nonce" {
"Ota": {
"url": "http://192.168.86.21:12346/sphinx-update-",
"version": 0
}
}