Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
6.5.3, 6.6
-
None
-
Using Qt Creator 12.0.2, Qt 6.5.3 MSVC2019 64bit, Windows 11 Pro (23H2)
-
-
25
-
Foundation PM Staging
Description
have used QBluetoothSocket in Qt 5.15.2 without issue. After setting up the QBluetoothSocket, I rely on the socket's readyRead() signal to tell me when to read from the socket with readAll(). No issues; able to reliably read from the socket every time.
Now I am transitioning from Qt 5.15.2 to Qt 6.5.3.
I set up the QBluetoothSocket in Qt 6.5.3 as I have done so in Qt 5.15.2.
The readyRead() signal method to trigger the socket's readAll() fuction strategy works fine for a while in Qt 6.5.3. But after a while of working, the readyRead() signal comes in and I try to read from the socket but there is no data in the socket. (Confirmed with canReadLine() returning false & bytesAvailable() returning 0)
Could this be a QBluetoothSocket bug in Qt 6.5.3 or am I missing something? I believe I have tried Qt 6.6 but still the same issue.
The Bluetooth device we are connecting to is a custom device. It uses Serial Port Profile.
The socket we open on the app side is opened with RfcommProtocol.
We transmit about 11 bytes of data every 10ms from the Device to the app.