From dce2daa3d00be02738c400e4c0638f1c1f1ea603 Mon Sep 17 00:00:00 2001 From: irriden Date: Mon, 16 Oct 2023 22:44:33 +0000 Subject: [PATCH] tester: notes on successful ota update --- tester/README.md | 12 ++++++++---- tester/cmd.json | 7 ++++++- 2 files changed, 14 insertions(+), 5 deletions(-) diff --git a/tester/README.md b/tester/README.md index 172fc25..570d641 100644 --- a/tester/README.md +++ b/tester/README.md @@ -12,10 +12,9 @@ cargo run --bin ctrl #### sample cmd.json file ```json { - "type": "Ota", - "content": { - "url": "http://192.168.1.10/sphinx-update-", - "version": 0 + "Ota": { + "url": "http://192.168.86.21:12346/sphinx-update-", + "version": 0 } } ``` @@ -30,3 +29,8 @@ BROKER_URL="http://44.198.193.18:30000/api" SEED=c7629e0f2edf1be66f01c0824022c5d30756ffa0f17213d2be463a458d200803 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 diff --git a/tester/cmd.json b/tester/cmd.json index 52353ed..c7c87f9 100644 --- a/tester/cmd.json +++ b/tester/cmd.json @@ -1 +1,6 @@ -"Nonce" +{ + "Ota": { + "url": "http://192.168.86.21:12346/sphinx-update-", + "version": 0 + } +}