Page 1 of 1

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

Posted: Thu Jun 13, 2019 10:08 am
by aldecei
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.

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

Posted: Fri Jun 14, 2019 7:05 am
by Helen L
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.

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

Posted: Wed Jul 10, 2019 7:36 am
by aldecei
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.

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

Posted: Thu May 21, 2020 3:46 pm
by espresselse
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