espressif / esp-now

A connectionless Wi-Fi communication protocol
Apache License 2.0
477 stars 90 forks source link

Is it possible to send OTA files via UART without internet in ESPNow? (AEGHB-539) #108

Closed andy-danieal closed 4 months ago

andy-danieal commented 5 months ago

ESPNow gateway was connected via UART to the Ubuntu system and many devices (with different types of firmware) were connected to the gateway to communicate with ESPNow.

Notes:- ESPNow gateways have different firmware from other devices.

n3b0j5a commented 5 months ago

Yeah, you can do that, you need to develop some kind of protocol to download firmware via UART (to some dedicated or OTA partition), and than send it over via espnow.

andy-danieal commented 5 months ago

If the ESPNow gateway and Device firmware are different, will the ESPNow gateway act as the initiator and where to store OTA data?

Is there any example of downloading firmware via UART?

lhespress commented 5 months ago

@andy-danieal

Yeath, ESP-NOW gateway can store data for OTA.

You can reference the link as follows which is the serial protocol used by the UART: https://docs.espressif.com/projects/esptool/en/latest/esp32/advanced-topics/serial-protocol.html