Raspberry pi 将可扩展设备连接到Raspberry失败

Raspberry pi 将可扩展设备连接到Raspberry失败,raspberry-pi,bluetooth-lowenergy,Raspberry Pi,Bluetooth Lowenergy,尝试将红熊混合微型Arduino板连接到Rasperry Pi B的BLE上+ Raspbian Jessie kernel 4.1.13+(也曾在哮喘病w相同问题上试用过) 布鲁兹5.37 尝试了几种安装Bluez的不同方法,但本质上遵循了这一点 在我的Ubuntu上执行相同的过程: ubuntu:~$ sudo gatttool -b EC:EA:FA:D8:F9:77 -t random -I [ ][EC:EA:FA:D8:F9:77][LE]> connect [CON][E

尝试将红熊混合微型Arduino板连接到Rasperry Pi B的BLE上+ Raspbian Jessie kernel 4.1.13+(也曾在哮喘病w相同问题上试用过) 布鲁兹5.37

尝试了几种安装Bluez的不同方法,但本质上遵循了这一点

在我的Ubuntu上执行相同的过程:

ubuntu:~$ sudo gatttool -b EC:EA:FA:D8:F9:77 -t random -I
[   ][EC:EA:FA:D8:F9:77][LE]> connect
[CON][EC:EA:FA:D8:F9:77][LE]> primary
[CON][EC:EA:FA:D8:F9:77][LE]> 
attr handle: 0x0001, end grp handle: 0x0007 uuid: 00001800-0000-1000-8000-00805f9b34fb
attr handle: 0x0008, end grp handle: 0x000b uuid: 00001801-0000-1000-8000-00805f9b34fb
attr handle: 0x000c, end grp handle: 0x0011 uuid: 713d0000-503e-4c75-ba94-3148f18d941e
attr handle: 0x0012, end grp handle: 0xffff uuid: 0000180a-0000-1000-8000-00805f9b34fb
[CON][EC:EA:FA:D8:F9:77][LE]>
我尝试的是: 不同版本的Bluez5安装,不认为这是问题所在。 我读到Raspberian内核版本不支持Bluez5,并降级到3.10.25+,这导致Raspberry的USB端口被断开

尝试了三种不同的蓝牙加密狗(包括一个可插拔的和一个CSR),它们在RBi上都给出了相同的错误,在Ubuntu上运行良好

我知道这是一个堆栈帖子。

这已经解决了

Bluez 5与Raspbian Jessie或Wheezy的默认内核版本4.1.13不兼容

解决方案是退回到早期的内核。在我的例子中,我首先尝试了内核3.10.25+,它杀死了我的RBi B+上的所有USB端口。然后降级到内核3.12.36+,解决了这个问题,现在我可以从gatttool连接了

降级很容易。只要做:

sudo rpi-update f74b92120e0d469fc5c2dc85b2b5718d877e1cbb
sudo reboot
和下面的连接

pi@raspberrypi:~ $ sudo gatttool -b EC:EA:FA:D8:F9:77 -t random -I
[EC:EA:FA:D8:F9:77][LE]> connect
Attempting to connect to EC:EA:FA:D8:F9:77
Connection successful
[EC:EA:FA:D8:F9:77][LE]> primary
attr handle: 0x0001, end grp handle: 0x0007 uuid: 00001800-0000-1000-8000-00805f9b34fb
attr handle: 0x0008, end grp handle: 0x000b uuid: 00001801-0000-1000-8000-00805f9b34fb
attr handle: 0x000c, end grp handle: 0x0011 uuid: 713d0000-503e-4c75-ba94-3148f18d941e
attr handle: 0x0012, end grp handle: 0xffff uuid: 0000180a-0000-1000-8000-00805f9b34fb
pi@raspberrypi:~ $ sudo gatttool -b EC:EA:FA:D8:F9:77 -t random -I
[EC:EA:FA:D8:F9:77][LE]> connect
Attempting to connect to EC:EA:FA:D8:F9:77
Connection successful
[EC:EA:FA:D8:F9:77][LE]> primary
attr handle: 0x0001, end grp handle: 0x0007 uuid: 00001800-0000-1000-8000-00805f9b34fb
attr handle: 0x0008, end grp handle: 0x000b uuid: 00001801-0000-1000-8000-00805f9b34fb
attr handle: 0x000c, end grp handle: 0x0011 uuid: 713d0000-503e-4c75-ba94-3148f18d941e
attr handle: 0x0012, end grp handle: 0xffff uuid: 0000180a-0000-1000-8000-00805f9b34fb