Page 1 of 1

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

Posted: Thu Mar 19, 2020 10:40 am
by testter2
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.

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

Posted: Thu Mar 19, 2020 4:57 pm
by leonardo.zambonelli
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?

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

Posted: Thu Mar 19, 2020 6:07 pm
by testter2
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.

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

Posted: Sat Mar 21, 2020 12:25 am
by PeterR
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.

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

Posted: Sat Mar 21, 2020 1:25 pm
by testter2
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.