我使用Python中的pexpect生成gatttools来连接五个设备。当我手动尝试连接第六个设备(使用相同的CSR 4.0 dongle进行所有连接)时,遇到以下问题:
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 "attempting"
,但没有得到任何结果。我想通过蓝牙低功耗连接20个设备,我认为在硬件和固件上应该是可行的。
系统设置:Ubuntu 14.04,bluez v5.20,CSR 4.0 dongle,adafruit ble nrf8001 breakout。
参考: - 直接使用C文件而不是Pexpect: Multiple BLE Connections using Linux and Bluez 5.0 - Pexpect: https://gist.github.com/nouyang/2a6a733d8facd23115a4 - 设置/Pexpect代码的解释:PYTHON -> ADAFRUIT NRF8001 BLUETOOTH LOW ENERGY BREAKOUT IN 20 MINUTES