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. Is creating an RFCOMM connection without pairing possible with Qt Bluetooth API

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

Scheduled Pinned Locked Moved Mobile and Embedded
3 Posts 2 Posters 2.6k 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
    jonny.dee
    wrote on last edited by
    #1

    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
    0
    • S Offline
      S Offline
      s.frings74
      wrote on last edited by
      #2

      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
      0
      • S Offline
        S Offline
        s.frings74
        wrote on last edited by
        #3

        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
        0

        • Login

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