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

BTLE Android Peripheral does not reuse handles

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: P3: Somewhat important
    • Resolution: Unresolved
    • Affects Version/s: 6.2.0 Beta4
    • Fix Version/s: None
    • Labels:
      None
    • Platform/s:
      Android

      Description

      Starting a BTLE service, it uses higher and higher handle numbers in each connection. This might be a hint that the BTLE services are not properly unregistered in the Android system.

      To reproduce:
      Start bluetoothtestdevice https://codereview.qt-project.org/c/qt/qtconnectivity/+/347091 on Android.
      In the log, one sees the handle numbers used. On my Google Pixel 4a it is 10, 13, 16 after application start.
      Then start a test as in https://codereview.qt-project.org/c/qt/qtconnectivity/+/347342 in another device.
      After the first connect/disconnect, bluetoothtestdevice is advertising on handles 28/31/34.
      After another connect/disconnect, bluetoothtestdevice is advertising on handles 46/49/52.

        Attachments

          Issue Links

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

            Activity

              People

              Assignee:
              ablasche Alex Blasche
              Reporter:
              andreasbuhr Andreas Buhr
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:

                  Gerrit Reviews

                  There are no open Gerrit changes