Bluetooth lowenergy 来自gatttool stop的数据通知

Bluetooth lowenergy 来自gatttool stop的数据通知,bluetooth-lowenergy,ubuntu-16.04,bluez,gatttool,Bluetooth Lowenergy,Ubuntu 16.04,Bluez,Gatttool,我有一个有“音频服务”的BLE设备。我想要音频数据。 我使用gatttool与我的设备进行通信。 为此,我可以启用通知。然后,当麦克风“打开”时,我接收到数据,但它突然停止 $ sudo gatttool -b xx:xx:xx:xx:xx:xx -I [xx:xx:xx:xx:xx:xx][LE]> connect Attempting to connect to xx:xx:xx:xx:xx:xx Connection successful [xx:xx:xx:xx:xx:xx][LE

我有一个有“音频服务”的BLE设备。我想要音频数据。 我使用gatttool与我的设备进行通信。 为此,我可以启用通知。然后,当麦克风“打开”时,我接收到数据,但它突然停止

$ sudo gatttool -b xx:xx:xx:xx:xx:xx -I
[xx:xx:xx:xx:xx:xx][LE]> connect
Attempting to connect to xx:xx:xx:xx:xx:xx
Connection successful
[xx:xx:xx:xx:xx:xx][LE]> char-write-cmd 0x3c 0100
Notification handle = 0x002a value: 04 
Notification handle = 0x002d value: 09 00 00 00 77 77 77 37 1b 09 a0 b2 91 80 09 1a 0a 99 a0 a0 
...
Notification handle = 0x002d value: 09 22 ae a4 38 82 8b 93 af 91 12 77 a4 81 cd 10 1a 15 0a c0 
[xx:xx:xx:xx:xx:xx][LE]> 
(gatttool:5840): GLib-WARNING **: Invalid file descriptor.
我在Ubuntu 16.04下,我有bluez 5.37

你有什么想法吗?问题是否可能来自数据频率


编辑: 使用Qt(使用bluez),我有以下日志:

qt.bluetooth.bluez: void QBluetoothSocketPrivate::_q_readNotify() 23 error: -1 "Fonction non implantée"
Cannot connect to remote device.
Controller Error: 1
Remote device disconnected

您确定在发生此错误之前没有断开连接吗?此时连接确实断开了,但我不知道为什么会发生这种情况(发生之前的时间并不总是相同)您的设备彼此之间距离不太远?因为此错误可能因此而引发。请参阅:不,该设备位于我的计算机正上方。我认为是错误导致了断线。(我在Qt上编辑了我的文章,上面有调试,这表明了这一点)“功能非植入物”来自哪里?这不是一个普通的BlueZ错误,gatttool命令无论如何都不应该因为这个错误而失败。我建议您1)运行“btmon&”在后台监控蓝牙活动,2)直接从命令行使用gatttool,如下面的回答所示: