Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How to specify slave device PIN when connecting via Bluetooth

How to specify slave device PIN when connecting via Bluetooth

Scheduled Pinned Locked Moved Unsolved General and Desktop
5 Posts 3 Posters 1.1k Views 3 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.
  • A Offline
    A Offline
    ankurtyagi
    wrote on last edited by
    #1

    Hi,

    I am using QT5.4.1 Bluetooth API's to connect to a slave.

    But I am not able to understand how can I specify slave device PIN when connecting to it ?
    requestPairing() doesn't take PIN as an argument.

    Most of the slave devices uses 0000/1234 as default PIN. How can I try using them both when connecting with a slave device ?

    thanks
    Ankur

    raven-worxR 1 Reply Last reply
    0
    • A ankurtyagi

      Hi,

      I am using QT5.4.1 Bluetooth API's to connect to a slave.

      But I am not able to understand how can I specify slave device PIN when connecting to it ?
      requestPairing() doesn't take PIN as an argument.

      Most of the slave devices uses 0000/1234 as default PIN. How can I try using them both when connecting with a slave device ?

      thanks
      Ankur

      raven-worxR Offline
      raven-worxR Offline
      raven-worx
      Moderators
      wrote on last edited by
      #2

      @ankurtyagi
      see QBluetoothLocalDevice signals.
      (pairingDisplayConfirmation and pairingDisplayPinCode)

      --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
      If you have a question please use the forum so others can benefit from the solution in the future

      1 Reply Last reply
      0
      • A Offline
        A Offline
        ankurtyagi
        wrote on last edited by
        #3

        Thanks for the reply.

        But these signals are emitted after requestPairing().

        I am trying to understand what is the default PIN used with requestPairing() and how I can use a different PIN.

        Regards
        Ankur

        M 1 Reply Last reply
        0
        • A ankurtyagi

          Thanks for the reply.

          But these signals are emitted after requestPairing().

          I am trying to understand what is the default PIN used with requestPairing() and how I can use a different PIN.

          Regards
          Ankur

          M Offline
          M Offline
          MarkoSan
          wrote on last edited by
          #4

          @ankurtyagi said:

          Thanks for the reply.

          But these signals are emitted after requestPairing().

          I am trying to understand what is the default PIN used with requestPairing() and how I can use a different PIN.

          Regards
          Ankur

          Maybe you can get a liitle help from one of my old stackoverflow post. The printer works now, but I think I've configured it on OS level, not with Qt and then it started pairing without PIN code window.

          1 Reply Last reply
          0
          • A Offline
            A Offline
            ankurtyagi
            wrote on last edited by
            #5

            @MarkoSan
            In response to your post, it was mentioned to use QDBus for specifying custom PIN but couldn't find any reference for that.

            But it is bit weird that Qt doesn't support this functionality as it is a common requirement.

            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