How can i send a .bin file to esp32 through bluetooth?

testter2
Posts: 3
Joined: Thu Mar 19, 2020 10:36 am

How can i send a .bin file to esp32 through bluetooth?

Postby testter2 » Thu Mar 19, 2020 10:40 am

I'm using an esp32, I need to update the firmware through Bluetooth.

so that .bin file wants to be sent through Bluetooth.., could you please tell me,
how can it possible?

Thanks.

leonardo.zambonelli
Posts: 11
Joined: Thu May 16, 2019 3:13 pm

Re: How can i send a .bin file to esp32 through bluetooth?

Postby leonardo.zambonelli » Thu Mar 19, 2020 4:57 pm

I made a project with a BLE GATT server on ESP32, and a mobile that connects to the device and sending the update using chuncks of the bin files
Do you already have a BT or BLE server in your ESP32 project?

testter2
Posts: 3
Joined: Thu Mar 19, 2020 10:36 am

Re: How can i send a .bin file to esp32 through bluetooth?

Postby testter2 » Thu Mar 19, 2020 6:07 pm

leonardo.zambonelli wrote:
Thu Mar 19, 2020 4:57 pm
I made a project with a BLE GATT server on ESP32, and a mobile that connects to the device and sending the update using chuncks of the bin files
Do you already have a BT or BLE server in your ESP32 project?
Yes,I already have a BT in my ESP32 project.

How could you divide the bin file so i could send it from mobile .
and can yo guide me to any example that receive that data from bin file to flash so i cold update the app.

thanks in advance.
Last edited by testter2 on Sat Mar 21, 2020 1:21 pm, edited 1 time in total.

PeterR
Posts: 621
Joined: Mon Jun 04, 2018 2:47 pm

Re: How can i send a .bin file to esp32 through bluetooth?

Postby PeterR » Sat Mar 21, 2020 12:25 am

Serial profile may be easiest. Makes it so much easier to test IMHO. How easy would it be to script a file read/bt send vrs some custom protocol? Serial profiles will be well documented. Also it would be a natural hook into the ESP ROM programming routines. Little bit of driver middle & then you would be able to leaver a whole lot of eco.

EDIT: PS The optimum vrs easy argument may be applied. IMHO I have gone 'easy', root of all evil etc.
EDIT: PPS I would not be suprised if there was already a BT OTA solution. Seems a natural Play update mechanism. Google it.
& I also believe that IDF CAN should be fixed.

testter2
Posts: 3
Joined: Thu Mar 19, 2020 10:36 am

Re: How can i send a .bin file to esp32 through bluetooth?

Postby testter2 » Sat Mar 21, 2020 1:25 pm

PeterR wrote:
Sat Mar 21, 2020 12:25 am
Serial profile may be easiest. Makes it so much easier to test IMHO. How easy would it be to script a file read/bt send vrs some custom protocol? Serial profiles will be well documented. Also it would be a natural hook into the ESP ROM programming routines. Little bit of driver middle & then you would be able to leaver a whole lot of eco.

EDIT: PS The optimum vrs easy argument may be applied. IMHO I have gone 'easy', root of all evil etc.
EDIT: PPS I would not be suprised if there was already a BT OTA solution. Seems a natural Play update mechanism. Google it.
i googled it but seems that not mentioned a BT OTA Solution.
could you guide me to any example that receive bin file from Serial profile .
Thanks in advance.

Who is online

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