File tree 4 files changed +7
-7
lines changed
4 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ This tool can be used to extend (actually prefix) a binary generated with e.g. t
4
4
5
5
### How-To-Use
6
6
``` bash
7
- ./bin2ota.py sketch.bin sketch-ota.bin
7
+ ./bin2ota.py sketch.bin sketch.ota
8
8
```
9
9
#### ` sketch.bin `
10
10
``` bash
@@ -17,7 +17,7 @@ This tool can be used to extend (actually prefix) a binary generated with e.g. t
17
17
* ` length(sketch.bin) = 0x0003'A5E0 `
18
18
* ` CRC32(sketch.bin) = 0xA9D1'265B `
19
19
20
- #### ` sketch-ota.bin `
20
+ #### ` sketch.ota `
21
21
``` bash
22
22
0000000 A5E0 0003 265B A9D1 8000 2000 749D 0000
23
23
0000010 7485 0000 7485 0000 0000 0000 0000 0000
@@ -31,7 +31,7 @@ This tool converts the binary file into base64 encoded JSON which is necessary f
31
31
32
32
### How-To-Use
33
33
``` bash
34
- ./bin2json.py sketch-ota.bin sketch-ota .json
34
+ ./bin2json.py sketch.ota sketch.json
35
35
```
36
36
37
37
` ota-upload.sh `
@@ -40,5 +40,5 @@ This tool allows to upload a OTA binary to a device via a Arduino cloud server.
40
40
41
41
### How-To-Use
42
42
``` bash
43
- ./ota-upload.sh CLIENT_ID CLIENT_SECRET DEVICE_ID sketch-ota .json
43
+ ./ota-upload.sh CLIENT_ID CLIENT_SECRET DEVICE_ID sketch.json
44
44
```
Original file line number Diff line number Diff line change 8
8
INTER_CHUNK_DELAY_MS = 250 # This is delay between 2 consecutive chunks so as to not over load the embedded device.
9
9
10
10
if len (sys .argv ) != 3 :
11
- print ("Usage: bin2json.py sketch-ota.bin sketch-ota .json" )
11
+ print ("Usage: bin2json.py sketch.ota sketch.json" )
12
12
sys .exit ()
13
13
14
14
ifile = sys .argv [1 ]
Original file line number Diff line number Diff line change 4
4
import crccheck
5
5
6
6
if len (sys .argv ) != 3 :
7
- print ("Usage: bin2ota.py sketch.bin sketch-ota.bin " )
7
+ print ("Usage: bin2ota.py sketch.bin sketch.ota " )
8
8
sys .exit ()
9
9
10
10
ifile = sys .argv [1 ]
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
3
if [ " $# " -ne 4 ]; then
4
- echo " Usage: ota-upload.sh CLIENT_ID CLIENT_SECRET DEVICE_ID sketch-ota.base64 "
4
+ echo " Usage: ota-upload.sh CLIENT_ID CLIENT_SECRET DEVICE_ID sketch.json "
5
5
exit 1
6
6
fi
7
7
You can’t perform that action at this time.
0 commit comments