ESP32 OTA over BLE.

kubera
Posts: 23
Joined: Wed May 20, 2020 10:21 am

ESP32 OTA over BLE.

Postby kubera » Thu Jan 21, 2021 7:12 am

I am developing a code for implementing OTA over BLE. Since no BLE OTA available for ESP32 I am creating a custom mehtod. OTA works fine. But the time required is really high.

In the process, I am only able to send 500 bytes per second via ESP_GATTS_EXEC_WRITE_EVT.

and it almost takes 1 hour 5 minutes to send a 2MB firmware. While transferring with 180 bytes, I am able to send 3 times in one second via ESP_GATTS_WRITE_EVT which makes 540 bytes per second.

Is there any way to increase the transfer speed?

chegewara
Posts: 2376
Joined: Wed Jun 14, 2017 9:00 pm

Re: ESP32 OTA over BLE.

Postby chegewara » Thu Jan 21, 2021 11:14 am

There is few topics on this forum about OTA over BLE, but i will say it one more time. I am able to update with this method with speed over 1MB per minute. All depends on both devices configuration (MTU).
I have 1 case when speed is much much slower and update takes around 20 minutes, but i could not figure out the reason, which most likely is android app. It is also problem with system configuration, because its ble mesh with OTA over BLE and mesh is using radio extensively.
Overall, it is very odd that it takes you so much time to update.

Who is online

Users browsing this forum: Google [Bot] and 140 guests