Qt Classic Bluetooth Windows. I can not connect to a specific device.
-
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.