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

QBluetoothDeviceDiscoveryAgent BLE scan only finds previously known devices

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Need More Info
    • Priority: P2: Important
    • Resolution: Incomplete
    • Affects Version/s: 5.11.3
    • Fix Version/s: None
    • Labels:
      None
    • Environment:
      Fedora 29, x86-64, KDE, BlueZ 5.50,
    • Platform/s:
      Linux/X11

      Description

      When scanning for nearby BLE devices, QBluetoothDeviceDiscoveryAgent finds only previously known devices. "hcitool lescan" is able to detect my device reliably every time. And gatttool is able to connect and read/write data.

      Often, after hcitool finds the device, a subsequent run of my Qt application, QBluetoothDeviceDiscoveryAgent also finds the device. But this is not predictable.

      I have called start() with QBluetoothDeviceDiscoveryAgent::LowEnergyMethod. I tried both without setting any value for setLowEnergyDiscoveryTimeout() and with 30 seconds timeout and restarting the scan on finished().

       

        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:
              syam.krishnan Syam Krishnan
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Gerrit Reviews

                There are no open Gerrit changes