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

QtBluetooth is unable to connect a device under Windows 10

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.9.0
    • None
    • Windows

    Description

      I'm migrating some code from Qt 6.2.2 to Qt 6.9.0.

      I have some code uqing QtBluetooth, I could migrate the code under Android, Linux and even Raspberry (arm Linux).
      Under Windows, my code compiles but crashs when trying to connect a device.

      My code is hard to isolate, so I tested the example provided with Qt 'lowenergyscanner', it's unable to connect a device, the log reports:

      qt.bluetooth.windows: HRESULT: 2147500036 /* await(service.GetCharacteristicsAsync(), earlyExit) */
      qt.bluetooth.windows: Characteristic operation failed
      qt.bluetooth.windows: Characteristic operation failed
      qt.bluetooth.windows: Characteristic operation failed
      qt.bluetooth.windows: Characteristic operation failed
      qt.bluetooth.windows: Characteristic operation failed
      qt.bluetooth.windows: Connect to device failed due to timeout!
      Error: "Error occurred trying to connect to remote device."

      Note that all othe platforms than Windows just work fine
      Note that my code using 6.2.2 is able to connect the exact same device

      Note that I'm running a Windows 10 machine. is Windows 11 required?

      Attachments

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

        Activity

          People

            ablasche Alex Blasche
            jpo38 Jean Porcherot
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes