Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-93598

BTLE: connecting from Android to Android gets stuck in "connecting" state

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • P1: Critical
    • None
    • 6.2.0 FF
    • None
    • Android
    • 21
    • Qt6_Foundation_Sprint 35, Team 1 Foundation_Sprint 42

    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 my other Android phone (Sony XPeria XZ2 Compact, Android 10) using the test in
      https://codereview.qt-project.org/c/qt/qtconnectivity/+/347342/4

      It gets stuck in "connecting" state. After a long while, it goes from "connecting" to "disconnected". Same behavior when trying to use lowenergyscanner as central.

      Log of central:

      05-07 15:20:26.524 14636 14661 I QTestLib: ********* Start testing of tst_qlowenergycontroller_device *********
      05-07 15:20:26.524 14636 14661 I QTestLib: Config: Using QtTest library 6.2.0, Qt 6.2.0 (arm-little_endian-ilp32-eabi shared (dynamic) debug build; by Clang 9.0.8 (https://android.googlesource.com/toolchain/llvm-project 98c855489587874b2a325e7a516b99d838599c6f)), android 10.0
      05-07 15:20:26.526 14636 14661 I QTestLib: QWARN  : tst_qlowenergycontroller_device::initTestCase() qt.bluetooth.android: ACCESS_COARSE|FINE_LOCATION permission available
      05-07 15:20:26.527 14636 14661 I QTestLib: QDEBUG : tst_qlowenergycontroller_device::initTestCase() qt.bluetooth.android: Location turned on
      05-07 15:20:26.537 14636 14661 I QTestLib: QDEBUG : tst_qlowenergycontroller_device::initTestCase() qt.bluetooth.android: QBluetoothDeviceDiscoveryAgentPrivate::start() - Low Energy search successfully started.
      05-07 15:20:26.567 14636 14661 I QTestLib: QDEBUG : tst_qlowenergycontroller_device::initTestCase() qt.bluetooth.android: Device found:  "" "15:1C:09:E8:1D:B6" isLeScanResult: true Manufacturer data size: 1
      05-07 15:20:26.618 14636 14661 I QTestLib: QDEBUG : tst_qlowenergycontroller_device::initTestCase() qt.bluetooth.android: Device found:  "Multi-Sensor" "80:6F:B0:F0:2A:87" isLeScanResult: true Manufacturer data size: 0
      05-07 15:20:26.669 14636 14661 I QTestLib: QDEBUG : tst_qlowenergycontroller_device::initTestCase() qt.bluetooth.android: Updating RSSI for "15:1C:09:E8:1D:B6" -54
      05-07 15:20:26.720 14636 14661 I QTestLib: QDEBUG : tst_qlowenergycontroller_device::initTestCase() qt.bluetooth.android: Updating RSSI for "80:6F:B0:F0:2A:87" -41
      05-07 15:20:26.760 14636 14661 I QTestLib: QDEBUG : tst_qlowenergycontroller_device::initTestCase() qt.bluetooth.android: Device found:  "Moto E" "B4:EF:E0:C6:FF:44" isLeScanResult: true Manufacturer data size: 0
      05-07 15:20:26.993 14636 14661 I QTestLib: QDEBUG : tst_qlowenergycontroller_device::initTestCase() qt.bluetooth.android: Updating RSSI for "15:1C:09:E8:1D:B6" -55
      05-07 15:20:27.124 14636 14661 I QTestLib: QDEBUG : tst_qlowenergycontroller_device::initTestCase() qt.bluetooth.android: Updating RSSI for "80:6F:B0:F0:2A:87" -40
      05-07 15:20:27.195 14636 14661 I QTestLib: QDEBUG : tst_qlowenergycontroller_device::initTestCase() qt.bluetooth.android: Updating RSSI for "15:1C:09:E8:1D:B6" -54
      05-07 15:20:27.226 14636 14661 I QTestLib: QDEBUG : tst_qlowenergycontroller_device::initTestCase() qt.bluetooth.android: Updating RSSI for "80:6F:B0:F0:2A:87" -41
      05-07 15:20:27.337 14636 14661 I QTestLib: QDEBUG : tst_qlowenergycontroller_device::initTestCase() qt.bluetooth.android: Updating RSSI for "80:6F:B0:F0:2A:87" -42
      05-07 15:20:30.844 14636 14661 I QTestLib: QDEBUG : tst_qlowenergycontroller_device::initTestCase() qt.bluetooth.android: Updating RSSI for "B4:EF:E0:C6:FF:44" -51
      05-07 15:20:30.845 14636 14661 I QTestLib: QDEBUG : tst_qlowenergycontroller_device::initTestCase() qt.bluetooth.android: Updating RSSI for "80:6F:B0:F0:2A:87" -43
      05-07 15:20:30.845 14636 14661 I QTestLib: QDEBUG : tst_qlowenergycontroller_device::initTestCase() qt.bluetooth.android: Updating RSSI for "15:1C:09:E8:1D:B6" -51
      05-07 15:20:31.468 14636 14661 I QTestLib: QDEBUG : tst_qlowenergycontroller_device::initTestCase() qt.bluetooth.android: Updating RSSI for "80:6F:B0:F0:2A:87" -44
      05-07 15:20:31.550 14636 14661 I QTestLib: QDEBUG : tst_qlowenergycontroller_device::initTestCase() not using "" "15:1C:09:E8:1D:B6"
      05-07 15:20:31.551 14636 14661 I QTestLib: QDEBUG : tst_qlowenergycontroller_device::initTestCase() not using "Multi-Sensor" "80:6F:B0:F0:2A:87"
      05-07 15:20:31.551 14636 14661 I QTestLib: QDEBUG : tst_qlowenergycontroller_device::initTestCase() found "Moto E" "B4:EF:E0:C6:FF:44"
      05-07 15:20:31.551 14636 14661 I QTestLib: PASS   : tst_qlowenergycontroller_device::initTestCase()
      05-07 15:20:31.564 14636 14661 I QTestLib: QDEBUG : tst_qlowenergycontroller_device::checkMtuNegotiation() qt.bluetooth.android: Creating Android Central/Client support for BTLE
      05-07 15:20:31.567 14636 14661 I QTestLib: QDEBUG : tst_qlowenergycontroller_device::checkMtuNegotiation() qt.bluetooth: QLowEnergyControllerPrivate setting state to QLowEnergyController::ConnectingState
      05-07 15:21:01.595 14636 14661 I QTestLib: QDEBUG : tst_qlowenergycontroller_device::checkMtuNegotiation() qt.bluetooth.android: Connection updated: error: QLowEnergyController::Error(133) oldState: QLowEnergyController::ConnectingState newState: QLowEnergyController::UnconnectedState
      05-07 15:21:01.596 14636 14661 I QTestLib: QDEBUG : tst_qlowenergycontroller_device::checkMtuNegotiation() qt.bluetooth: QLowEnergyControllerPrivate setting state to QLowEnergyController::UnconnectedState
      05-07 15:21:01.637 14636 14661 I QTestLib: FAIL!  : tst_qlowenergycontroller_device::checkMtuNegotiation() Compared values are not the same
      05-07 15:21:01.637 14636 14661 I QTestLib:    Actual   (control->state())                    : UnconnectedState
      05-07 15:21:01.637 14636 14661 I QTestLib:    Expected (QLowEnergyController::ConnectedState): ConnectedState
      05-07 15:21:01.637 14636 14661 I QTestLib:    Loc: [/home/andreasbuhr/development/qtdev/qtconnectivity/tests/manual/qlowenergycontroller/tst_qlowenergycontroller_device.cpp(130)]
      05-07 15:21:01.649 14636 14661 I QTestLib: QDEBUG : tst_qlowenergycontroller_device::readWriteLargeCharacteristic() qt.bluetooth.android: Creating Android Central/Client support for BTLE
      05-07 15:21:01.652 14636 14661 I QTestLib: QDEBUG : tst_qlowenergycontroller_device::readWriteLargeCharacteristic() qt.bluetooth: QLowEnergyControllerPrivate setting state to QLowEnergyController::ConnectingState
      05-07 15:21:31.674 14636 14661 I QTestLib: QDEBUG : tst_qlowenergycontroller_device::readWriteLargeCharacteristic() qt.bluetooth.android: Connection updated: error: QLowEnergyController::Error(133) oldState: QLowEnergyController::ConnectingState newState: QLowEnergyController::UnconnectedState
      05-07 15:21:31.674 14636 14661 I QTestLib: QDEBUG : tst_qlowenergycontroller_device::readWriteLargeCharacteristic() qt.bluetooth: QLowEnergyControllerPrivate setting state to QLowEnergyController::UnconnectedState
      05-07 15:21:31.713 14636 14661 I QTestLib: FAIL!  : tst_qlowenergycontroller_device::readWriteLargeCharacteristic() Compared values are not the same
      05-07 15:21:31.713 14636 14661 I QTestLib:    Actual   (control->state())                    : UnconnectedState
      05-07 15:21:31.713 14636 14661 I QTestLib:    Expected (QLowEnergyController::ConnectedState): ConnectedState
      05-07 15:21:31.713 14636 14661 I QTestLib:    Loc: [/home/andreasbuhr/development/qtdev/qtconnectivity/tests/manual/qlowenergycontroller/tst_qlowenergycontroller_device.cpp(179)]
      05-07 15:21:31.714 14636 14661 I QTestLib: PASS   : tst_qlowenergycontroller_device::cleanupTestCase()
      05-07 15:21:31.715 14636 14661 I QTestLib: Totals: 2 passed, 2 failed, 0 skipped, 0 blacklisted, 65191ms
      05-07 15:21:31.715 14636 14661 I QTestLib: ********* Finished testing of tst_qlowenergycontroller_device *********
      
      

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              ivan.solovev Ivan Solovev
              andreasbuhr Andreas Buhr
              Vladimir Minenko Vladimir Minenko
              Alex Blasche Alex Blasche
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes