Browse Source

update readme

master
Simon Schmidt 2 years ago
parent
commit
5a837bd37f
1 changed files with 43 additions and 8 deletions
  1. 43
    8
      README.md

+ 43
- 8
README.md View File



___ ___


modify __platformio.ini__
__modify__ _platformio.ini_


```ini ```ini
; example platformio.ini ; example platformio.ini


___ ___


__Upload compiled binary via uart__
__upload compiled binary via uart__


__note__: close serial port __note__: close serial port




__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
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__


![ota flash layout](ota_flash.png)
```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__


code for updating
![ota flash layout](ota_flash.png)

Loading…
Cancel
Save