Page 1 of 1

ESP32 OTA via the BLE

Posted: Thu Jan 20, 2022 6:34 am
by zazas321
Hello. I have BLE running on my device. I have used ble_secure_server example from the ESP-IDF. I have created 1 service with 2 characterstics.

I would love to implement firmware update over the BLE. At some point in the future, there will be an app on the phone that will have the hex file and I would like to update the FW on my device.

I havent managed to find a lot of information on how OTA via the BLE can be done. If anyone has done it, could you please share your knowledge with me and point me in the right direction?

At the moment, there is no such app and I would like to somehow try and test it. What are the possible ways to test firmware update over the BLE without an actual BLE app?

Re: ESP32 OTA via the BLE

Posted: Sat Jan 22, 2022 6:49 pm
by ClockToshi
For ble ota I'm not sure if there is any example is esp idf but you can find an ota mechanism that supports both serial and ble in https://github.com/blockstream/jade - it wraps the ota data in cbor messages

It uses by default deflate compression via minix in the rom but you can skip that (it works well though)