【发布时间】:2014-12-03 19:42:40
【问题描述】:
我正在尝试将蓝牙低功耗血氧计与我的 Ubuntu 桌面连接,但遇到了一些问题。
我可以使用hcitool lescan 很好地看到设备,但我在输入时无法连接
sudo gatttool -b 00:1C:05:FF:ED:A9 -I
[ ][00:1C:05:FF:ED:A9][LE]> connect
这些是来自hcidump -X的日志:
HCI Event: Command Status (0x0f) plen 4
LE Create Connection (0x08|0x000d) status 0x00 ncmd 1
HCI Event: Command Status (0x0f) plen 4
LE Start Encryption (0x08|0x0019) status 0x00 ncmd 1
HCI Event: Encrypt Change (0x08) plen 4
status 0x06 handle 64 encrypt 0x00
Error: PIN or Key Missing
HCI Event: Command Status (0x0f) plen 4
Disconnect (0x01|0x0006) status 0x00 ncmd 1
HCI Event: Disconn Complete (0x05) plen 4
status 0x00 handle 64 reason 0x16
Reason: Connection Terminated by Local Host
这看起来像是某种身份验证失败。问题是血氧仪不需要任何 PIN 或密码。它只是一个简单的代理,可以将数据发送给与其连接的任何人。
谢谢
【问题讨论】:
标签: linux ubuntu bluetooth bluetooth-lowenergy bluez