Thank you. 我用了一下连接里的方法,可惜没有成功,发现连接里的方法是pair成功connect不成功,我在pair的时候就出了问题。
bluetoothctl中的反馈如下:
[bluetooth]# devices
Device 04:4B:ED:E4:F3:7A Aoran Zhao’s Keyboard
[bluetooth]# trust 04:4B:ED:E4:F3:7A
[CHG] Device 04:4B:ED:E4:F3:7A Trusted: yes
Changing 04:4B:ED:E4:F3:7A trust succeeded
[bluetooth]# pair 04:4B:ED:E4:F3:7A
Attempting to pair with 04:4B:ED:E4:F3:7A
Failed to pair: org.bluez.Error.ConnectionAttemptFailed
[bluetooth]# connect 04:4B:ED:E4:F3:7A
Attempting to connect to 04:4B:ED:E4:F3:7A
Failed to connect: org.bluez.Error.Failed
pair的时候报错如下:
(bluetooth-wizard:28947): Bluetooth-WARNING **: Pair() failed for /org/bluez/hci0/dev_04_4B_ED_E4_F3_7A: GDBus.Error:org.bluez.Error.ConnectionAttemptFailed: Page Timeout
** (bluetooth-wizard:28947): WARNING **: Setting up 'Aoran Zhao’s Keyboard' (at /org/bluez/hci0/dev_04_4B_ED_E4_F3_7A) failed: GDBus.Error:org.bluez.Error.ConnectionAttemptFailed: Page Timeout
