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

QBluetoothDeviceDiscoveryAgent BLE scan only finds previously known devices

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • P2: Important
    • None
    • 5.11.3
    • None
    • Fedora 29, x86-64, KDE, BlueZ 5.50,
    • 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

            ablasche Alex Blasche
            syam.krishnan Syam Krishnan
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes