Bluetooth discovers the same unit repeatedly



  • 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!



  • 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!



  • 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.



  • 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..


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.