Details
-
Bug
-
Resolution: Invalid
-
P2: Important
-
None
-
5.4.0
-
None
-
ubuntu 14.04 64 bit, Qt 5.4, gcc (Ubuntu 4.8.2-19ubuntu1) 4.8.2
Description
I am using the bluetooth low energy api's for my app.
the error:
qt.bluetooth.bluez: void QBluetoothSocketPrivate::_q_readNotify() 8 error: -1 "Software caused connection abort"
What my app does:
1 scan
2 connect
3 get services, and characteristics
4 look for specific characteristic, and change the CCCD to enable notifications
5 print characteristic value when i get notification
My app runs fine for 2 to 3 minutes (i do nothing but print update) and then the above error shows up and my app disconnects from bluetooth device.
The Fix:
I was using Bluez 5.28 and always had this problem. Tried my app on different computer with Bluez 5.25 had this problem. Reinstalled Bluez 4.101 on original computer and no error. So something subtle changed after 4.101 ...
To Recreate:
Maybe try the heart rate monitor example with bluez 5.28 and sit and watch it for 3 minutes and see if it crashes...
Attachments
Issue Links
- is duplicated by
-
QTBUG-46775 BLE Bluetooth Low Energy randomly aborts established connection during data transfer
- Closed
-
QTBUG-47895 bluez not recognizing "QLowEnergyController::connected()" as connected device, disconnecting after 3 minutes
- Closed