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. Unable to pair Bluetooth (within app): incorrect PIN or passkey
Forum Updated to NodeBB v4.3 + New Features

Unable to pair Bluetooth (within app): incorrect PIN or passkey

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
5 Posts 2 Posters 985 Views 2 Watching
  • 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.
  • ahsan737A Offline
    ahsan737A Offline
    ahsan737
    wrote on last edited by
    #1

    I am using HC-05 to pair with android, when I try to pair the Bluetooth device within the app (developed in Qt5.12.4) then it comes up with an error "Incorrect PIN or Passkey". But if I pair Bluetooth device from device (android) settings then it is successful and the app can use it. I've found a relevant thread suggesting the solution but I cannot understand it. Looking forward to the considerate response.

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      The thread you found proposes a solution for Ubuntu not Android.

      One thing that comes to mind, do you have the Bluetooth permission requested by your application ?

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

      ahsan737A 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi,

        The thread you found proposes a solution for Ubuntu not Android.

        One thing that comes to mind, do you have the Bluetooth permission requested by your application ?

        ahsan737A Offline
        ahsan737A Offline
        ahsan737
        wrote on last edited by
        #3

        @sgaist Yes, the following permissions are requested by the application.

        android.permission.BlueTOOTH
        android.permission.BLUETOOTH_ADMIN
        

        0_1565742696696_App Permissions.JPG

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Have they been accepted ?

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

          ahsan737A 1 Reply Last reply
          0
          • SGaistS SGaist

            Have they been accepted ?

            ahsan737A Offline
            ahsan737A Offline
            ahsan737
            wrote on last edited by ahsan737
            #5

            @sgaist these permissions are showing up and granted by the system. (I am using Meizu X8)

            
            * Turn on Bluetooth: Allow
            
            * Access Location: Allow
            
            * Read List of Installed apps: Allow
            
            * Use phone storage: Allow
            
            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