Gatttool:仅限于5个连接? [英] Gatttool: Limited to 5 connections?
问题描述
我通过在Python Pexpect的产卵gatttools *连接到五台设备。当我尝试连接到第六装置(使用相同的CSR 4.0加密狗所有连接)手动我遇到的问题:
I connect to five devices by spawning gatttools with pexpect in python*. When I try to connect to a sixth device (using the same CSR 4.0 dongle for all connections) manually I encounter:
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源。混帐跑的grep -r,试图
,但没有得到任何结果。
Is this a gatttool limitation or a hardware limitation? I cloned the source at http://git.kernel.org/cgit/bluetooth/bluez.git and ran grep -r "attempting"
but did not get any results.
我想连接到20台设备通过蓝牙低能量,我认为应该是可能的硬件和固件明智的。
I would like to connect to 20 devices over bluetooth low energy, which I think should be possible hardware- and firmware-wise.
=====
系统设置:Ubuntu的14.04,bluez的V5.20,CSR 4.0加密狗,Adafruit的BLE nrf8001突破
System settings: Ubuntu 14.04, bluez v5.20, CSR 4.0 dongle, adafruit ble nrf8001 breakout.
参考:
- 直接使用C文件,而不是Pexpect的:<一href=\"http://stackoverflow.com/questions/16224561/multiple-ble-connections-using-linux-and-bluez-5-0\">Multiple使用Linux和配合bluez 5.0 BLE连接
- Pexpect的: https://gist.github.com/nouyang/2a6a733d8facd23115a4
- 设置/ Pexpect的code的说明: http://www.orangenarwhals.com/? p = 911
- using the c files directly instead of pexpect: Multiple BLE Connections using Linux and Bluez 5.0
- pexpect: https://gist.github.com/nouyang/2a6a733d8facd23115a4
- explanation of setup/pexpect code: http://www.orangenarwhals.com/?p=911
推荐答案
啊! Linux的蓝牙名单上有人回答我的问题,虽然我还没有证实此事为自己尚未:
Ah! Someone on the linux-bluetooth list answered my question, although I haven't verified it for myself yet:
这是CSR加密狗硬件限制。我做了一个类似的使用测试bluetoothctl不久前:使用CSR加密狗,只有5蓝牙LE的设备可以连接。随着博通加密狗(BCM20702)我可以建立14个并发连接。然后我跑出去蓝牙LE设备......
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....
问候,
马丁Rösch
Regards, Martin Rösch
http://thread.gmane.org/gmane.linux.bluez。内核/ 51872
这篇关于Gatttool:仅限于5个连接?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!