K380 双系统使用
在linux 和macos双系统上使用
-
在linux下连接K380
-
在mac下连接K380
-
在mac下获得连接信息的key码
-
sudo defaults read com.apple.bluetoothd.plist LinkKeys
Password:
{
“00-db-df-ba-67-c8” = {
“34-88-5d-a3-c7-43” = <45d94142 33bb1148 cf00d2eb cf28d428>;
};
}
-
在linux下解析key码获得密码 passwd
echo 45d94142 33bb1148 cf00d2eb cf28d428 | sed 's/ //g; s/../\n\U&/g' | tac | awk 'BEGIN{FS="\n"}{h[NR]=$0}END{for(i=1;i<NR;++i){printf "%s ", h[i]}printf"\n"}'
-
替换linux对应mac地址下的信息
找到文件/var/lib/bluetooth/AA:11:11:11:11:11/linkkeys的对应34-88-5d-a3-c7-43的配对信息,替换掉。