ESP32 OTA via BLE

Vidula
Posts: 6
Joined: Mon Jun 19, 2017 9:45 am
Location: Mumbai

ESP32 OTA via BLE

Postby Vidula » Wed Jun 21, 2017 9:46 am

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!

ESP_Sprite
Posts: 9757
Joined: Thu Nov 26, 2015 4:08 am

Re: ESP32 OTA via BLE

Postby ESP_Sprite » Wed Jun 21, 2017 12:25 pm

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.

Vidula
Posts: 6
Joined: Mon Jun 19, 2017 9:45 am
Location: Mumbai

Re: ESP32 OTA via BLE

Postby Vidula » Wed Jun 21, 2017 12:32 pm

Does the espressif is planning to release any example for ota via bluetooth. We urgently require this information .

ESP_Sprite
Posts: 9757
Joined: Thu Nov 26, 2015 4:08 am

Re: ESP32 OTA via BLE

Postby ESP_Sprite » Wed Jun 21, 2017 12:38 pm

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.

Vidula
Posts: 6
Joined: Mon Jun 19, 2017 9:45 am
Location: Mumbai

Re: ESP32 OTA via BLE

Postby Vidula » Wed Jun 21, 2017 1:01 pm

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!

johanan
Posts: 5
Joined: Thu Sep 28, 2017 4:37 am

Re: ESP32 OTA via BLE

Postby johanan » Sat Dec 16, 2017 9:20 am

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.

tarafrost
Posts: 2
Joined: Mon Dec 18, 2017 5:17 pm

Re: ESP32 OTA via BLE

Postby tarafrost » Mon Dec 18, 2017 5:19 pm

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!

sumesh
Posts: 16
Joined: Fri Dec 22, 2017 12:11 am

ESP32 OTA via BLE

Postby sumesh » Fri Feb 02, 2018 4:38 am

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.

User avatar
loboris
Posts: 514
Joined: Wed Dec 21, 2016 7:40 pm

Re: ESP32 OTA via BLE

Postby loboris » Fri Feb 02, 2018 6:13 pm

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.

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

Re: ESP32 OTA via BLE

Postby chegewara » Fri Feb 02, 2018 7:35 pm

It is possible to implement OTA over BLE but it will be very slow. Like loboris said, classic BT is better choice.

Who is online

Users browsing this forum: No registered users and 294 guests