BLE跟BT名字相同

ChiShaoJun
Posts: 32
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: 29
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: 32
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);

limitless23
Posts: 14
Joined: Tue Jan 09, 2024 7:02 am

Re: BLE跟BT名字相同

Postby limitless23 » Fri Mar 22, 2024 6:57 am

意思是 bt 和 ble 的名字必须是一样的吗

ESP_MacChu
Posts: 43
Joined: Tue Nov 21, 2023 7:53 am

Re: BLE跟BT名字相同

Postby ESP_MacChu » Mon Mar 25, 2024 10:11 am

ChiShaoJun wrote:
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);
你没有成功修改 ble 的广播名称。你可以参考例程 examples/bluetooth/bluedroid/coex/a2dp_gatts_coex 中的写法,通过 ble_init_adv_data 实现你的需求。

Who is online

Users browsing this forum: No registered users and 44 guests