Skip to content

Commit 2dfac62

Browse files
committed
Documents 'flash', 'ota' and 'upgrade' commands
1 parent a140215 commit 2dfac62

File tree

2 files changed

+35
-23
lines changed

2 files changed

+35
-23
lines changed

README.md

+10-8
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,9 @@ Works with :
6161

6262
Valid Actions are:
6363

64-
- **upload** : Build and/or Upload current repo version to Device(s)
64+
- **flash** : flash current repo firmware to Device(s) using the serial port
65+
- **ota** : Upgrade device(s) firmware using 'Arduino OTA'
66+
- **upgrade** : Upgrade device(s) firmware using our WebServer
6567
- **build** : Build current repo version
6668
- **backup** : Backup remote devices' settings
6769
- **monitor** : Monitor the serial port
@@ -84,15 +86,15 @@ Valid Actions are:
8486

8587
Examples:
8688

87-
- `espbuddy upload` selects the one to upload to from the list of targets
88-
- `espbuddy upload relay1` uploads to target 'relay1'
89-
- `espbuddy upload all -b` uploads to all defined targets, while building the firmware first
90-
- `espbuddy upload relay1 -w` uploads using serial to target 'relay1'
91-
- `espbuddy upload relay1 -web` builds 'relay1', then using serial port, erase first and upload
92-
- `espbuddy backup all` backups settings ofall defined targets
89+
- `espbuddy ota` selects the device to upgrade from the list of targets
90+
- `espbuddy ota relay1` upgrade target 'relay1'
91+
- `espbuddy ota all -b` upgrade all defined targets, while building the firmware first
92+
- `espbuddy flash relay1` uploads using serial port to target 'relay1'
93+
- `espbuddy flash relay1 -eb` builds 'relay1', then using the serial port, erase first and flash
94+
- `espbuddy backup all` backups settings of all defined targets
95+
- `espbuddy send relay1 SetOption13 1` Sends the "SetOption13 1" command to 'relay1'
9396
- `espbuddy monitor relay1 --rate=9600` serial monitors 'relay1' target at 9600 bauds
9497
- `espbuddy server` launches the builtin webserver on port 81, serving files from the backup directory
95-
- `espbuddy send relay1 SetOption13 1` Sends the "SetOption13 1" command to 'relay1'
9698
- `espbuddy version all` shows versions of all defined targets
9799
- `espbuddy ping all` pings all defined targets
98100
- `espbuddy sonodiy flash 192.168.1.10 1000abc1ef` flashes a (default) Tasmota firmware into a Sonoff Mini in DIY mode

doc/command_examples.md

+25-15
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,9 @@ EspBuddby v2.50 ( EspTool v3.3.3 )
1616
* Usage : espbuddy COMMAND [TARGET] [options]
1717
1818
* Valid COMMANDS :
19-
- upload : Build and/or Upload current repo version to Device(s)
20-
- upgrade : Upgrade device(s) firmware
19+
- flash : Flash device(s) firmware, using the serial port
20+
- ota : Upgrade device(s) firmware, using 'Arduino OTA' (when OTA is compiled in the firmware)
21+
- upgrade : Upgrade device(s) firmware using our WebServer (only available for Tasmota)
2122
- build : Build device(s) firmware
2223
- backup : Download and archive settings from the remote device
2324
- monitor : Monitor device connected to the serial port
@@ -39,8 +40,9 @@ EspBuddby v2.50 ( EspTool v3.3.3 )
3940
- help : Show full help
4041
4142
* Commands Usage :
42-
- upload : espbuddy upload TARGET [options, auth_options, upload_options]
43-
- upgrade : espbuddy upgrade TARGET [options, auth_options, upload_options]
43+
- flash : espbuddy flash TARGET [options, upload_options, flash_options]
44+
- ota : espbuddy ota TARGET [options, upload_options, ota_options, auth_options]
45+
- upgrade : espbuddy upgrade TARGET [options, upload_options, auth_options]
4446
- build : espbuddy build TARGET [options]
4547
- backup : espbuddy backup TARGET [options, auth_options]
4648
- monitor : espbuddy monitor [TARGET] [options]
@@ -87,17 +89,25 @@ EspBuddby v2.50 ( EspTool v3.3.3 )
8789
--repo=xxx : Repository to use (overrides per host settings)
8890
8991
+ UPLOAD_OPTIONS :
90-
-b : Build before Flashing/Uploading/Upgrading firmware
91-
-w : Wire Mode : Upload using the serial port instead of the default OTA
92-
-e : In Wire Mode, erase flash first, then upload
93-
-m : Switch to serial monitor after upload
94-
-p : Upload previous firmware backuped (instead of the latest build)
95-
-s : Skip Intermediate OTA Upload (when 2steps mode is set)
92+
-b : Build before Flashing / OTA Uploading / Upgrading firmware
93+
-p : Upload previous firmware backuped (instead of the latest one)
9694
-c : When using --firm, make a copy instead of a symbolic link
97-
--port=xxx : Serial port to use (override main or per host serial port)
98-
--rate=xxx : Serial port speed to use (override main or per host serial port)
99-
--firm=xxx : Full path to the firmware file to upload (override latest build one)
100-
--from=REPO : Migrate from REPO to the selected config
95+
--firm=xxx : Full path to the firmware file to upload (overrides latest build one)
96+
97+
+ FLASH_OPTIONS :
98+
-e : Erase memory first, then upload
99+
-m : Imediatly switches to serial port monitor after upload
100+
--port=xxx : Serial port to use (overrides main or per host serial port)
101+
--rate=xxx : Serial port speed to use (overrides main or per host serial port). Either:
102+
- a number
103+
- 'slow' is a shorcut for 57600
104+
- 'boot' is a shorcut for 74880 (default)
105+
- 'fast' is a shorcut for 115200
106+
- 'turbo' is a shorcut for 460800
107+
108+
+ OTA_OPTIONS :
109+
-s : Skip Intermediate OTA Upload (when 2steps mode is set in config)
110+
--from=REPO : Migrate from REPO to the selected config's REPO
101111
102112
+ AUTH_OPTIONS :
103113
--login=xxx : Login name (overrides host or per config login)
@@ -343,7 +353,7 @@ Selected Repo : espeasy
343353

344354

345355

346-
### `# espbuddy upload led2`
356+
### `# espbuddy ota led2`
347357

348358
Upload the latest firmware to the 'led2' host, using an intermediate OTA firmware *as set in the 'led2' configuration, from the config.php file.*
349359

0 commit comments

Comments
 (0)