ESP32 OTA via the BLE

zazas321
Posts: 165
Joined: Mon Feb 01, 2021 9:41 am

ESP32 OTA via the BLE

Postby zazas321 » Thu Jan 20, 2022 6:34 am

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?

ClockToshi
Posts: 5
Joined: Thu Nov 16, 2017 9:09 pm

Re: ESP32 OTA via the BLE

Postby ClockToshi » Sat Jan 22, 2022 6:49 pm

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)

Who is online

Users browsing this forum: No registered users and 53 guests