Details
-
Bug
-
Resolution: Out of scope
-
P2: Important
-
None
-
6.2.0 FF
-
None
-
-
21
-
Qt6_Foundation_Sprint 35
Description
When running bluetoothtestdevice on my Motorola Moto E2 (Android 7)
https://codereview.qt-project.org/c/qt/qtconnectivity/+/347091/7
and trying to connect from Linux-BlueZ using the test in
https://codereview.qt-project.org/c/qt/qtconnectivity/+/347342/4
Note: To use the non-DBus backend, I added a "false &&" to the if-statements in qbluetoothsocket.cpp:262 and qlowenergycontroller.cpp:309
it connects successfully, but then suddenly closes the connection. Log is
/home/andreasbuhr/development/qtdev/qtconnectivity/cmake-build-debug/tests/manual/qlowenergycontroller/tst_qlowenergycontroller_device ********* Start testing of tst_qlowenergycontroller_device ********* Config: Using QtTest library 6.2.0, Qt 6.2.0 (x86_64-little_endian-lp64 shared (dynamic) debug build; by GCC 10.3.0), ubuntu 20.04 QINFO : tst_qlowenergycontroller_device::initTestCase() qt.bluetooth.bluez: Missing CAP_NET_ADMIN permission. Cannot determine whether a found address is of random or public type. QDEBUG : tst_qlowenergycontroller_device::initTestCase() qt.bluetooth.bluez: Bluez 5 detected. QDEBUG : tst_qlowenergycontroller_device::initTestCase() qt.bluetooth.bluez: Creating QtBluezDiscoveryManager QDEBUG : tst_qlowenergycontroller_device::initTestCase() qt.bluetooth.bluez: Discovered: "BluetoothTestDevice" "00:16:A4:5C:37:43" Num UUIDs 1 total device 0 cached RSSI 0 Num ManufacturerData 0 QDEBUG : tst_qlowenergycontroller_device::initTestCase() qt.bluetooth.bluez: Discovered: "RĂ¼diger" "38:78:62:9B:3E:52" Num UUIDs 16 total device 1 cached RSSI 0 Num ManufacturerData 0 QDEBUG : tst_qlowenergycontroller_device::initTestCase() qt.bluetooth.bluez: Discovered: "[TV] Samsung 8 Series (65)" "68:72:C3:99:1A:47" Num UUIDs 0 total device 2 cached RSSI 0 Num ManufacturerData 1 QDEBUG : tst_qlowenergycontroller_device::initTestCase() qt.bluetooth.bluez: Discovered: "6F-04-60-52-C1-33" "6F:04:60:52:C1:33" Num UUIDs 0 total device 3 cached RSSI 0 Num ManufacturerData 1 QDEBUG : tst_qlowenergycontroller_device::initTestCase() qt.bluetooth.bluez: Discovered: "Multi-Sensor" "80:6F:B0:F0:2A:87" Num UUIDs 1 total device 4 cached RSSI 0 Num ManufacturerData 0 QDEBUG : tst_qlowenergycontroller_device::initTestCase() qt.bluetooth.bluez: Discovered: "88-C6-26-F5-3E-E2" "88:C6:26:F5:3E:E2" Num UUIDs 1 total device 5 cached RSSI 0 Num ManufacturerData 1 QDEBUG : tst_qlowenergycontroller_device::initTestCase() qt.bluetooth.bluez: Discovered: "CC2650 SensorTag" "B0:91:22:E6:31:02" Num UUIDs 14 total device 6 cached RSSI 0 Num ManufacturerData 0 QDEBUG : tst_qlowenergycontroller_device::initTestCase() qt.bluetooth.bluez: Discovered: "Moto E" "B4:EF:E0:C6:FF:44" Num UUIDs 17 total device 7 cached RSSI 0 Num ManufacturerData 0 QDEBUG : tst_qlowenergycontroller_device::initTestCase() qt.bluetooth.bluez: Discovered: "Gear S3 (0EFC) LE" "C0:6B:A1:65:FD:F9" Num UUIDs 0 total device 8 cached RSSI 0 Num ManufacturerData 0 QDEBUG : tst_qlowenergycontroller_device::initTestCase() qt.bluetooth.bluez: Updating RSSI for "B4:EF:E0:C6:FF:44" QVariant(short, -70) QDEBUG : tst_qlowenergycontroller_device::initTestCase() qt.bluetooth.bluez: Updating RSSI for "80:6F:B0:F0:2A:87" QVariant(short, -63) QDEBUG : tst_qlowenergycontroller_device::initTestCase() qt.bluetooth.bluez: Updating RSSI for "80:6F:B0:F0:2A:87" QVariant(short, -63) QDEBUG : tst_qlowenergycontroller_device::initTestCase() qt.bluetooth.bluez: Updating RSSI for "00:16:A4:5C:37:43" QVariant(short, -54) QDEBUG : tst_qlowenergycontroller_device::initTestCase() qt.bluetooth.bluez: Updating RSSI for "68:72:C3:99:1A:47" QVariant(short, -94) QDEBUG : tst_qlowenergycontroller_device::initTestCase() qt.bluetooth.bluez: Updating RSSI for "80:6F:B0:F0:2A:87" QVariant(short, -63) QDEBUG : tst_qlowenergycontroller_device::initTestCase() qt.bluetooth.bluez: Updating RSSI for "68:72:C3:99:1A:47" QVariant(short, -97) QDEBUG : tst_qlowenergycontroller_device::initTestCase() qt.bluetooth.bluez: Updating RSSI for "80:6F:B0:F0:2A:87" QVariant(short, -61) QDEBUG : tst_qlowenergycontroller_device::initTestCase() qt.bluetooth.bluez: Updating RSSI for "80:6F:B0:F0:2A:87" QVariant(short, -63) QDEBUG : tst_qlowenergycontroller_device::initTestCase() qt.bluetooth.bluez: Updating RSSI for "B4:EF:E0:C6:FF:44" QVariant(short, -70) QDEBUG : tst_qlowenergycontroller_device::initTestCase() qt.bluetooth.bluez: Updating RSSI for "80:6F:B0:F0:2A:87" QVariant(short, -63) QDEBUG : tst_qlowenergycontroller_device::initTestCase() qt.bluetooth.bluez: Updating RSSI for "68:72:C3:99:1A:47" QVariant(short, -95) QDEBUG : tst_qlowenergycontroller_device::initTestCase() qt.bluetooth.bluez: Updating RSSI for "80:6F:B0:F0:2A:87" QVariant(short, -60) QDEBUG : tst_qlowenergycontroller_device::initTestCase() qt.bluetooth.bluez: Updating RSSI for "00:16:A4:5C:37:43" QVariant(short, -50) QDEBUG : tst_qlowenergycontroller_device::initTestCase() qt.bluetooth.bluez: Updating RSSI for "80:6F:B0:F0:2A:87" QVariant(short, -64) QDEBUG : tst_qlowenergycontroller_device::initTestCase() qt.bluetooth.bluez: Updating RSSI for "88:C6:26:F5:3E:E2" QVariant(short, -100) QDEBUG : tst_qlowenergycontroller_device::initTestCase() qt.bluetooth.bluez: Updating ManufacturerData for "88:C6:26:F5:3E:E2" QDEBUG : tst_qlowenergycontroller_device::initTestCase() qt.bluetooth.bluez: Almost Duplicate "88:C6:26:F5:3E:E2" "88-C6-26-F5-3E-E2" - replacing in place QDEBUG : tst_qlowenergycontroller_device::initTestCase() qt.bluetooth.bluez: Updating RSSI for "B4:EF:E0:C6:FF:44" QVariant(short, -71) QDEBUG : tst_qlowenergycontroller_device::initTestCase() qt.bluetooth.bluez: Updating RSSI for "80:6F:B0:F0:2A:87" QVariant(short, -65) QDEBUG : tst_qlowenergycontroller_device::initTestCase() qt.bluetooth.bluez: Updating RSSI for "6F:04:60:52:C1:33" QVariant(short, -94) QDEBUG : tst_qlowenergycontroller_device::initTestCase() qt.bluetooth.bluez: Updating RSSI for "80:6F:B0:F0:2A:87" QVariant(short, -63) QDEBUG : tst_qlowenergycontroller_device::initTestCase() qt.bluetooth.bluez: Updating RSSI for "68:72:C3:99:1A:47" QVariant(short, -94) QDEBUG : tst_qlowenergycontroller_device::initTestCase() qt.bluetooth.bluez: Updating RSSI for "80:6F:B0:F0:2A:87" QVariant(short, -64) QDEBUG : tst_qlowenergycontroller_device::initTestCase() qt.bluetooth.bluez: Updating RSSI for "80:6F:B0:F0:2A:87" QVariant(short, -61) QDEBUG : tst_qlowenergycontroller_device::initTestCase() qt.bluetooth.bluez: Updating RSSI for "00:16:A4:5C:37:43" QVariant(short, -52) QDEBUG : tst_qlowenergycontroller_device::initTestCase() qt.bluetooth.bluez: Updating RSSI for "68:72:C3:99:1A:47" QVariant(short, -96) QDEBUG : tst_qlowenergycontroller_device::initTestCase() qt.bluetooth.bluez: Updating RSSI for "80:6F:B0:F0:2A:87" QVariant(short, -67) QDEBUG : tst_qlowenergycontroller_device::initTestCase() qt.bluetooth.bluez: Updating RSSI for "B4:EF:E0:C6:FF:44" QVariant(short, -70) QDEBUG : tst_qlowenergycontroller_device::initTestCase() qt.bluetooth.bluez: Updating RSSI for "80:6F:B0:F0:2A:87" QVariant(short, -60) QDEBUG : tst_qlowenergycontroller_device::initTestCase() qt.bluetooth.bluez: Updating RSSI for "68:72:C3:99:1A:47" QVariant(short, -97) QDEBUG : tst_qlowenergycontroller_device::initTestCase() qt.bluetooth.bluez: Updating RSSI for "80:6F:B0:F0:2A:87" QVariant(short, -61) QDEBUG : tst_qlowenergycontroller_device::initTestCase() qt.bluetooth.bluez: Updating RSSI for "80:6F:B0:F0:2A:87" QVariant(short, -62) QDEBUG : tst_qlowenergycontroller_device::initTestCase() qt.bluetooth.bluez: Updating RSSI for "68:72:C3:99:1A:47" QVariant(short, -95) QDEBUG : tst_qlowenergycontroller_device::initTestCase() qt.bluetooth.bluez: Updating RSSI for "80:6F:B0:F0:2A:87" QVariant(short, -62) QDEBUG : tst_qlowenergycontroller_device::initTestCase() qt.bluetooth.bluez: Updating RSSI for "B4:EF:E0:C6:FF:44" QVariant(short, -69) QDEBUG : tst_qlowenergycontroller_device::initTestCase() qt.bluetooth.bluez: Updating RSSI for "80:6F:B0:F0:2A:87" QVariant(short, -62) QDEBUG : tst_qlowenergycontroller_device::initTestCase() qt.bluetooth.bluez: Updating RSSI for "00:16:A4:5C:37:43" QVariant(short, -51) QDEBUG : tst_qlowenergycontroller_device::initTestCase() qt.bluetooth.bluez: Updating RSSI for "68:72:C3:99:1A:47" QVariant(short, -94) QDEBUG : tst_qlowenergycontroller_device::initTestCase() qt.bluetooth.bluez: Updating RSSI for "80:6F:B0:F0:2A:87" QVariant(short, -62) QDEBUG : tst_qlowenergycontroller_device::initTestCase() qt.bluetooth.bluez: Updating RSSI for "80:6F:B0:F0:2A:87" QVariant(short, -61) QDEBUG : tst_qlowenergycontroller_device::initTestCase() qt.bluetooth.bluez: Updating RSSI for "80:6F:B0:F0:2A:87" QVariant(short, -60) QDEBUG : tst_qlowenergycontroller_device::initTestCase() not using "BluetoothTestDevice" "00:16:A4:5C:37:43" QDEBUG : tst_qlowenergycontroller_device::initTestCase() not using "RĂ¼diger" "38:78:62:9B:3E:52" QDEBUG : tst_qlowenergycontroller_device::initTestCase() not using "[TV] Samsung 8 Series (65)" "68:72:C3:99:1A:47" QDEBUG : tst_qlowenergycontroller_device::initTestCase() not using "6F-04-60-52-C1-33" "6F:04:60:52:C1:33" QDEBUG : tst_qlowenergycontroller_device::initTestCase() not using "Multi-Sensor" "80:6F:B0:F0:2A:87" QDEBUG : tst_qlowenergycontroller_device::initTestCase() not using "88-C6-26-F5-3E-E2" "88:C6:26:F5:3E:E2" QDEBUG : tst_qlowenergycontroller_device::initTestCase() not using "CC2650 SensorTag" "B0:91:22:E6:31:02" QDEBUG : tst_qlowenergycontroller_device::initTestCase() found "Moto E" "B4:EF:E0:C6:FF:44" PASS : tst_qlowenergycontroller_device::initTestCase() QWARN : tst_qlowenergycontroller_device::checkMtuNegotiation() qt.bluetooth: Using BlueZ kernel ATT interface QDEBUG : tst_qlowenergycontroller_device::checkMtuNegotiation() qt.bluetooth: QLowEnergyControllerPrivate setting state to QLowEnergyController::ConnectingState QDEBUG : tst_qlowenergycontroller_device::checkMtuNegotiation() qt.bluetooth.bluez: Creating default GAP/GATT services QDEBUG : tst_qlowenergycontroller_device::checkMtuNegotiation() qt.bluetooth: Using Bluetooth raw socket implementation QDEBUG : tst_qlowenergycontroller_device::checkMtuNegotiation() qt.bluetooth.bluez: addresstypeToUse: "Public" QDEBUG : tst_qlowenergycontroller_device::checkMtuNegotiation() qt.bluetooth.bluez: No settings found for peer device. QDEBUG : tst_qlowenergycontroller_device::checkMtuNegotiation() qt.bluetooth.bluez: Current l2cp sec level: 1 QDEBUG : tst_qlowenergycontroller_device::checkMtuNegotiation() qt.bluetooth.bluez: Exchanging MTU QDEBUG : tst_qlowenergycontroller_device::checkMtuNegotiation() qt.bluetooth: QLowEnergyControllerPrivate setting state to QLowEnergyController::ConnectedState QDEBUG : tst_qlowenergycontroller_device::checkMtuNegotiation() MTU after connect 23 QDEBUG : tst_qlowenergycontroller_device::checkMtuNegotiation() qt.bluetooth: QLowEnergyControllerPrivate setting state to QLowEnergyController::DiscoveringState QDEBUG : tst_qlowenergycontroller_device::checkMtuNegotiation() qt.bluetooth.bluez: Sending read_by_group_type request, startHandle: 1 endHandle: ffff 2800 QDEBUG : tst_qlowenergycontroller_device::checkMtuNegotiation() qt.bluetooth.bluez: Received size: 3 data: "030002" QDEBUG : tst_qlowenergycontroller_device::checkMtuNegotiation() qt.bluetooth.bluez: Server MTU: 512 resulting mtu: 512 QDEBUG : tst_qlowenergycontroller_device::checkMtuNegotiation() qt.bluetooth.bluez: Received size: 14 data: "110601000500011814001c000018" QDEBUG : tst_qlowenergycontroller_device::checkMtuNegotiation() qt.bluetooth.bluez: Found uuid: "{00001801-0000-1000-8000-00805f9b34fb}" start handle: 1 end handle: 5 QDEBUG : tst_qlowenergycontroller_device::checkMtuNegotiation() qt.bluetooth.bluez: Found uuid: "{00001800-0000-1000-8000-00805f9b34fb}" start handle: 14 end handle: 1c QDEBUG : tst_qlowenergycontroller_device::checkMtuNegotiation() qt.bluetooth.bluez: Sending read_by_group_type request, startHandle: 1d endHandle: ffff 2800 QDEBUG : tst_qlowenergycontroller_device::checkMtuNegotiation() qt.bluetooth.bluez: Received size: 22 data: "11142800ffffedfe63a7d3935caeeb1116ac7ce3851f" QDEBUG : tst_qlowenergycontroller_device::checkMtuNegotiation() qt.bluetooth.bluez: Found uuid: "{1f85e37c-ac16-11eb-ae5c-93d3a763feed}" start handle: 28 end handle: ffff QDEBUG : tst_qlowenergycontroller_device::checkMtuNegotiation() qt.bluetooth.bluez: Sending read_by_group_type request, startHandle: 1 endHandle: ffff 2801 QDEBUG : tst_qlowenergycontroller_device::checkMtuNegotiation() qt.bluetooth.bluez: Received size: 5 data: "0110010010" QDEBUG : tst_qlowenergycontroller_device::checkMtuNegotiation() qt.bluetooth.bluez: Error: QBluezConst::AttError::ATT_ERROR_UNSUPPRTED_GROUP_TYPE Error description: "unsupported group type" last command: QBluezConst::AttCommand::ATT_OP_READ_BY_GROUP_REQUEST handle: 1 QDEBUG : tst_qlowenergycontroller_device::checkMtuNegotiation() qt.bluetooth: QLowEnergyControllerPrivate setting state to QLowEnergyController::DiscoveredState QWARN : tst_qlowenergycontroller_device::checkMtuNegotiation() qt.bluetooth.bluez: void QBluetoothSocketPrivateBluez::_q_readNotify() 8 error: -1 "Software caused connection abort" QDEBUG : tst_qlowenergycontroller_device::checkMtuNegotiation() qt.bluetooth.bluez: Unknown l2cp socket error: QBluetoothSocket::SocketError::UnknownSocketError "Software caused connection abort" QDEBUG : tst_qlowenergycontroller_device::checkMtuNegotiation() qt.bluetooth: QLowEnergyControllerPrivate setting state to QLowEnergyController::UnconnectedState QDEBUG : tst_qlowenergycontroller_device::checkMtuNegotiation() qt.bluetooth: QLowEnergyControllerPrivate setting state to QLowEnergyController::UnconnectedState FAIL! : tst_qlowenergycontroller_device::checkMtuNegotiation() Compared values are not the same Actual (((control->state()))) : UnconnectedState Expected (QLowEnergyController::DiscoveredState): DiscoveredState Loc: [../tests/manual/qlowenergycontroller/tst_qlowenergycontroller_device.cpp(154)] QWARN : tst_qlowenergycontroller_device::readWriteLargeCharacteristic() qt.bluetooth: Using BlueZ kernel ATT interface QDEBUG : tst_qlowenergycontroller_device::readWriteLargeCharacteristic() qt.bluetooth: QLowEnergyControllerPrivate setting state to QLowEnergyController::ConnectingState QDEBUG : tst_qlowenergycontroller_device::readWriteLargeCharacteristic() qt.bluetooth.bluez: Creating default GAP/GATT services QDEBUG : tst_qlowenergycontroller_device::readWriteLargeCharacteristic() qt.bluetooth: Using Bluetooth raw socket implementation QDEBUG : tst_qlowenergycontroller_device::readWriteLargeCharacteristic() qt.bluetooth.bluez: addresstypeToUse: "Public" QDEBUG : tst_qlowenergycontroller_device::readWriteLargeCharacteristic() qt.bluetooth.bluez: No settings found for peer device. QDEBUG : tst_qlowenergycontroller_device::readWriteLargeCharacteristic() qt.bluetooth.bluez: Current l2cp sec level: 1 QDEBUG : tst_qlowenergycontroller_device::readWriteLargeCharacteristic() qt.bluetooth.bluez: Exchanging MTU QDEBUG : tst_qlowenergycontroller_device::readWriteLargeCharacteristic() qt.bluetooth: QLowEnergyControllerPrivate setting state to QLowEnergyController::ConnectedState QDEBUG : tst_qlowenergycontroller_device::readWriteLargeCharacteristic() qt.bluetooth: QLowEnergyControllerPrivate setting state to QLowEnergyController::DiscoveringState QDEBUG : tst_qlowenergycontroller_device::readWriteLargeCharacteristic() qt.bluetooth.bluez: Sending read_by_group_type request, startHandle: 1 endHandle: ffff 2800 QDEBUG : tst_qlowenergycontroller_device::readWriteLargeCharacteristic() qt.bluetooth.bluez: Received size: 3 data: "030002" QDEBUG : tst_qlowenergycontroller_device::readWriteLargeCharacteristic() qt.bluetooth.bluez: Server MTU: 512 resulting mtu: 512 QDEBUG : tst_qlowenergycontroller_device::readWriteLargeCharacteristic() qt.bluetooth.bluez: Received size: 14 data: "110601000500011814001c000018" QDEBUG : tst_qlowenergycontroller_device::readWriteLargeCharacteristic() qt.bluetooth.bluez: Found uuid: "{00001801-0000-1000-8000-00805f9b34fb}" start handle: 1 end handle: 5 QDEBUG : tst_qlowenergycontroller_device::readWriteLargeCharacteristic() qt.bluetooth.bluez: Found uuid: "{00001800-0000-1000-8000-00805f9b34fb}" start handle: 14 end handle: 1c QDEBUG : tst_qlowenergycontroller_device::readWriteLargeCharacteristic() qt.bluetooth.bluez: Sending read_by_group_type request, startHandle: 1d endHandle: ffff 2800 QDEBUG : tst_qlowenergycontroller_device::readWriteLargeCharacteristic() qt.bluetooth.bluez: Received size: 22 data: "11142800ffffedfe63a7d3935caeeb1116ac7ce3851f" QDEBUG : tst_qlowenergycontroller_device::readWriteLargeCharacteristic() qt.bluetooth.bluez: Found uuid: "{1f85e37c-ac16-11eb-ae5c-93d3a763feed}" start handle: 28 end handle: ffff QDEBUG : tst_qlowenergycontroller_device::readWriteLargeCharacteristic() qt.bluetooth.bluez: Sending read_by_group_type request, startHandle: 1 endHandle: ffff 2801 QDEBUG : tst_qlowenergycontroller_device::readWriteLargeCharacteristic() qt.bluetooth.bluez: Received size: 5 data: "0110010010" QDEBUG : tst_qlowenergycontroller_device::readWriteLargeCharacteristic() qt.bluetooth.bluez: Error: QBluezConst::AttError::ATT_ERROR_UNSUPPRTED_GROUP_TYPE Error description: "unsupported group type" last command: QBluezConst::AttCommand::ATT_OP_READ_BY_GROUP_REQUEST handle: 1 QDEBUG : tst_qlowenergycontroller_device::readWriteLargeCharacteristic() qt.bluetooth: QLowEnergyControllerPrivate setting state to QLowEnergyController::DiscoveredState QDEBUG : tst_qlowenergycontroller_device::readWriteLargeCharacteristic() qt.bluetooth.bluez: Sending read_by_type request, startHandle: 28 endHandle: ffff type: 2802 packet: "082800ffff0228" QWARN : tst_qlowenergycontroller_device::readWriteLargeCharacteristic() qt.bluetooth.bluez: void QBluetoothSocketPrivateBluez::_q_readNotify() 8 error: -1 "Software caused connection abort" QDEBUG : tst_qlowenergycontroller_device::readWriteLargeCharacteristic() qt.bluetooth.bluez: Unknown l2cp socket error: QBluetoothSocket::SocketError::UnknownSocketError "Software caused connection abort" QDEBUG : tst_qlowenergycontroller_device::readWriteLargeCharacteristic() qt.bluetooth: QLowEnergyControllerPrivate setting state to QLowEnergyController::UnconnectedState QDEBUG : tst_qlowenergycontroller_device::readWriteLargeCharacteristic() qt.bluetooth: QLowEnergyControllerPrivate setting state to QLowEnergyController::UnconnectedState FAIL! : tst_qlowenergycontroller_device::readWriteLargeCharacteristic() Compared values are not the same Actual (((service->state()))) : InvalidService Expected (QLowEnergyService::ServiceState::RemoteServiceDiscovered): RemoteServiceDiscovered Loc: [../tests/manual/qlowenergycontroller/tst_qlowenergycontroller_device.cpp(197)] PASS : tst_qlowenergycontroller_device::cleanupTestCase() Totals: 2 passed, 2 failed, 0 skipped, 0 blacklisted, 42946ms ********* Finished testing of tst_qlowenergycontroller_device ********* qt.bluetooth.bluez: Destroying QtBluezDiscoveryManager Process finished with exit code 2
Attachments
Issue Links
- resulted from
-
QTBUG-94133 Test BTLE connections from all platforms to all platforms
- Closed