[AT command] Add "at_customize.bin" and "service bin" directly from the ESP32

aldecei
Posts: 11
Joined: Thu Jun 13, 2019 9:00 am

[AT command] Add "at_customize.bin" and "service bin" directly from the ESP32

Postby aldecei » Thu Jun 13, 2019 10:08 am

Hello,
I am curently trying to set up a ble server on my esp32, only with AT commands.
The BLE server need a bin file flashed in the custom partition.

Is there any way to flash the ESP32 and add "GATT Service Bin" without a computer ?
Only with the ESP32, a wifi connection and AT commands ?

I need to set up a ble server without programing the ESP, only with AT commands.

Thank you.

Helen L
Posts: 71
Joined: Thu Aug 16, 2018 9:07 am

Re: [AT command] Add "at_customize.bin" and "service bin" directly from the ESP32

Postby Helen L » Fri Jun 14, 2019 7:05 am

If you bought a WROOM32 module from Espressif, the module should already have an AT firmware in it. And it will print "ready" in baud rate 115200 when power on.

aldecei
Posts: 11
Joined: Thu Jun 13, 2019 9:00 am

Re: [AT command] Add "at_customize.bin" and "service bin" directly from the ESP32

Postby aldecei » Wed Jul 10, 2019 7:36 am

Hi, in fact there are differents firmware "levels". I resolved my problem so here is a little explenation:

1. When you buy an esp there is the basic firmware with basic AT commands.

2. If you want Bluetooth Low Energy AT commands, we must flash the firmware, you can check this tutorial.

3. If you want to set a BLE server, you must flash the custom partition of your esp32. And this is a bit tricky.
My question was: can we flash that custom partition without a flash tool on a computer but directly with AT commands (like the AT+SYSFLASH command).

And the answer is no.

espresselse
Posts: 3
Joined: Tue Jun 26, 2018 10:23 pm

Re: [AT command] Add "at_customize.bin" and "service bin" directly from the ESP32

Postby espresselse » Thu May 21, 2020 3:46 pm

aldecei wrote:
Thu Jun 13, 2019 10:08 am
Is there any way to flash the ESP32 and add "GATT Service Bin" without a computer ?
Only with the ESP32, a wifi connection and AT commands ?
Yes, this is possible. I did it with Over-The-Air updates. Refer to this example.
esp-idf\examples\system\ota\native_ota_example
It was easiest to start with the server certificate from here
https://github.com/espressif/esp-idf/is ... -538271762

Who is online

Users browsing this forum: Corand, stijnb1234, thormj and 136 guests