【问题标题】:Raspberry Pi & Blend Micro : can't connect with BluetoothRaspberry Pi 和 Blend Micro:无法连接蓝牙
【发布时间】:2015-03-27 06:52:10
【问题描述】:

最近为一个项目买了一台 Blend Micro,我需要一个树莓派来启动与它的蓝牙连接。

为此,我在 raspberry 上安装了 BlueZ 5.2,并使用此命令检测 Blend Micro:

sudo hcitool -i hci0 lescan

我正确检测到 Blend micro 然后我使用 gatttool 命令:

sudo gatttool -i hcitool hci0 -b XX:XX:XX:XX:XX:XX -I  
(where the XX corresponds to the Blend MAC address)

但是当我通过键入 connect 启动连接时,它显示“主机已关闭”:

$ sudo gatttool -i hci0 -b XX:XX:XX:XX:XX:XX -I
[   ][XX:XX:XX:XX:XX:XX][LE]> connect
Connecting... connect error: Host is down (112) 
[   ][XX:XX:XX:XX:XX:XX][LE]>

您对如何解决这个问题有任何想法吗?尝试了很多东西,但没有任何结果......

问候,RaZZeR

【问题讨论】:

    标签: bluetooth arduino raspberry-pi


    【解决方案1】:

    连接时,需要在命令行中添加“-t random”。

    【讨论】:

    • 谢谢你,这为我解决了 bluez 5.33 的问题。此外,我的 BT 适配器没有从操作系统启动,我必须在运行 hcitool 或 gatttool 之前手动执行“hciconfig device up”
    猜你喜欢
    • 1970-01-01
    • 2014-02-13
    • 2021-05-11
    • 2021-05-01
    • 1970-01-01
    • 2021-12-05
    • 2020-12-27
    • 1970-01-01
    • 2013-07-23
    相关资源
    最近更新 更多