Bluetooth Raspberry Pi蓝牙LE连接至RedBearLab屏蔽

Bluetooth Raspberry Pi蓝牙LE连接至RedBearLab屏蔽,bluetooth,arduino,raspberry-pi,bluetooth-lowenergy,bluez,Bluetooth,Arduino,Raspberry Pi,Bluetooth Lowenergy,Bluez,我正在尝试从拉斯皮连接到红熊盾实验室。我正在使用 CSR4.0 USB加密狗 带Raspbian OS的Raspberry Pi Rev-B板 蓝色Z-5.11 我有红熊实验室护盾连接到Arduino UNO R3。我正在尝试从RaspPi(附加CSR4.0)连接到屏蔽。但它无法连接-连接尝试超时/资源繁忙 下面是我使用的步骤 $ sudo hcitool lescan LE Scan ... xx:xx:xx:xx:xx:xx BLE Shield $ sudo hcitool lecc x

我正在尝试从拉斯皮连接到红熊盾实验室。我正在使用 CSR4.0 USB加密狗 带Raspbian OS的Raspberry Pi Rev-B板 蓝色Z-5.11

我有红熊实验室护盾连接到Arduino UNO R3。我正在尝试从RaspPi(附加CSR4.0)连接到屏蔽。但它无法连接-连接尝试超时/资源繁忙

下面是我使用的步骤

$ sudo hcitool lescan

LE Scan ...
xx:xx:xx:xx:xx:xx BLE Shield
$ sudo hcitool lecc xx:xx:xx:xx:xx:xx
无法创建连接:连接超时

使用gatttool也不能解决问题

$ sudo gatttool -b xx:xx:xx:xx:xx:xx --interactive

[ ][xx:xx:xx:xx:xx:xx][LE]> **connect**

Attempting to connect to xx:xx:xx:xx:xx:xx

Error: connect error: Device or resource busy (16)

[xx:xx:xx:xx:xx:xx][LE]>

非常感谢

您的适配器似乎正忙。有人在用它。是否有其他设备连接到适配器?尝试使用以下命令重置适配器:

$ sudo hciconfig hci0 reset

一些可扩展设备在连接时需要一个随机地址。尝试:

sudo gatttool -t random -b xx:xx:xx:xx:xx:xx --interactive

有时,您需要在USB级别重置它(只需拔下加密狗并重新插入,就可以在物理上完成重置)。我的加密狗有问题,HCI重置没有做任何事情。@tim tisdall就是这样做的!我得到
hciconfig:invalid选项--'I'
使用bluez 4.99,但省略
-I
似乎可以解决问题:-)这解决了我的问题。谢谢