Details
-
Bug
-
Resolution: Fixed
-
P1: Critical
-
6.6.0
-
-
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
For Gerrit Dashboard: QTBUG-119248 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
528824,1 | WIP: try to fix QTBUG-119248 (v2) | dev | qt/qtbase | Status: ABANDONED | -2 | 0 |
528861,7 | QUuid: Fix Id128Bytes alignment on some architectures | dev | qt/qtbase | Status: MERGED | +2 | 0 |
532274,2 | QUuid: Fix Id128Bytes alignment on some architectures | 6.7 | qt/qtbase | Status: MERGED | +2 | 0 |
532325,2 | QUuid: Fix Id128Bytes alignment on some architectures | 6.6 | qt/qtbase | Status: MERGED | +2 | 0 |