Priority: P2: Important
Affects Version/s: 5.14.1, 5.15.2
Fix Version/s: None
Component/s: Connectivity: Bluetooth
Environment:Linux peppy 5.5.4-arch1-1 #1 SMP PREEMPT Sat, 15 Feb 2020 00:36:29 +0000 x86_64 GNU/Linux
Commits:7aa19c8a512fdceac12cf4ee6587626e3de61c25 (qt/qtconnectivity/dev) e61994ab9d82470fe15f4476eecf2aef1d570f35 (qt/tqtc-qtconnectivity/tqtc/lts-5.15)
Code is broken since bluez version 5.46. Downgrading to 5.45 fix the issue.
When trying to connect to a known, but unavailable device, the connection timeout never occur. No error signal is emitted and it hang in the connecting state for ever. Likewise, no error occur when the adapter is powered off during the connection, so it seems like a communication problem between Bluez and Qt.
systemctl status bluetooth output the following error for HC05 (with both 5.45 and 5.46):
Script output in 5.45-1:
Script output in 5.46-2 (hang)
|For Gerrit Dashboard: QTBUG-82407|
|334001,4||Fix error handling in BlueZ connectToServiceHelper||dev||qt/qtconnectivity||Status: MERGED||+2||0|
|334392,2||Fix error handling in BlueZ connectToServiceHelper||tqtc/lts-5.15||qt/tqtc-qtconnectivity||Status: MERGED||+2||0|