gpt4 book ai didi

bluetooth-lowenergy - BLE制造商特定数据AD的最大长度是多少?

转载 作者:行者123 更新时间:2023-12-04 10:48:57 25 4
gpt4 key购买 nike

BLE广告最多可以发送31个字节。在广告内,可能有多个广告。

我想知道制作一个广告仅包含一个制造商特定数据广告是否有效,并且这种广告是否可以填满所有31个字节(长度字段为1个字节,类型字段为(0xff)的1个字节,2个) CIC字节和27个自定义数据字节)。

蓝牙核心规范或任何其他规范指定了此吗?

最佳答案

从规范补充到蓝牙核心规范
版本4 A部分1.4:

1.4.1 Description

The Manufacturer Specific data type is used for manufacturer specific data. The first two data octets shall contain a company identifier code from the Assigned Numbers - Company Identifiers document. The interpretation of any other octets within the data shall be defined by the manufacturer specified by the company identifier.

1.4.2 Format Data Type <>

Description: Size: 2 or more octets The first 2 octets contain the Company Identifier Code followed by additional manufacturer specific data

Table 1.4: Manufacturer Specific Data Type



因此,除了广告包长度本身没有其他限制,每个广告数据包的长度为31个字节,扫描响应的长度为另外31个字节。

广告数据开头的3个字节要求具有Flags广告类型(对于任何非零长度的广告都是必需的,请参阅Core V4.0第3卷C部分11.1.3),以通过以下方式减少广告数据的长度: 3。

然后是制造广告类型标记和长度,这些标记和长度会添加到您的制造数据中,再减去2个字节。这使您拥有:
  • 广告数据中的26个字节
  • 扫描响应中的29个字节

  • 用于制造数据本身(尽管其中两个字节用于指定公司标识码),这将使数据达到:
  • 广告数据中的24个字节的实际数据
  • 扫描响应中的27个字节。
  • 关于bluetooth-lowenergy - BLE制造商特定数据AD的最大长度是多少?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33535404/

    25 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com