系统相关
首页 > 系统相关> > linux-Gatttool:限制为5个连接?

linux-Gatttool:限制为5个连接?

作者:互联网

我通过在python *中使用pexpect生成gatttools连接到五个设备.当我尝试手动连接到第六台设备(所有连接使用相同的CSR 4.0软件狗)时,我遇到:

sudo gatttool -b DC:05:4F:BC:F6:4A -It random
[DC:05:4F:BC:F6:4A][LE]> connect
Attempting to connect to DC:05:4F:BC:F6:4A
Error: connect error: Too many links (31)

这是gatttool限制还是硬件限制?我将源代码克隆为http://git.kernel.org/cgit/bluetooth/bluez.git,然后运行grep -r“尝试”,但未得到任何结果.

我想通过蓝牙低功耗连接到20台设备,我认为应该在硬件和固件方面都是可行的.

=====

系统设置:Ubuntu 14.04,bluez v5.20,CSR 4.0软件狗,adafruit ble nrf8001突破.

参考:

>直接使用c文件而不是pexpect:Multiple BLE Connections using Linux and Bluez 5.0
>期望:https://gist.github.com/nouyang/2a6a733d8facd23115a4
>设置/ pexpect代码的说明:PYTHON -> ADAFRUIT NRF8001 BLUETOOTH LOW ENERGY BREAKOUT IN 20 MINUTES

解决方法:

啊! linux-bluetooth列表上的某个人回答了我的问题,尽管我还没有亲自验证过它:

It is a hardware limitation of the CSR dongle. I did a similar test using bluetoothctl not long ago: Using a CSR dongle, only 5 bluetooth LE devices could connect. With a Broadcom dongle (BCM20702) I could establish 14 concurrent connections. Then I ran out of bluetooth LE devices….

Regards,
Martin Rösch

http://thread.gmane.org/gmane.linux.bluez.kernel/51872

标签:bluetooth,gatt,bluez,linux
来源: https://codeday.me/bug/20191121/2051480.html