通过蓝牙将文件发送到计算机导致“连接失败”错误

通过蓝牙将文件发送到计算机导致“连接失败”错误

几周前,这个功能运行正常,但现在当我尝试通过蓝牙从手机向电脑发送文件时,结果显示“连接失败”。我注意到,如果我查看 GNOME 蓝牙设置,状态会不断从“已连接”变为“已断开连接”,然后再变回来。这也证明了这一点bluetoothctl

$ bluetoothctl
[NEW] Controller 00:02:5B:11:04:D8 BlueZ 5.18 [default]
[NEW] Device 24:C6:96:16:49:37 Drew
[bluetooth]# connect 24:C6:96:16:49:37
Attempting to connect to 24:C6:96:16:49:37
[CHG] Device 24:C6:96:16:49:37 Connected: yes
Connection successful
[CHG] Device 24:C6:96:16:49:37 Connected: no
[CHG] Device 24:C6:96:16:49:37 Connected: yes
[CHG] Device 24:C6:96:16:49:37 Connected: no
[CHG] Device 24:C6:96:16:49:37 Connected: yes
[CHG] Device 24:C6:96:16:49:37 Connected: no
[CHG] Device 24:C6:96:16:49:37 Connected: yes
[CHG] Device 24:C6:96:16:49:37 Connected: no
[CHG] Device 24:C6:96:16:49:37 Connected: yes
[CHG] Device 24:C6:96:16:49:37 Connected: no

奇怪的是,将文件从电脑传输到手机可以正常工作。重启手机并重新配对没有任何效果。

答案1

运行此命令解决了问题。

# hciconfig hci0 up

尽管设备在运行时hci0显示了状态,但这仍然由于某种原因解决了问题。UPhciconfig

尝试这个想法的灵感来自于https://bbs.archlinux.org/viewtopic.php?id=172261

相关内容