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. Qt Low energy scanner example and android 5.0.2

Qt Low energy scanner example and android 5.0.2

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
1 Posts 1 Posters 536 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.
  • E Offline
    E Offline
    eluppai
    wrote on last edited by
    #1

    Hi All,
    I am trying to use the Qt Low energy scanner example running on a samsung galaxy tab(running android 5.0.2) to connect to a BLE device, list the available service and characteristics.

    It is able to connect to the device and list the services. It was also able to connect to all but one service and list the characteristics available.

    When I try to execute discoverDetails() and collect information about this service, I get the following error message:
    D/QtBluetoothGatt( 9805): Non-readable characteristic 00004a5b-0000-1000-8000-00805f9b34fb for service 11223344-5566-7788-99aa-bbccddeeff00
    W/System.err( 9805): java.lang.SecurityException: Need BLUETOOTH_PRIVILEGED permission: Neither user 10266 nor current process has android.permission.BLUETOOTH_PRIVILEGED.
    W/System.err( 9805): at android.os.Parcel.readException(Parcel.java:1540)
    W/System.err( 9805): at android.os.Parcel.readException(Parcel.java:1493)
    W/System.err( 9805): at android.bluetooth.IBluetoothGatt$Stub$Proxy.readCharacteristic(IBluetoothGatt.java:1007)
    W/System.err( 9805): at android.bluetooth.BluetoothGatt.readCharacteristic(BluetoothGatt.java:969)
    W/System.err( 9805): at org.qtproject.qt5.android.bluetooth.QtBluetoothLE.performServiceDetailDiscoveryForHandle(QtBluetoothLE.java:759)
    W/System.err( 9805): at org.qtproject.qt5.android.bluetooth.QtBluetoothLE.access$900(QtBluetoothLE.java:53)
    W/System.err( 9805): at org.qtproject.qt5.android.bluetooth.QtBluetoothLE$2.onDescriptorRead(QtBluetoothLE.java:358)
    W/System.err( 9805): at android.bluetooth.BluetoothGatt$1.onDescriptorRead(BluetoothGatt.java:499)
    W/System.err( 9805): at android.bluetooth.IBluetoothGattCallback$Stub.onTransact(IBluetoothGattCallback.java:330)
    W/System.err( 9805): at android.os.Binder.execTransact(Binder.java:461)

    I tried adding permissions to the AndroidManifest.xml. However, that did not seem to fix the issue

    Can someone please help
    Sid

    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