具体过程参考这里: http://console.systems/2014/09/how-to-pair-low-energy-le-bluetooth.html
估计各个 Linux 发行版都差不多。
大致流程就是
1. 先在 LINUX 下配对
2. 回到 WIN 下配对
3. 读取 WIN 下的设置信息
4. 对照着修改 LINUX 的设置
以下是需要修改的地方
IdentityResolvingKey.Key = IRK
LocalSignatureKey.Key = CSRK
LocalSignatureKey.Authenticated = true (我自己加的,可能不需要)
LongTermKey.Key = LTK
LongTermKey.EncSize = 16 <= "KeyLength"=dword:00000000 (很重要,但不清楚是不是 16 - KeyLength)
LongTermKey.EDiv = (EDIV)10
LongTermKey.Rand = (ERand[::-1])10
之后重启下 bluetooth.service 就可以了。
估计各个 Linux 发行版都差不多。
大致流程就是
1. 先在 LINUX 下配对
2. 回到 WIN 下配对
3. 读取 WIN 下的设置信息
4. 对照着修改 LINUX 的设置
以下是需要修改的地方
IdentityResolvingKey.Key = IRK
LocalSignatureKey.Key = CSRK
LocalSignatureKey.Authenticated = true (我自己加的,可能不需要)
LongTermKey.Key = LTK
LongTermKey.EncSize = 16 <= "KeyLength"=dword:00000000 (很重要,但不清楚是不是 16 - KeyLength)
LongTermKey.EDiv = (EDIV)10
LongTermKey.Rand = (ERand[::-1])10
之后重启下 bluetooth.service 就可以了。