Page 1 of 3

ESP32 OTA via BLE

Posted: Wed Jun 21, 2017 9:46 am
by Vidula
Hi,
I want to know is it possible to update esp32 firmware via ble?
Kindly give your feedback as soon as possible.

Thanks in Advance!

Re: ESP32 OTA via BLE

Posted: Wed Jun 21, 2017 12:25 pm
by ESP_Sprite
In theory, sure. You can do an OTA update from anywhere: just receive the data over whatever channel you choose and write it to flash. In practice, BTLE isn't really meant for speedy data transfers and ESP32 firmwares aren't exactly that small: I expect that with a lot of tweaking, you can get the time it takes to flash the ESP32 over BTLE down to several minutes, but not much less.

Re: ESP32 OTA via BLE

Posted: Wed Jun 21, 2017 12:32 pm
by Vidula
Does the espressif is planning to release any example for ota via bluetooth. We urgently require this information .

Re: ESP32 OTA via BLE

Posted: Wed Jun 21, 2017 12:38 pm
by ESP_Sprite
I don't know the plans of everyone in Espressif off the top of my head, but I highly doubt it: as I stated before, OTA over BLE is impractical because of the long times it would take. It's better to use WiFi, or maybe it's possible to get some kind of OTA over BTClassic when we have the required profiles for that.

Re: ESP32 OTA via BLE

Posted: Wed Jun 21, 2017 1:01 pm
by Vidula
Basically we are developing two products for our client.One is Bluetooth enabled and another is wifi enable(as per clients requirement). We are using esp32 for both. Now for both the products we require OTA feature individually,so that using this feature user can update the firmware from our smartphone app. So what is the best way to implement it.
Also i believe for our product it is ok to spent several minute (say 5 min ) for update because this might be a once in a 6 month/year procedure.
can we get any documentation on OTA via BLE,some sort of procedure like you have given for wifi.It will be very helpful during development.

Thanks!

Re: ESP32 OTA via BLE

Posted: Sat Dec 16, 2017 9:20 am
by johanan
Hello,
I wonder if you solved this.

We will have the same problem in our next project. Most of our installations are in isolated areas with no internet or WiFi, but we would like to enable customers with mobile phone to update a device OTA by BT or BLE.

Please let me know if you succeeded doing this.

Thanks.

Re: ESP32 OTA via BLE

Posted: Mon Dec 18, 2017 5:19 pm
by tarafrost
I'm interested in OTA over BLE as well.

Though in my case, I may use BLE to let the user set the Wifi SSID/Pswd for the device, and then let the device connect and do the OTA over wifi.

Thanks!

ESP32 OTA via BLE

Posted: Fri Feb 02, 2018 4:38 am
by sumesh
is there any information on this topic..? anyone tried this before?
any direction in this regards will be helpful.. i need to implement this on device that i am developing.

Re: ESP32 OTA via BLE

Posted: Fri Feb 02, 2018 6:13 pm
by loboris
OTA over BTClassic (SPP profile) can be easily implemented as all needed components are now available.
Use bt_spp_acceptor and ota examples as a base.

Re: ESP32 OTA via BLE

Posted: Fri Feb 02, 2018 7:35 pm
by chegewara
It is possible to implement OTA over BLE but it will be very slow. Like loboris said, classic BT is better choice.