【问题标题】:Unable to set bluetooth device as trusted using bluez-tools on raspberry pi无法使用树莓派上的 bluez-tools 将蓝牙设备设置为受信任
【发布时间】:2013-12-06 13:24:52
【问题描述】:

我想在我的树莓派上使用 bluez-tools 通过命令行运行 raspian 将我的 ipod 设置为受信任的蓝牙设备。

在 Ubuntu 上我运行:

bt-device --set 28:37:37:B5:1A:B5 Trusted 1

输出是:

Trusted: 0 -> 1


在我的 Raspberry pi 上,输入了相同的 bt-device 指令,输出如下:

bt-device: bluez service is not found
Did you forget to run bluetoothd?

我已经运行了命令

bluetoothd

在我的 Raspberry Pi 上,它似乎正在运行。

Raspberry 运行的是 bluez 版本:4.99-2,bluez-tools 版本:0.1.38+git662e-3

谢谢!

【问题讨论】:

  • 向bluetoothd发送一些dbus命令来检查bluetoothd是否正在运行?此命令将帮助您列出 bt 适配器 "dbus-send --system --type=method_call --print-reply --dest=org.bluez "/" org.bluez.Manager.ListAdapters"

标签: linux bluetooth raspberry-pi raspbian bluez


【解决方案1】:

试试:

bluez-test-device trusted xx:xx:xx:xx:xx:xx yes
bluez-test-input connect xx:xx:xx:xx:xx:xx yes

【讨论】:

    猜你喜欢
    • 2014-12-05
    • 1970-01-01
    • 2016-01-18
    • 2018-12-31
    • 1970-01-01
    • 2016-08-26
    • 2014-08-29
    • 2017-03-30
    • 1970-01-01
    相关资源
    最近更新 更多