【发布时间】:2014-10-01 08:54:40
【问题描述】:
我通过在 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 "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
- 期待:https://gist.github.com/nouyang/2a6a733d8facd23115a4
- setup/pexpect 代码说明:PYTHON -> ADAFRUIT NRF8001 BLUETOOTH LOW ENERGY BREAKOUT IN 20 MINUTES
【问题讨论】:
标签: linux bluetooth bluez gatt