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

ggeorge
Posts: 32
Joined: Mon Mar 07, 2022 6:00 am

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

Postby ggeorge » Thu Jun 02, 2022 9:36 am

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.

ESP_Sun
Posts: 291
Joined: Thu Dec 30, 2021 9:52 am

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

Postby ESP_Sun » Thu Jun 02, 2022 11:05 am

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

ggeorge
Posts: 32
Joined: Mon Mar 07, 2022 6:00 am

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

Postby ggeorge » Thu Jun 02, 2022 12:13 pm

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.

ESP_Sun
Posts: 291
Joined: Thu Dec 30, 2021 9:52 am

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

Postby ESP_Sun » Thu Jun 02, 2022 12:35 pm

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.

Who is online

Users browsing this forum: No registered users and 19 guests