【AT】蓝牙调试助手扫描 BLE 设备名称没变

Moderator: ESP_XCGuang

Rainbow
Posts: 26
Joined: Fri May 21, 2021 3:21 am

【AT】蓝牙调试助手扫描 BLE 设备名称没变

Postby Rainbow » Tue Aug 31, 2021 2:24 am

AT 固件版本:release/v2.2.0.0 版本

使用“AT+BLEADVDATA”定义了蓝牙的广播的蓝牙名称,使用“蓝牙调试助手” 和 “Light Blue”APP ,在安卓手机上扫描 ESP32 的 BLE 设备,能正常搜索到改 BLE Name 之后的名称;但在 IOS 手机上,使用“蓝牙调试助手” 和 “Light Blue”APP , 发现蓝牙名称没有改掉,还是 ESP32。但使用“nRF Connect” APP 搜索都是正常的。为什么呢?

测试同时使用 AT+BLENAME 和 AT+BLEADVDATA 定义的设备名称, “Light Blue”APP 端会显示上一次通过 AT+BLENAME 命令修改的 BLE NAME 。但扫描到的 BLE 设备始终不会显示 AT+BLEADVDATA 定义的设备名称。
Last edited by Rainbow on Tue Aug 31, 2021 6:29 am, edited 1 time in total.

13808034154
Posts: 1
Joined: Tue Aug 31, 2021 3:17 am

Re: 【AT】蓝牙调试助手扫描 BLE 设备名称没变

Postby 13808034154 » Tue Aug 31, 2021 3:20 am

:lol:

Rainbow
Posts: 26
Joined: Fri May 21, 2021 3:21 am

Re: 【AT】蓝牙调试助手扫描 BLE 设备名称没变

Postby Rainbow » Tue Aug 31, 2021 11:23 am

测试发现用 AT+BLEADVDATAEX="666","A002","0102030405",1 命令可以立马改掉 BLE NAME

ESP_Alson
Posts: 106
Joined: Mon Mar 22, 2021 3:37 am

Re: 【AT】蓝牙调试助手扫描 BLE 设备名称没变

Postby ESP_Alson » Mon Sep 27, 2021 3:32 am

您好,对于您的问题,回答如下:

手机 APP 显示 BLE 的什么设备名称是根据 APP 的解析方式来的,BLE 设备名称有两个地方可以体现,一个是广播,另一个是设备的 name 特征值。

建议您可以通过 AT+BLEADVDATA 设置广播,通过 AT+BLENAME 设置 name 特征值。这两个地方要同时修改。

Who is online

Users browsing this forum: No registered users and 77 guests