首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Raspberry Pi蓝牙LE连接到RedBearLab屏蔽

Raspberry Pi蓝牙LE连接到RedBearLab屏蔽
EN

Stack Overflow用户
提问于 2014-01-23 13:42:04
回答 2查看 3.6K关注 0票数 1

我正在尝试从RaspPi连接到RedBearLab BLE盾。我使用的是CSR4.0USB加密狗http://www.adafruit.com/products/1327 Raspberry Pi Rev-B板和Raspbian OS Bluez-5.11

我已经把RedBearLab BLE防护罩连接到Arduino UNO R3了。我正在尝试从RaspPi连接到屏蔽(附在CSR4.0上)。但它无法连接-连接尝试超时/资源繁忙。

下面是我使用的步骤

代码语言:javascript
复制
$ sudo hcitool lescan

LE Scan ...
xx:xx:xx:xx:xx:xx BLE Shield
$ sudo hcitool lecc xx:xx:xx:xx:xx:xx

无法创建连接:连接超时

使用gatttool也不能解决问题

代码语言:javascript
复制
$ 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]>

非常感谢!

EN

回答 2

Stack Overflow用户

发布于 2014-01-23 15:45:19

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

代码语言:javascript
复制
$ sudo hciconfig hci0 reset
票数 2
EN

Stack Overflow用户

发布于 2016-05-03 03:50:03

某些BLE设备在连接时需要随机地址。尝试:

代码语言:javascript
复制
sudo gatttool -t random -b xx:xx:xx:xx:xx:xx --interactive
票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/21300283

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档