kubuntu:通过蓝牙连接到 Android 设备?

kubuntu:通过蓝牙连接到 Android 设备?

我正在使用 Ubuntu 18.04(VERSION="18.04.4 LTS(Bionic Beaver)"),想通过蓝牙连接我的小米 MI5 手机,这样我就可以在手机之间传输文件;我开始觉得这可能是不可能的。

我已经发现了这一点:bluetoothd(BlueZ 5)无法连接任何设备- 不过,这似乎与我的问题不同。我对蓝牙的经验很少,所以我需要一些帮助,拜托。

使用 debugoutput 重新启动 bluetoothd 后,当我尝试从手机配对时,看到以下内容:

Mar  5 11:26:08 GR-00258 bluetoothd[13393]: src/adapter.c:connected_callback() hci0 device AC:C1:EE:1B:80:5A connected eir_len 16
Mar  5 11:26:09 GR-00258 bluetoothd[13393]: src/adapter.c:user_confirm_request_callback() hci0 AC:C1:EE:1B:80:5A confirm_hint 0
Mar  5 11:26:09 GR-00258 bluetoothd[13393]: src/device.c:new_auth() Requesting agent authentication for AC:C1:EE:1B:80:5A
Mar  5 11:26:09 GR-00258 bluetoothd[13393]: src/agent.c:agent_ref() 0x564d7482d880: ref=2
Mar  5 11:26:09 GR-00258 bluetoothd[13393]: src/agent.c:agent_request_confirmation() Calling Agent.RequestConfirmation: name=:1.70, path=/modules/bluedevil/Agent, passkey=087258
Mar  5 11:26:39 GR-00258 bluetoothd[13393]: src/adapter.c:bonding_attempt_complete() hci0 bdaddr AC:C1:EE:1B:80:5A type 0 status 0x5
Mar  5 11:26:39 GR-00258 bluetoothd[13393]: src/device.c:device_bonding_complete() bonding (nil) status 0x05
Mar  5 11:26:39 GR-00258 bluetoothd[13393]: src/agent.c:send_cancel_request() Sending Cancel request to :1.70, /modules/bluedevil/Agent
Mar  5 11:26:39 GR-00258 bluetoothd[13393]: src/device.c:device_cancel_authentication() Canceling authentication request for AC:C1:EE:1B:80:5A
Mar  5 11:26:39 GR-00258 bluetoothd[13393]: src/agent.c:agent_unref() 0x564d7482d880: ref=1
Mar  5 11:26:39 GR-00258 bluetoothd[13393]: src/device.c:device_bonding_failed() status 5
Mar  5 11:26:39 GR-00258 bluetoothd[13393]: src/adapter.c:resume_discovery()
Mar  5 11:26:39 GR-00258 bluetoothd[13393]: src/adapter.c:dev_disconnected() Device AC:C1:EE:1B:80:5A disconnected, reason 3
Mar  5 11:26:39 GR-00258 bluetoothd[13393]: src/adapter.c:adapter_remove_connection()
Mar  5 11:26:39 GR-00258 bluetoothd[13393]: plugins/policy.c:disconnect_cb() reason 3
Mar  5 11:26:39 GR-00258 bluetoothd[13393]: src/adapter.c:bonding_attempt_complete() hci0 bdaddr AC:C1:EE:1B:80:5A type 0 status 0xe
Mar  5 11:26:39 GR-00258 bluetoothd[13393]: src/device.c:device_bonding_complete() bonding (nil) status 0x0e
Mar  5 11:26:39 GR-00258 bluetoothd[13393]: src/device.c:device_bonding_failed() status 14
Mar  5 11:26:39 GR-00258 bluetoothd[13393]: src/adapter.c:resume_discovery()

如果我尝试从 PC 连接:

Mar  5 11:35:52 GR-00258 bluetoothd[13393]: src/device.c:connect_profiles() /org/bluez/hci0/dev_AC_C1_EE_1B_80_5A (all), client :1.88
Mar  5 11:35:52 GR-00258 bluetoothd[13393]: profiles/audio/a2dp.c:a2dp_source_connect() path /org/bluez/hci0/dev_AC_C1_EE_1B_80_5A
Mar  5 11:35:52 GR-00258 bluetoothd[13393]: a2dp-source profile connect failed for AC:C1:EE:1B:80:5A: Protocol not available

相关内容