BLE跟BT名字相同

ChiShaoJun
Posts: 14
Joined: Mon Sep 17, 2018 3:24 am

BLE跟BT名字相同

Postby ChiShaoJun » Thu Dec 06, 2018 8:38 am

我这边使用esp_ble_gap_set_device_name和esp_bt_dev_set_device_name为BLE和BT取名的时候,BLE和BT的名字一样。是这两个函数有冲突吗?
Last edited by ChiShaoJun on Fri Dec 07, 2018 3:46 am, edited 1 time in total.

Weijian-Espressif
Posts: 18
Joined: Wed Aug 09, 2017 6:16 am

Re: BLE跟BT名字相同

Postby Weijian-Espressif » Fri Dec 07, 2018 3:02 am

A BR/EDR/LE device type shall have a single Bluetooth device name which shall be identical irrespective of the physical channel used to perform the name discovery procedure.

you can refer to 3.2.2.1.1 Bluetooth Device Name in a Device with BR/EDR/LE Device Type in bluetooth spec v4.2, thanks.

ChiShaoJun
Posts: 14
Joined: Mon Sep 17, 2018 3:24 am

Re: BLE跟BT名字相同

Postby ChiShaoJun » Fri Dec 07, 2018 3:45 am

这个我在esp_bt_dev_set_device_name()函数说明上看到了。
A BR/EDR/LE device type shall have a single Bluetooth device name which shall be identical irrespective of the physical channel used to perform the name discovery procedure.
翻译:BR / EDR / LE设备类型应具有单个蓝牙设备名称,无论用于执行名称发现过程的物理信道如何,该名称都应相同。
这句话给我的意思是:不同信道,名字应该要统一。
但是我现在的问题是:同时使用esp_bt_dev_set_device_name()函数和esp_ble_gap_set_device_name()函数,结果是BT跟BLE的设备名字是一样的,是不是这两个函数有冲突。
例程a2dp_gatts_coex中,ble命名是用ble_init_adv_data(BLE_ADV_NAME);(内用esp_ble_gap_config_adv_data_raw)
bt则是用esp_bt_dev_set_device_name(BT_DEVICE_NAME);

Who is online

Users browsing this forum: No registered users and 3 guests