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

Unable to connect to BLE device due to unhandled error 257 on Android

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • P3: Somewhat important
    • None
    • 5.9.0
    • None
    • * Android 4.4 on Samsung GT-I9192

    Description

      If periodically to do connection attempts to the remote device (e.g. every second) which is not in range (or for example, the device is powered off). Then, after a while the controller's object returns an error with a value 257. And if now power on remote device and try to connect to it, then the controller's object always will return error 257, and it is impossible to connect to device (even if to destroy and re-create the controller's object again).

      PS:

      At first time returns an error: W/QtBluetoothGatt(27676): Unhandled error code on connectionStateChanged: 133 2

      which is: QLowEnergyController::Error(ConnectionError)

      But, next errors is:
       
      D/BluetoothGatt(27676): connect() - device: E8:45:0D:85:9D:63, auto: false

      D/BluetoothGatt(27676): registerApp()

      D/BluetoothGatt(27676): registerApp() - UUID=ae7a6733-f7b9-49ad-90f1-ae1bff4df3e2

      D/BluetoothGatt(27676): onClientRegistered() - status=133 clientIf=0

      I/BluetoothGatt(27676): Client registered, waiting for callback

      W/QtBluetoothGatt(27676): Unhandled error code on connectionStateChanged: 257 0

      E/BluetoothGatt(27676): Failed to register callback

      Controller error occured QLowEnergyController::Error(ConnectionError)

      ...

      Controller error occured QLowEnergyController::Error(257)

      Attachments

        1. log2.txt
          32 kB
          Denis Shienkov
        2. log.txt
          47 kB
          Denis Shienkov
        3. tst_android.zip
          2 kB
          Denis Shienkov
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            ablasche Alex Blasche
            kuzulis Denis Shienkov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes