在执行bluetoothctl connect 时,报如下错误:
Attempting to connect to 24:1A:E6:14:**:AC hci0 type 1 discovering off hci0 24:1A:E6:14:**:AC type BR/EDR connected eir_len 25 [CHG] Device 24:1A:E6:14:**:AC Connected: yes hci0 24:1A:E6:14:**:AC auth failed with status 0x05 (Authentication Failed) hci0 24:1A:E6:14:**:AC auth failed with status 0x05 (Authentication Failed) Failed to connect: org.bluez.Error.Failed br-connection-unknown
解决办法:
1. 先remove掉24:1A:E6:14:**:AC 这个蓝牙设备, 命令:
bluetoothctl remove <设备MAC地址> # 清除旧配对
2. 重新配对+连接
bluetoothctl pair <设备MAC地址> # 重新配对 bluetoothctl trust <设备MAC地址> # 设为信任设备 bluetoothctl connect <设备MAC地址> # 尝试连接