Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Qt Classic Bluetooth Windows. I can not connect to a specific device.
Forum Updated to NodeBB v4.3 + New Features

Qt Classic Bluetooth Windows. I can not connect to a specific device.

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 91 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.
  • A Offline
    A Offline
    Alejandro_qt_
    wrote on last edited by
    #1

    I'm trying to connect to a classic bluetooth device via Qt 6.9.0 on a Windows 11 Pro.
    The device is a Sena Parani SD1000, that only provides the SPP profile (Serial Port Profile). No services are explicitly mentioned.

    https://www.senanetworks.com/sd1000-01.html

    I´m able to get the pairing with the device by means of QBluetoothLocalDevice, QBluetoothDeviceDiscoveryAgent and QBluetoothDeviceInfo classes (so Qt says). Nonetheless, Qt does not find any services for the device using the QBluetoothServiceDiscoveryAgent and QBluetoothServiceInfo.
    Despite of this, as I know the device provides the SPP, I try the connection, but when I create the socket (QBluetoothSocket) and command for the connection (QBluetoothSocket::connectToService) I get an error.

    Command:
    socket->connectToService(QBluetoothAddress(address), QBluetoothUuid::ServiceClassUuid::SerialPort, QIODevice::ReadWrite);

    Error:
    qt.bluetooth.windows: Unexpected remote port
    Error from device "00:00:00:00:00:00" "" 0
    "ServiceNotFoundError"

    With a manufacture software, for this device, it is possible to detect a serial port service called Generic Serial and connect to it.

    The same success is achieved with an old software developed in Delphi, but I don't have access to the source code.

    In addition to this, I can detect services and connect to other devices following the same steps decribed above for the device causing me problems.

    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