Page 1 of 1

ESP32 OTA over BLE.

Posted: Thu Jan 21, 2021 7:12 am
by kubera
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?

Re: ESP32 OTA over BLE.

Posted: Thu Jan 21, 2021 11:14 am
by chegewara
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.