cd ControlSet001
cd Services
cd BTHPORT
cd Parameters
cd Keys
ls
(...)\Services\BTHPORT\Parameters\Keys> ls
Node has 1 subkeys and 0 values
key name
<c0bxxxxxx47a>
cd c0bxxxxxx47a
#这里的mac地址记录下来备用ls
(...)\BTHPORT\Parameters\Keys\c0b88377e47a> ls
Node has 0 subkeys and 1 values
size type value name [value iftype DWORD]163 REG_BINARY <3488xxxxx301>
和普通蓝牙鼠标不同,没有网上的其他项目,只有一个hex值
然后就解码这个hex值.
1
2
3
4
hex 3488xxxxx301
Value <34885de70301> of type REG_BINARY (3), data length 16[0x10]:00000 9A 9B 0X 0X 0X F7 X0 34 D6 XX C6 0072004905 ...,...4....r.I.
将这个值复制出来.
然后查看已连接的设备
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
sudo ls /var/lib/bluetooth
2F:1D:8F:1D:F6:F6
sudo ls /var/lib/bluetooth/2F:1D:8F:1D:F6:F6
1C:CC:00:4A:FC:E6 cache settings
# 如果mac和刚刚看到的不一样,就把它改名为刚才的那个值sudo nano /var/lib/bluetooth/2F:1D:8F:1D:F6:F6/1C:CC:00:4A:FC:E6/info
# 找到info中的配置文件,修改LinkKey中的数据# 重启服务sudo systemctl restart bluetooth