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

Bluetooth Low Energy: ServiceState 'ServiceDiscovered' is never reached in Windows 10 Console Application

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: In Progress
    • Priority: P2: Important
    • Resolution: Unresolved
    • Affects Version/s: 5.13.2
    • Fix Version/s: None
    • Labels:
      None
    • Environment:
      Qt Creator 4.10.2
      Qt 5.13.2
      Windows 10 Home 64bit, Version 1903, Build 18362.535
      Building with MSVC2017 64bit

      Description

      I am about to develop a console application  with which I can search for Bluetooth Low Energy devices, connect to one, choose the services and show the characteristics (Central role).
      After successfull connection, I am able to discover the services and create a service with a given UUID. However, by calling discover details I expect the state() transitions from DiscoveryRequired via DiscoveringServices to its final ServiceDiscovered state like it is described here. But the final state "ServiceDiscovered" with which I am able to read or write characteristics, is never reached in my application it remains DiscoveringServices the whole time.
      When using the BLE Scanner example from Qt, the characteristics from my device are discovered, so everything's fine with my BLE device (it is a Adafruit Feather M0 Bluefruit LE).

      There is no error.

       

      I attached my project in a zip file. The service UUID is hardcoded and it is the [UARTservice|https://learn.adafruit.com/introducing-adafruit-ble-bluetooth-low-energy-friend/uart-service] it just has to be changed if you want to test your BLE device.

        Attachments

        1. BleApplication.zip
          6 kB
        2. CharacteristicList.PNG
          CharacteristicList.PNG
          30 kB
        3. ServiceList.PNG
          ServiceList.PNG
          46 kB

          Issue Links

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

            Activity

              People

              Assignee:
              owolff Oliver Wolff
              Reporter:
              spacetoon Ali Berwawi
              Votes:
              4 Vote for this issue
              Watchers:
              7 Start watching this issue

                Dates

                Created:
                Updated:

                  Gerrit Reviews

                  There are no open Gerrit changes