瀏覽代碼

[readme] add firmware update description

Evlers 6 月之前
父節點
當前提交
a6bd64c0b8
共有 2 個文件被更改,包括 49 次插入0 次删除
  1. 25 0
      README.md
  2. 24 0
      README_CN.md

+ 25 - 0
README.md

@@ -176,6 +176,31 @@ found part[0], begin: 2097152, size: 29.738GB
 [2444] I/WLAN.lwip: eth device init ok name:w1
 ```
 
+## Firmware update
+
+`ESP-Hosted` supports upgrading the `ESP32` firmware through the transmission interface.<br>
+The upgrade process is as follows:
+```shell
+msh />esp_ota /flash/network_adapter.bin
+esp-hosted ota update started
+erasing the ota partition..
+writing: [==================================================] 100%  1084496 | 100 KB/s
+firmware write success!!
+slave will restart after 5 sec
+```
+
+The `esp_ota` command can support either `online download` or `local file` as the firmware upgrade package.<br>
+The `online download` method requires the use of the `webclient` software package:
+```shell
+msh />esp_ota https://file.server.com/network_adapter.bin
+esp-hosted ota update started
+erasing the ota partition..
+writing: [==================================================] 100%  1084496 | 81 KB/s
+firmware write success!!
+slave will restart after 5 sec
+msh />
+```
+
 ## Supported Chip
 
 | **CHIP**  |**SDIO**|**SPI**|

+ 24 - 0
README_CN.md

@@ -176,6 +176,30 @@ found part[0], begin: 2097152, size: 29.738GB
 [2444] I/WLAN.lwip: eth device init ok name:w1
 ```
 
+## 固件更新
+
+`ESP-Hosted` 支持通过传输接口升级`ESP32`固件,升级过程如下:
+```shell
+msh />esp_ota /flash/network_adapter.bin
+esp-hosted ota update started
+erasing the ota partition..
+writing: [==================================================] 100%  1084496 | 100 KB/s
+firmware write success!!
+slave will restart after 5 sec
+```
+
+`esp_ota`命令可以支持`在线下载`或者`本地文件`作为固件升级包。<br>
+`在线下载`方式需要依赖`webclient`软件包:
+```shell
+msh />esp_ota https://file.server.com/network_adapter.bin
+esp-hosted ota update started
+erasing the ota partition..
+writing: [==================================================] 100%  1084496 | 81 KB/s
+firmware write success!!
+slave will restart after 5 sec
+msh />
+```
+
 ## 芯片支持
 
 | **CHIP**  |**SDIO**|**SPI**|