见协议P2589,BLUETOOTH SPECIFICATION Version 4.2 [Vol 6,Part B],Section2.4
注:RFU为保留域,目前未使用
(一)LL Data PDU
1.用来发送L2CAP(Logical Link Control and Adaptation Protocol,逻辑链路控制和适配协议)数据
2.主设备发送空包给从设备,允许从设备回应数据包(包括空包)
(二)LL Control PDU
1.用来控制控制链路层的连接过程
2.当收到带有不认识或不支持的opcode的链路层控制包时,回应LL_UNKNOWN_RSP包
(1)0x00 LL_CONNECTION_UPDATE_REQ
transmitWindowSize = WinSize * 1.25 ms
transmitWindowOffset = WinOffset * 1.25 ms
connInterval = Interval * 1.25 ms
connSlaveLatency = Latency
connSupervisionTimeout = Timeout * 10 ms
connInstant = Instant
例如:
(2)0x01 LL_CHANNEL_MAP_REQ
例如:
(3)0x02 LL_TERMINATE_IND
Error Code:见协议P679,BLUETOOTH SPECIFICATION Version 4.2 [Vol 2, Part D]
例如:
(4)0x03 LL_ENC_REQ
例如:
(5)0x04 LL_ENC_RSP
例如:
(6)0x05 LL_START_ENC_REQ
该包无CtrData域
(7)0x06 LL_START_ENC_RSP
该包无CtrData域
(8)0x07 LL_UNKNOWN_RSP
(9)0x08 LL_FEATURE_REQ
包含主设备链路层支持的特性
例如:
(10)0x09 LL_FEATURE_RSP
例如:
(11)0x0a LL_PAUSE_ENC_REQ
该包无CtrData域
(12)0x0b LL_PAUSE_ENC_RSP
该包无CtrData域
(13)0x0c LL_VERSION_IND
例如:
(14)0x0d LL_REJECT_IND
Error Code:见协议P679,BLUETOOTH SPECIFICATION Version 4.2 [Vol 2, Part D]
(15)0x0e LL_SLAVE_FEATURE_REQ
(16)0x0f LL_CONNECTION_PARAM_REQ
connInterval = Interval_Min * 1.25 ms
connInterval = Interval_Max * 1.25 ms
connSlaveLatency = Latency
connSupervisionTimeout = Timeout * 10 ms
connInterval = n * (PreferredPeriodicity * 1.25 ms) 注:PreferredPeriodicity <= Interval_Max
connEventCounter = ReferenceConnEventCount = Offset0-5 * 1.25
(17)0x10 LL_CONNECTION_PARAM_RSP
(18)0x11 LL_REJECT_IND_EXT
RejectOpcode:即为被拒的包的opcode
Error Code:见协议P679,BLUETOOTH SPECIFICATION Version 4.2 [Vol 2, Part D]
(19)0x12 LL_PING_REQ
该包无CtrData域
(20)0x13 LL_PING_RSP
该包无CtrData域
(21)(4.2新增)
0x14 LL_LENGTH_REQ
0x15 LL_LENGTH_RSP
connMaxRxOctets = MaxRxOctets = 27~251 最大接受字节数
connMaxRxTime = MaxRxTime = 328~2120 us
connMaxTxOctets = MaxTxOctets = 27~251 最大发送字节数
connMaxTxTime = MaxTxTime = 328~2120 us
注:详见协议P2628,BLUETOOTH SPECIFICATION Version 4.2 [Vol 6, Part B],Section 4.5.10