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

QLowEnergyService HID Details (BluetoothGatt: Unhandled exception in callback)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.9.0 Beta 3
    • 5.8.0
    • None
    • Qt 5.8
      Android 6.0.1

    Description

      I'm developing new BT LE Examples using QtQuickControls 2 and all the new BT LE stuff from 5.7/5.8
      Will provide soon at Github Example with Scanner and Heartrate

      While developing the BT LE Scanner I had a problem with a BTLE Waiter Lock (Magnetic Key put in sends ID, pull out sends message)
      This Device also contains a HID Service. Trying to get the details I run into a Stacktrace calling QLowEnergyService.discoverDetails()

      W QtBluetoothGatt: Performing queued job, handle: 22 Read (false) ValueKnown: false Skipping: false Characteristic
      W QtBluetoothGatt: Performing queued job, handle: 23 Read (false) ValueKnown: false Skipping: true CharacteristicValue
      W QtBluetoothGatt: Performing queued job, handle: 24 Read (false) ValueKnown: false Skipping: false Descriptor
      W BluetoothGatt: Unhandled exception in callback
      W BluetoothGatt: java.lang.SecurityException: Need BLUETOOTH_PRIVILEGED permission: Neither user 10135 nor current process has android.permission.BLUETOOTH_PRIVILEGED.
      W BluetoothGatt: 	at android.os.Parcel.readException(Parcel.java:1620)
      W BluetoothGatt: 	at android.os.Parcel.readException(Parcel.java:1573)
      W BluetoothGatt: 	at android.bluetooth.IBluetoothGatt$Stub$Proxy.readCharacteristic(IBluetoothGatt.java:992)
      W BluetoothGatt: 	at android.bluetooth.BluetoothGatt.readCharacteristic(BluetoothGatt.java:900)
      W BluetoothGatt: 	at org.qtproject.qt5.android.bluetooth.QtBluetoothLE.executeReadJob(QtBluetoothLE.java:1221)
      W BluetoothGatt: 	at org.qtproject.qt5.android.bluetooth.QtBluetoothLE.performNextIO(QtBluetoothLE.java:1066)
      W BluetoothGatt: 	at org.qtproject.qt5.android.bluetooth.QtBluetoothLE.access$800(QtBluetoothLE.java:63)
      W BluetoothGatt: 	at org.qtproject.qt5.android.bluetooth.QtBluetoothLE$2.onDescriptorRead(QtBluetoothLE.java:410)
      W BluetoothGatt: 	at android.bluetooth.BluetoothGatt$1.onDescriptorRead(BluetoothGatt.java:494)
      W BluetoothGatt: 	at android.bluetooth.IBluetoothGattCallback$Stub.onTransact(IBluetoothGattCallback.java:330)
      W BluetoothGatt: 	at android.os.Binder.execTransact(Binder.java:453)
      

      state is hanging on:

      QLowEnergyService::ServiceState(DiscoveringServices)
      

      my workaround: trying to get details for serviceUuid "0x1812" user gets message that HID Service isn't supported yet by my App

      Attachments

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

        Activity

          People

            ablasche Alex Blasche
            ekkescorner Ekkehard
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes