Page 1 of 1

Not able to see set BLE name on the mobile phone with ESP32C3 Mini

Posted: Thu Jun 02, 2022 9:36 am
by ggeorge
UART4 RX = AT+CWMODE=3
UART4 RX =
UART4 RX = OK
UART4 RX = AT+BLEINIT=2
UART4 RX =
UART4 RX = OK
UART4 RX = AT+BLENAME="SNM476M-123456789"
UART4 RX =
UART4 RX = OK
UART4 RX = AT+BLEGATTSSRVCRE
UART4 RX =
UART4 RX = OK
UART4 RX = AT+BLEGATTSSRVSTART
UART4 RX =
UART4 RX = OK
UART4 RX = AT+BLEADVSTART
UART4 RX = OK

I tried these steps to set name and I am not able to see this name on my phone.

Re: Not able to see set BLE name on the mobile phone with ESP32C3 Mini

Posted: Thu Jun 02, 2022 11:05 am
by ESP_Sun
Hi, I see that there is a description in the documentation, it may not be clear. The AT+BLENAME command (https://docs.espressif.com/projects/esp ... evice-name) just The name of the BLE service to set. If you want to broadcast the device name, you need to use the AT+BLEADVDATA command or the AT+BLEADVDATAEX command to make the device broadcast with the device name

Re: Not able to see set BLE name on the mobile phone with ESP32C3 Mini

Posted: Thu Jun 02, 2022 12:13 pm
by ggeorge
UART4 RX = AT+CWMODE=3
UART4 RX =
UART4 RX = OK
UART4 RX = AT+BLEINIT=2
UART4 RX =
UART4 RX = OK
UART4 RX = AT+BLEADVDATA="123456789"
UART4 RX =
UART4 RX = ERROR
UART4 RX = AT+BLENAME="123456789"
UART4 RX =
UART4 RX = OK
UART4 RX = AT+BLEGATTSSRVCRE
UART4 RX =
UART4 RX = ERROR
UART4 RX = AT+BLEGATTSSRVSTART
UART4 RX =
UART4 RX = OK
UART4 RX = AT+BLEADVSTART
UART4 RX = OK

Tried setting the name it gives error.

Only this AT+BLEADVDATAEX="ESP-AT","A002","0102030405",1 works.

Re: Not able to see set BLE name on the mobile phone with ESP32C3 Mini

Posted: Thu Jun 02, 2022 12:35 pm
by ESP_Sun
Hi ggeorge,

Maybe you can take another look at AT+BLEADVDATA (https://docs.espressif.com/projects/esp ... ising-data) command introduction, its parameters seem to need to be converted into HEX strings. Maybe you can try it again.