蓝牙HCI命令用于启用BLE广告 [英] Bluetooth HCI command for enabling BLE advertising

查看:230
本文介绍了蓝牙HCI命令用于启用BLE广告的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在尝试编写一些测试脚本来获得蓝牙设备的fcc认证.我一直在关注这两个站点 http://processors.wiki.ti.com/index. php/CC256x_VS_HCI_Commands http://processors.wiki.ti.com/index.php/WL18xx_Bluedroid_Bluetooth_RF_Testing .我一直在使用后者将命令从前者转换为bluedroid测试工具将识别的测试.我大部分时间都取得了成功,但是我需要打开BLE广告模式,并且找不到解决方法.我使用的蓝牙芯片是松下的Pan13xx.如果有人能指出我正确的方向,那就太好了.

I am currently trying to write some test scripts to get a bluetooth device fcc certified. I have been following these two sites http://processors.wiki.ti.com/index.php/CC256x_VS_HCI_Commands, http://processors.wiki.ti.com/index.php/WL18xx_Bluedroid_Bluetooth_RF_Testing. I've been using the later to convert commands from the former into tests that the bluedroid test tool will recognize. I have had success for the most part, but I need away to turn on BLE advertising mode and cannot find a way to do it. The bluetooth chip I am using is a Pan13xx from Panasonic. If anyone could point me in the right direction that would be amazing.

谢谢.

推荐答案

我还没有尝试过,但是根据蓝牙4.2规范(第2卷,E部分,第7.8.9页,第1284页):

I haven't tried this, but according to the Bluetooth 4.2 spec (Vol 2, Part E, 7.8.9 Page 1284):

HCI_LE_Set_Advertise_Enable 是用于启动/停止广告的命令.

HCI_LE_Set_Advertise_Enable is the command for starting/stopping advertising.

它需要一个 Advertising_Enable 参数,该参数定义为:

It takes an Advertising_Enable parameter which is defined as:

  • 0x00:广告已禁用(默认)

  • 0x00: Advertising is disabled (default)

0x01:启用了广告.

0x01: Advertising is enabled.

0x02 – 0xFF:保留供将来使用值

0x02 – 0xFF: Reserved for future use Value

并返回状态,该状态定义为:

and returns Status which is defined as:

  • 0x00:LE_Set_Advertise_Enable命令成功
  • 0x01 – 0xFF:LE_Set_Advertise_Enable命令失败

这篇关于蓝牙HCI命令用于启用BLE广告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆