Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. How to retrieve Bluetooth RSSI (signal strength) after connecting
QtWS25 Last Chance

How to retrieve Bluetooth RSSI (signal strength) after connecting

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
6 Posts 4 Posters 4.5k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    pvaibhav
    wrote on last edited by
    #1

    Hello all, I'm using the QT 5.5 Bluetooth Low Energy API to write an app for iOS (and later Android).

    I couldn't find any way to read the rssi/signal level once the device is already connected.

    During scan, the onDeviceDiscovered() signal passes a QBluetoothDeviceInfo object which has a rssi() function to return the signal level when the device was last scanned. This works fine initially, but always returns 0 outside of the slot.

    So my question: What would be the correct way to update the signal strength after connecting to a device? Is it currently implemented?

    1 Reply Last reply
    0
    • michaelLM Offline
      michaelLM Offline
      michaelL
      wrote on last edited by
      #2

      @pvaibhav Could you get it to work?
      I want also to read RSSI while connected.

      1 Reply Last reply
      0
      • ekkescornerE Offline
        ekkescornerE Offline
        ekkescorner
        Qt Champions 2016
        wrote on last edited by
        #3

        that's easy: http://doc.qt.io/qt-5/qbluetoothdeviceinfo.html#rssi

        ekke ... Qt Champion 2016 | 2024 ... mobile business apps
        5.15 --> 6.8 https://t1p.de/ekkeChecklist
        QMake --> CMake https://t1p.de/ekkeCMakeMobileApps

        1 Reply Last reply
        1
        • michaelLM Offline
          michaelLM Offline
          michaelL
          wrote on last edited by
          #4

          @ekkescorner
          qint16 QBluetoothDeviceInfo::rssi() const

          Returns the signal strength when the device was last scanned

          Yes i use this function already, but i want to get RSSI values while connected and not from scanning.
          This function gives me the RSSI value once the device is scanned. When i stablish connection with the device and move around this value doesnt change.
          So is there any way of getting RSSI value in connection?

          ekkescornerE 1 Reply Last reply
          0
          • michaelLM michaelL

            @ekkescorner
            qint16 QBluetoothDeviceInfo::rssi() const

            Returns the signal strength when the device was last scanned

            Yes i use this function already, but i want to get RSSI values while connected and not from scanning.
            This function gives me the RSSI value once the device is scanned. When i stablish connection with the device and move around this value doesnt change.
            So is there any way of getting RSSI value in connection?

            ekkescornerE Offline
            ekkescornerE Offline
            ekkescorner
            Qt Champions 2016
            wrote on last edited by
            #5

            @michaelL AFAIK only Beacons provide this feature. But at the moment I have no idea HowTo listen at Beacons - have only connected to non-Beacon_BT LE devices

            ekke ... Qt Champion 2016 | 2024 ... mobile business apps
            5.15 --> 6.8 https://t1p.de/ekkeChecklist
            QMake --> CMake https://t1p.de/ekkeCMakeMobileApps

            1 Reply Last reply
            0
            • Pham HoangP Offline
              Pham HoangP Offline
              Pham Hoang
              wrote on last edited by
              #6

              any updates on this? almost 5 years, but seem it still hot. ^^!
              i found a ticket : https://bugreports.qt.io/browse/QTBUG-69747

              1 Reply Last reply
              0

              • Login

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • Search
              • Get Qt Extensions
              • Unsolved