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

BluetoothDiscoveryModel only returns LE results on Android 6.0.1

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Affects Version/s: 5.6.0
    • Fix Version/s: 5.6.2
    • Labels:
      None
    • Environment:
      Android 6.0.1

      Description

      With a BluetoothDiscoveryModel set up as below:

      BluetoothDiscoveryModel{
          running: true
          discoveryMode: BluetoothDiscoveryModel.DeviceDiscovery
      }
      

      only LE devices are being found on an Android 6.0.1 device:

      ...
      D libmylib.so: (null):0 ((null)): qt.bluetooth.android: DeviceDiscoveryBroadcastReceiver::onReceiveLeScan()
      D libmylib.so: (null):0 ((null)): qt.bluetooth.android: Device found:  "some device" "XX:XX:XX:XX:XX:XX" isLeScanResult: true
      D libmylib.so: (null):0 ((null)): qt.bluetooth.android: DeviceDiscoveryBroadcastReceiver::onReceiveLeScan()
      D libmylib.so: (null):0 ((null)): qt.bluetooth.android: Device found:  "other device" "YY:YY:YY:YY:YY:YY" isLeScanResult: true
      ...
      

      On an Android 5.1.1 device, both LE and 2.1 devices are being found:

      ...
      D/libmylib.so(10501): (null):0 ((null)): qt.bluetooth.android: DeviceDiscoveryBroadcastReceiver::onReceive() - event: "android.bluetooth.device.action.FOUND"
      D/libmylib.so(10501): (null):0 ((null)): qt.bluetooth.android: Device found:  "old device" "ZZ:ZZ:ZZ:ZZ:ZZ:ZZ" isLeScanResult: false
      D/libmylib.so(10501): (null):0 ((null)): qt.bluetooth.android: DeviceDiscoveryBroadcastReceiver::onReceive() - event: "android.bluetooth.device.action.FOUND"
      D/libmylib.so(10501): (null):0 ((null)): qt.bluetooth.android: Device found:  "another old device" "WW:WW:WW:WW:WW:WW" isLeScanResult: false
      ...
      D/libmylib.so(10501): (null):0 ((null)): qt.bluetooth.android: DeviceDiscoveryBroadcastReceiver::onReceiveLeScan()
      D/libmylib.so(10501): (null):0 ((null)): qt.bluetooth.android: Device found:  "some device" "XX:XX:XX:XX:XX:XX" isLeScanResult: true
      ...
      D/libmylib.so(10501): (null):0 ((null)): qt.bluetooth.android: DeviceDiscoveryBroadcastReceiver::onReceiveLeScan()
      D/libmylib.so(10501): (null):0 ((null)): qt.bluetooth.android: Device found:  "other device" "YY:YY:YY:YY:YY:YY" isLeScanResult: true
      ...
      

        Attachments

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

          Activity

            People

            Assignee:
            ablasche Alex Blasche
            Reporter:
            ayberkozgur Ayberk Özgür
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes