Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Is creating an RFCOMM connection without pairing possible with Qt Bluetooth API

    Mobile and Embedded
    2
    3
    2386
    Loading More Posts
    • 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
      jonny.dee last edited by

      I would like to write a C++ cross-platform app for Android and iOS using Qt framework's Bluetooth API (I know Bluetooth for iOS is not yet available in Qt 5.3) that is able to discover nearby devices and communicate with them as soon as they are discovered. However, connection between peers must be possible without the need for first being paired by the user. In other words, communication between unknown devices must be possible as long as those devices also are running that same app. As far as I know Android's Bluetooth API allows such connections.

      So my question is:

      Does Qt also allow such connections? And if so, is it likely that a future iOS Bluetooth Qt binding will allow this, too?

      1 Reply Last reply Reply Quote 0
      • S
        s.frings74 last edited by

        I think this is impossible because the Bluetooth protocol does not allow this.
        Also the documentation of the Bluetooth Api (Java) clearly tells that you always have to pair the devices first.

        1 Reply Last reply Reply Quote 0
        • S
          s.frings74 last edited by

          What I found out so far is that Androids Java API can list all paired devices and open a connection without running a device discovery process.

          On Linux, I can run the command "bt-device -l" which immediatley returns a list of known devices (address and name). How can I get a similar list via QBluetooth wihtoud running the time-consuming discovery process?

          1 Reply Last reply Reply Quote 0
          • First post
            Last post