Qt Forum

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

    Qt Academy Launch in California!

    Trouble using the Bluetooth ServiceDiscoveryAgent in Android ...

    Mobile and Embedded
    1
    2
    365
    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.
    • T
      teratux last edited by

      Hi ... I'm trying to build a small example to scan the available services of a Host that has a running RFcomm server. On the Host side I managed to successfully register a new service with my own UUID and it starts to listen for incoming RFcomm connections. On the Client side I prepared a small Qt app as well that discovers available bluetooth devices with the DeviceDiscoveryAgent and when it finds the one I'm looking for (the Host) I start a ServiceDiscoveryAgent to scan the services on that Host. The Client app works well when I compile it for Linux 64 bits but when I compiled it for Android I can only scan the devices, when I start to scan the services it doesn't find the one I registered earlier. I looked around the documentation to see if there was anything specific about the Android platform that could change the way the two ends behave but I couldn't find anything. All the code I used was mainly from the btscanner example and the ping pong examples.

      Does anyone have any ideas or has anyone managed to get an example like this running ?

      Thanks ...

      1 Reply Last reply Reply Quote 0
      • T
        teratux last edited by

        Bump ?? ...

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