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

QBluetoothDeviceDiscoveryAgent - RSSI is not zero when device is not powered anymore

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: P2: Important
    • Resolution: Unresolved
    • Affects Version/s: 5.14.0
    • Fix Version/s: None
    • Labels:
      None
    • Environment:
      Linux Ubuntu 18 System
      QT 5.14
    • Platform/s:
      Linux/X11

      Description

      Hi,

      I'm repeatedly  starting (every x seconds, with x going from 1 to 10 and back to 1)  the BLE discovery via QBluetoothDeviceDiscoveryAgent. When the finished signal is trapped I retrieve the RSSI value from the QBluetoothDeviceInfo. This value is  different from zero as expected. 

      When I power down the BLE device that is previously discovered I will correctly get as RSSI value 0 after the finished signal is trapped (use of  getter func, discoveredDevices, to get the right ble device, represented by QBluetoothDeviceInfo).

      However when I run the process for some time with the BLE device powered and then I power down the BLE device, the RSSI value is no longer zero but keeps the last value when it was queried.

      It seems that no only the device is cached after a certain time but also the RSSI value and thus is no longer representative for the actual state of the BLE device. 

      I have added the sources to reproduce the issue.

      Best regards,

      Frank

       

       

        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:
              frv Frank Vieren
            • Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:

                Gerrit Reviews

                There are no open Gerrit changes