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

The result of calling serviceUUID is different in Q5 and Qt6

    XMLWordPrintable

Details

    • Android
    • 21
    • 6f9db7115 (dev), 8902ed8f8 (6.7), e2598f175 (6.6)
    • Foundations Sprint 98, Foundations Sprint 99

    Description

      There is an example of a "Bluetooth Low Energy Scanner" in Qt. When scanning devices, when the QBluetoothDeviceDiscoveryAgent::deviceDiscovered
      signal occurs, the Device::AddDevice method is called. The Qbluetoothserviceinfo &info object is passed to this method. If I call the serviceUUIDs() method from info, then Qt6 and Qt5 will have different results.

      Here's what I get in Qt5.15.2

      And that's what I get in Qt6.6.0

      At the same time, I know for sure that my BLE device has a second uuid that is 6E400001-B5A3-F393-E0A9-E50E24DCCA9E

      If I use QLowEnergyController to find out all the services, then there will be a service with the uuid 6E400001-B5A3-F393-E0A9-E50E24DCCA9E. So there is some problem with the primary definition of uuid in Qt6 and Android.

      I also checked which uuids are defined in Qt6 and Ubuntu - the uuids are correct there. It turns out the problem is in Qt6 and Android

       

      Attachments

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

        Activity

          People

            vuokko Juha Vuolle
            mr_integral Anton Kondratov
            Vladimir Minenko Vladimir Minenko
            Alex Blasche Alex Blasche
            Votes:
            3 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes