Bluetooth Obexpushd Can';t通过蓝牙初始化
我对Raspberry Pi比较陌生,正在尝试通过蓝牙在我的Raspberry Pi上接收数据。我选择了使用obexpushd,并安装了所需的所有蓝牙软件包。但是,当我运行命令时Bluetooth Obexpushd Can';t通过蓝牙初始化,bluetooth,raspberry-pi,Bluetooth,Raspberry Pi,我对Raspberry Pi比较陌生,正在尝试通过蓝牙在我的Raspberry Pi上接收数据。我选择了使用obexpushd,并安装了所需的所有蓝牙软件包。但是,当我运行命令时 obexpushd -B -n 要初始化obexpushd并让它侦听任何传入的蓝牙消息,它会向我显示以下错误消息: Listening on bluetooth/[00:00:00:00:00:00]:9 SDP session setup failed, disabling bluetooth net_
obexpushd -B -n
要初始化obexpushd并让它侦听任何传入的蓝牙消息,它会向我显示以下错误消息:
Listening on bluetooth/[00:00:00:00:00:00]:9
SDP session setup failed, disabling bluetooth
net_init() failed
我很确定我已经正确配对并连接了Raspberry Pi和设备,因此我不知道它为什么不工作。您的蓝牙sdp有问题。试着阻止它
$ sudo service bluetooth stop
然后重新启动它
$ sudo bluetoothd --compat
我也有同样的问题,它对我有效。您的蓝牙sdp有问题。试着阻止它
$ sudo service bluetooth stop
然后重新启动它
$ sudo bluetoothd --compat
我也有同样的问题,它对我有效。苏伯特的回答对我有效,我想知道hci是不可发现的。 除了苏伯特的回答之外:
service bluetooth stop
bluetoothd --compat &
obexpushd -B -n &
对我来说,hciconfig已关闭,因此我开始使用它:
hciconfig hci0 up
现在一切都好了,
谢谢苏伯特的回答。苏伯特的回答对我来说很有效,我想知道hci是不可发现的。 除了苏伯特的回答之外:
service bluetooth stop
bluetoothd --compat &
obexpushd -B -n &
对我来说,hciconfig已关闭,因此我开始使用它:
hciconfig hci0 up
现在一切都好了,
感谢subert的回答。尽管@subert是正确的,但在兼容模式下运行守护程序的更好方法是扩展systemd脚本。此解决方案允许您使用启动/停止脚本,并且可以在任何更新后继续使用 使用以下内容创建文件/etc/systemd/system/bluetooth.service.d/compat.conf:
[Service]
ExecStart=/usr/lib/bluetooth/bluetoothd —compat
我决定将文件命名为compat.conf,但您可以随意命名
重新加载并重新启动守护进程,您就完成了
$ sudo systemctl daemon-reload
$ sudo service bluetooth restart
我不必运行
hciconfig
命令,但必须以root身份运行obexpushd
(使用sudo),直到找到更好的方法。尽管@Subert是正确的,但在compat模式下运行守护程序的更好方法是扩展systemd脚本。此解决方案允许您使用启动/停止脚本,并且可以在任何更新后继续使用
使用以下内容创建文件/etc/systemd/system/bluetooth.service.d/compat.conf:
[Service]
ExecStart=/usr/lib/bluetooth/bluetoothd —compat
我决定将文件命名为compat.conf,但您可以随意命名
重新加载并重新启动守护进程,您就完成了
$ sudo systemctl daemon-reload
$ sudo service bluetooth restart
我不必运行
hciconfig
命令,但必须以root身份运行obexpushd
(使用sudo),直到找到更好的方法。我也有同样的问题,我在11:22:33:44:55:66无法连接到SDP服务器:主机已关闭,我尝试了上述方法。我也有同样的问题,我无法连接到11:22:33:44:55:66上的SDP服务器:主机已关闭,因为我尝试了上述方法。