Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/jpa/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Bluetooth BlueNRG MS在观察者模式下不生成任何广告报告_Bluetooth_Bluetooth Lowenergy_Stm32_Bluenrg - Fatal编程技术网

Bluetooth BlueNRG MS在观察者模式下不生成任何广告报告

Bluetooth BlueNRG MS在观察者模式下不生成任何广告报告,bluetooth,bluetooth-lowenergy,stm32,bluenrg,Bluetooth,Bluetooth Lowenergy,Stm32,Bluenrg,我目前正在使用BlueNRG MS堆栈与两个带有IDB05A1蓝牙LE扩展的STM32F401RE核子板合作。一块板配置为广告客户模式。其他板配置为观察者模式,并应打印从广告客户收到的所有消息 当我使用如下所示的特定于供应商的命令启动观察程序时,一切正常,我可以在HCI\u EVENT\u CB功能中处理LE\u advision\u EVENT aci_gap_start_observation_procedure(0x4000, 0x4000, 0x00, 0x00, 0x00); 当我尝

我目前正在使用BlueNRG MS堆栈与两个带有IDB05A1蓝牙LE扩展的STM32F401RE核子板合作。一块板配置为广告客户模式。其他板配置为观察者模式,并应打印从广告客户收到的所有消息

当我使用如下所示的特定于供应商的命令启动观察程序时,一切正常,我可以在
HCI\u EVENT\u CB
功能中处理
LE\u advision\u EVENT

aci_gap_start_observation_procedure(0x4000, 0x4000, 0x00, 0x00, 0x00);
当我尝试使用如下所示的标准化蓝牙命令执行相同操作时,在
HCI\u EVENT\u CB
中不会生成和处理任何
LE\u advertization\u REPORT
,即使蓝牙标准规定应该这样做

hci_le_set_scan_parameters(0x00, 0x4000, 0x4000, 0x00, 0x00);
hci_le_set_scan_enable(0x01, 0x00);
你知道我做错了什么吗


提前谢谢

您需要通过以下方式启用
LL\u WITOHUT\u主机
模式 使用参数调用
ACI\u HAL\u WRITE\u CONFIG\u DATA

  • 偏移量=0x2C
  • 长度=1
  • 值=1
但是,建议坚持GAP和GATT(不启用此模式) 因为主机保证与BLE规范完全兼容