我正在尝试使用 gatttool 连接我的 PIR 运动传感器,但出现此错误:
pi@raspberrypi:~ $ sudo gatttool -t random -b B8:7C6F:1A:D8:24 -I
[B8:7C6F:1A:D8:24][LE]> connect
Attempting to connect to B8:7C6F:1A:D8:24
Error connect: Connection refused (111)
这个stackoverflow问题是同样的问题,但它没有解决我的问题。
我尝试了其他 BLE 设备,它连接得很好,除了这个运动传感器。我试图联系运动传感器制造商,但他们没有帮助我。该运动传感器被深圳凯普乐称为IX34-BLE PIR Motion Sensor。此外,传感器与制造商的警报盒和移动应用程序配合得很好,所以我知道它没有缺陷。