Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. The result of calling serviceUUIDs is different in Q5 and Qt6
Qt 6.11 is out! See what's new in the release blog

The result of calling serviceUUIDs is different in Q5 and Qt6

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
4 Posts 2 Posters 1.0k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Mr_Integral
    wrote on last edited by Mr_Integral
    #1

    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
    0960f9d0-c1d8-43bd-8176-9a8dc861c93b-image.png

    And that's what I get in Qt6
    9f7e0ab6-97c0-430d-9a66-841501703471-image.png

    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.
    Is this really a problem or is the current behavior of Qt6 correct?

    M 1 Reply Last reply
    1
    • M Mr_Integral

      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
      0960f9d0-c1d8-43bd-8176-9a8dc861c93b-image.png

      And that's what I get in Qt6
      9f7e0ab6-97c0-430d-9a66-841501703471-image.png

      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.
      Is this really a problem or is the current behavior of Qt6 correct?

      M Offline
      M Offline
      Mr_Integral
      wrote on last edited by
      #2

      I forgot to add, Qt 5.15.2 and Qt 6.6.0 are used

      M 1 Reply Last reply
      0
      • M Mr_Integral

        I forgot to add, Qt 5.15.2 and Qt 6.6.0 are used

        M Offline
        M Offline
        Mr_Integral
        wrote on last edited by
        #3

        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

        1 Reply Last reply
        2
        • KH-219DesignK Offline
          KH-219DesignK Offline
          KH-219Design
          wrote on last edited by
          #4

          @Mr_Integral Now that you narrowed it down not just Qt6, but to Qt6 on a specific platform, this is definitely sounding like a bug in my opinion.

          I went to search the bugtracker to see if anyone else has reported it.

          You reported it! Kudos. https://bugreports.qt.io/browse/QTBUG-119248

          It's helpful to me that you posted here, because I am currently considering moving an Android app that I maintain onto Qt6 (it currently uses Qt5), but I need BLE to work, so your posts have given me some "fair warning." Thanks!

          www.219design.com
          Software | Electrical | Mechanical | Product Design

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved