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. Qt Bluetooth Android + Windows Sockets Bluetooth API
Forum Update on Monday, May 27th 2025

Qt Bluetooth Android + Windows Sockets Bluetooth API

Scheduled Pinned Locked Moved Mobile and Embedded
1 Posts 1 Posters 1.9k 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.
  • M Offline
    M Offline
    maurosanjo
    wrote on 29 Sept 2014, 21:38 last edited by
    #1

    I'm working on a software on PC (windows 7 and linux) that communicates with an android Qt app.

    On windows I had to implement using Microsoft Sockets API (Bluetooth) http://msdn.microsoft.com/en-us/library/windows/desktop/aa362928(v=vs.85)).aspx

    The windows test software is "the connection sample from Microsoft":http://code.msdn.microsoft.com/windowsdesktop/Bluetooth-Connection-e3263296 with some minor changes to avoid closing socket abruptly...

    I tested 2 situations, one android was the server and in other the windows software was the server side.

    • When android is the server side, the windows app can connect successfully and start sending data. But QBluetoothSocket is only able to read the first byte, all the rest is lost :(

    • When the android app is the client, it can discover the service through UUID but the QBluetoothServiceInfo returned has wrong information about socket protocol, and then the socket cannot be created stating that the socket protocol type is not supported.

    In all cases both sides are creating RFCOMM sockets.

    Have anyone ever tried to make this work?

    Best Regards.

    1 Reply Last reply
    0

    1/1

    29 Sept 2014, 21:38

    • Login

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