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. Bluetooth discovers the same unit repeatedly
Forum Updated to NodeBB v4.3 + New Features

Bluetooth discovers the same unit repeatedly

Scheduled Pinned Locked Moved Mobile and Embedded
4 Posts 2 Posters 1.2k Views 1 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.
  • G Offline
    G Offline
    GoodMorninSunshine
    wrote on last edited by
    #1

    Hi All,

    Im trying to scan for the Bluetooth devices using the QML BluetoothDiscoveryModel. This is for an app in Android.
    But my problem is that the same unit is discovered multiple times and listed multiple times.

    Is this the normal behaviour? If so, is there a way to prevent this repetition?

    Thanks in advance!

    1 Reply Last reply
    0
    • G Offline
      G Offline
      GoodMorninSunshine
      wrote on last edited by
      #2

      Hi All,

      On further investigation, I found out that the reason that the same device is being repeated is because the device discovery picks up different bluetooth services in the one device.

      Is there a way to avoid this? I just want a simple app that can chat with the other bluetooth device.

      Also out of all the services (eg: service discovery, object push, file transfer, advanced audio, audio/video remote, headset AG, Hands-free etc) which service should I select to be able to transfer data strings (QStrings)?

      Thanks very much!

      1 Reply Last reply
      0
      • S Offline
        S Offline
        s.frings74
        wrote on last edited by
        #3

        I never used QML. But I am pretty sure that you should use the uuidFilter to find only devices that provide the service you want to connect to.

        1 Reply Last reply
        0
        • G Offline
          G Offline
          GoodMorninSunshine
          wrote on last edited by
          #4

          Hi s.frings74,

          Thanks for your reply. I agree that the uuidFilter option should do the trick. But when I looked under the QBluetoothDeviceDiscoveryAgent, there is no option to set the UUID. In the QBluetoothServiceDiscoveryAgent, this option is there. But Im searching for devices at the moment... Not services... Any other options?

          Thanks..

          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