update readme
This commit is contained in:
parent
96506c8681
commit
5a837bd37f
51
README.md
51
README.md
@ -28,7 +28,7 @@ void loop() {
|
|||||||
|
|
||||||
___
|
___
|
||||||
|
|
||||||
modify __platformio.ini__
|
__modify__ _platformio.ini_
|
||||||
|
|
||||||
```ini
|
```ini
|
||||||
; example platformio.ini
|
; example platformio.ini
|
||||||
@ -90,7 +90,7 @@ __note:__ __y__ represents the position of the boot file
|
|||||||
|
|
||||||
___
|
___
|
||||||
|
|
||||||
__Upload compiled binary via uart__
|
__upload compiled binary via uart__
|
||||||
|
|
||||||
__note__: close serial port
|
__note__: close serial port
|
||||||
|
|
||||||
@ -101,10 +101,10 @@ $ pio run -t upload
|
|||||||
|
|
||||||
__open serial port to esp8266 and check Wi-Fi connection__
|
__open serial port to esp8266 and check Wi-Fi connection__
|
||||||
|
|
||||||
monitor output:
|
|
||||||
```bash
|
```bash
|
||||||
|
# monitor output:
|
||||||
Ready
|
Ready
|
||||||
IP address: 192.168.10.108
|
IP address: # your local IP #
|
||||||
```
|
```
|
||||||
__modify platformio.ini accordingly__
|
__modify platformio.ini accordingly__
|
||||||
```ini
|
```ini
|
||||||
@ -115,13 +115,48 @@ board = esp01_1m
|
|||||||
framework = arduino
|
framework = arduino
|
||||||
|
|
||||||
upload_protocol = espota
|
upload_protocol = espota
|
||||||
upload_port = 192.168.10.108
|
upload_port = # your local IP #
|
||||||
monitor_speed = 74880
|
monitor_speed = 74880
|
||||||
```
|
```
|
||||||
___
|
___
|
||||||
|
|
||||||
Process of updating
|
__now you can upload new binaries via OTA__
|
||||||
|
|
||||||
|
```bash
|
||||||
|
$ pio run -t upload
|
||||||
|
# or use upload button in vscode
|
||||||
|
```
|
||||||
|
|
||||||
|
__what`s happening can be observed with [debug_ser.py](debug_ser.py), _PySerial_ needed !__
|
||||||
|
|
||||||
|
```bash
|
||||||
|
$ python3 debug_ser.py
|
||||||
|
|
||||||
|
# serial output:
|
||||||
|
[OTA] Start updating sketch
|
||||||
|
[OTA] Progress: 100%
|
||||||
|
[OTA] End
|
||||||
|
|
||||||
|
ets Jan 8 2013,rst cause:2, boot mode:(3,7)
|
||||||
|
|
||||||
|
load 0x4010f000, len 3460, room 16
|
||||||
|
tail 4
|
||||||
|
chksum 0xcc
|
||||||
|
load 0x3fff20b8, len 40, room 4
|
||||||
|
tail 4
|
||||||
|
chksum 0xc9
|
||||||
|
csum 0xc9
|
||||||
|
v0004e770
|
||||||
|
@cp:B0 # copying new binary into boot flash region
|
||||||
|
ld
|
||||||
|
|
||||||
|
[Program] Booting
|
||||||
|
[Program] OTA and HTTPServer ready !
|
||||||
|
[Program] IP address: 192.168.10.108
|
||||||
|
```
|
||||||
|
|
||||||
|
___
|
||||||
|
|
||||||
|
__Process of updating__
|
||||||
|
|
||||||
![ota flash layout](ota_flash.png)
|
![ota flash layout](ota_flash.png)
|
||||||
|
|
||||||
code for updating
|
|
Loading…
x
Reference in New Issue
Block a user