DATA FORMAT

The Link Layer has only one packet format used for both advertising channel 
packets and data channel packets
链接层不管广播通道还是数据通道,都公用一种包格式
蓝牙BLE LINK LAYER剖析(二) -- PDU
参数:

1.Preamble

蓝牙BLE LINK LAYER剖析(二) -- PDU

2.Access Address

蓝牙BLE LINK LAYER剖析(二) -- PDU

蓝牙BLE LINK LAYER剖析(二) -- PDU

3.PDU

PDU分两种,一种是广播信道的PDU,一种是DATA信道的PDU

1)广播信道PDU:

蓝牙BLE LINK LAYER剖析(二) -- PDU

蓝牙BLE LINK LAYER剖析(二) -- PDU

蓝牙BLE LINK LAYER剖析(二) -- PDU

ADV_IND:可连接可扫描的无任何限制的广播包

ADV_DIRECT_IND:可连接不可扫描的定向广播包。

ADV_NONCONN_IND:不可连接不可扫描非定向广播(最牛逼的广播方式:爱听不听,别问我,别找我!)。

ADV_SCAN_IND:可扫描不可连接非定向广播包。

SCAN_REQ:扫描请求。

SCAN_RSP:扫描回应。

CONNECT_REQ:连接请求。


对于广播类型来说,核心就是两个关键词:可扫描、可连接。




2)DATA信道PDU

蓝牙BLE LINK LAYER剖析(二) -- PDU

蓝牙BLE LINK LAYER剖析(二) -- PDU

蓝牙BLE LINK LAYER剖析(二) -- PDU

DATA PDU也分两种PDU(正常data PDU,control data PDU)
正常data PDU(用于L2CAP传输数据)和control data PDU( is used to control the Link Layer connection)通过以下图区分
蓝牙BLE LINK LAYER剖析(二) -- PDU

control data PDU 图示:
蓝牙BLE LINK LAYER剖析(二) -- PDU
opcode:

蓝牙BLE LINK LAYER剖析(二) -- PDU

蓝牙BLE LINK LAYER剖析(二) -- PDU


4.CRC

At the end of every LinkLayer packet there is a 24-bit CRC. It shall be calculated over the PDU

相关文章:

  • 2021-11-14
  • 2021-06-12
  • 2021-12-06
  • 2021-07-29
  • 2022-12-23
  • 2021-05-25
  • 2022-12-23
  • 2021-12-16
猜你喜欢
  • 2021-07-27
  • 2022-12-23
  • 2021-06-15
  • 2021-08-25
  • 2021-10-01
  • 2021-11-22
相关资源
相似解决方案