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 Android: How to pair/bond Bluetooth Low Energy devices?
QtWS25 Last Chance

Qt Android: How to pair/bond Bluetooth Low Energy devices?

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
3 Posts 3 Posters 2.7k 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.
  • J Offline
    J Offline
    jporcher
    wrote on 13 Jul 2016, 06:29 last edited by jporcher
    #1

    I'm using Qt (and more specifically QLowEnergyController) to search, connect and use BLE (Bluetooth Low Energy) devices (see read/notify service's characteristics) on Android.

    One BLE device I want to connect requires bonding (with standard connection, I get limited access to the device...being reported lots GATT_INSUFFICIENT_AUTHENTICATION errors). I could not find any way to initiate authentification procedures in QLowEnergyController API. There is no reference to pairing/bounding/encryption in the API.

    The only reference I found is in QBluetoothLocalDevice which provides a requestPairing but this looks not related to BLE and seems more like a standard bluetooth 3.0 feature (where you had to enter a pairing 4-digit code upon connection). BLE pairing seems more complex and, as far as I understood, may not require any code to be entered (I could connect my BLE device requiring bonding with Nordic's master control panel without entering any code and getting full access to it). Moreover, I did not even use this QBluetoothLocalDevice in my application so far so that's why I feel like this is not meant to be used with BLE devices....but documentation is not very explicit here.

    Is Bluetooth LE pairing/bonding/encryption supported by Qt API? If yes, could someone provide me with an example bonding a device?

    N 1 Reply Last reply 17 Aug 2017, 14:58
    0
    • J jporcher
      13 Jul 2016, 06:29

      I'm using Qt (and more specifically QLowEnergyController) to search, connect and use BLE (Bluetooth Low Energy) devices (see read/notify service's characteristics) on Android.

      One BLE device I want to connect requires bonding (with standard connection, I get limited access to the device...being reported lots GATT_INSUFFICIENT_AUTHENTICATION errors). I could not find any way to initiate authentification procedures in QLowEnergyController API. There is no reference to pairing/bounding/encryption in the API.

      The only reference I found is in QBluetoothLocalDevice which provides a requestPairing but this looks not related to BLE and seems more like a standard bluetooth 3.0 feature (where you had to enter a pairing 4-digit code upon connection). BLE pairing seems more complex and, as far as I understood, may not require any code to be entered (I could connect my BLE device requiring bonding with Nordic's master control panel without entering any code and getting full access to it). Moreover, I did not even use this QBluetoothLocalDevice in my application so far so that's why I feel like this is not meant to be used with BLE devices....but documentation is not very explicit here.

      Is Bluetooth LE pairing/bonding/encryption supported by Qt API? If yes, could someone provide me with an example bonding a device?

      N Offline
      N Offline
      NickH
      wrote on 17 Aug 2017, 14:58 last edited by
      #2

      I would also be interested in knowing the state of bonding. We are developing a wearable technology like fitibit and need the device to connect to our Qt smartphone app automagically when the app i opened.

      Does anybody have the answer for @jporcher

      1 Reply Last reply
      0
      • S Offline
        S Offline
        SGaist
        Lifetime Qt Champion
        wrote on 17 Aug 2017, 22:03 last edited by
        #3

        Hi and welcome to devnet,

        I'd recommend bringing this question to the interest mailing list, you'll find there the QtConnectivity module developers/maintainers. This forum is more user oriented.

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply
        1

        • Login

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