(一)
CONNECT_REQ净荷如下:
InitA(Initiator Address)域是public(TxAdd=0)还是random(TxAdd=1)由净荷头中TxAdd域决定。
AdvA(Advertiser Address)域是public(RxAdd=0)还是random(RxAdd=1)由净荷头中RxAdd域决定。
(二)
上图是一个完整的CONNECT_REQ报文,被解析后如下图所示
(1)Initiator Address:0x870533001177(dongle的地址)
(2)Advertiser Address:0x0000000000b5(键盘的地址)
(3)Access Address:0xe55c6bcd
(4)CRC initialization value:0xa486d4(5)transmitWindowSize:2.50ms(transmitWindowSize = WinSize * 1.25 ms,即WinSize = 0x02)
(6)transmitWindowOffset:1.25ms(transmitWindowOffset = WinOffset * 1.25 ms,即WinOffset = 0x0001)
(7)ConnInterval:7.50ms(connInterval = Interval * 1.25 ms,即Interval = 0x0006)
(8)connSlaveLatency:0(connSlaveLatency = Latency)
(9)connSupervisionTimeout:4480.00ms(connSupervisionTimeout = Timeout * 10 ms,即Timeout = 0x01c0)
(10)Channel Map:0001111111111111111111111111111111111111(0-36通道被使用,37-39通道未被使用)
(11)hopIncrement:9(Hop域为5-16之间的随机值)
(12)masterSCA:31 ppm to 50 ppm(即SCA = 5)
要按下图设置SCA域的值