QSerialPort not working asynchronously under Windows
-
Hello.
The QSerialPort terminal example, which connects to the signals like
readyRead
do not function under Windows for Qt 5.12.5. The serial port is found and connected to, but the read signals are not caught at all. However, the synchronous reader example works fine. Is there a known issue for certain development environments, or, is there specific setup, order or configuration to get it running with the signals?Thank you.
-
Hello.
The QSerialPort terminal example, which connects to the signals like
readyRead
do not function under Windows for Qt 5.12.5. The serial port is found and connected to, but the read signals are not caught at all. However, the synchronous reader example works fine. Is there a known issue for certain development environments, or, is there specific setup, order or configuration to get it running with the signals?Thank you.
@fe-sc
You might want to read through https://forum.qt.io/topic/108848/terminal-example-for-qserialport-doesn-t-work-correctly and https://bugreports.qt.io/browse/QTBUG-78086,readyRead()
broken under Windows, perhaps under some circumstances including Terminal example? The bug seems to indicate that one affected version was 5.12.5, which is yours? It claims fixed at 5.12.6 or 5.13.2 ?P.S.
I believe for Qt5 it is suggested you should be on a stable 5.15.x, why not upgrade to that? -
Hello.
The QSerialPort terminal example, which connects to the signals like
readyRead
do not function under Windows for Qt 5.12.5. The serial port is found and connected to, but the read signals are not caught at all. However, the synchronous reader example works fine. Is there a known issue for certain development environments, or, is there specific setup, order or configuration to get it running with the signals?Thank you.
@fe-sc
You might want to read through https://forum.qt.io/topic/108848/terminal-example-for-qserialport-doesn-t-work-correctly and https://bugreports.qt.io/browse/QTBUG-78086,readyRead()
broken under Windows, perhaps under some circumstances including Terminal example? The bug seems to indicate that one affected version was 5.12.5, which is yours? It claims fixed at 5.12.6 or 5.13.2 ?P.S.
I believe for Qt5 it is suggested you should be on a stable 5.15.x, why not upgrade to that? -
@fe-sc
You might want to read through https://forum.qt.io/topic/108848/terminal-example-for-qserialport-doesn-t-work-correctly and https://bugreports.qt.io/browse/QTBUG-78086,readyRead()
broken under Windows, perhaps under some circumstances including Terminal example? The bug seems to indicate that one affected version was 5.12.5, which is yours? It claims fixed at 5.12.6 or 5.13.2 ?P.S.
I believe for Qt5 it is suggested you should be on a stable 5.15.x, why not upgrade to that?Thanks for your answers.
@JonB Thank you, this looks like the most possible reason for the situation. Unfortunately, I am implementing this as small part of a big code base, and I do not think altering Qt version is a viable option. Luckily, the
waitForReadyRead
blocking approach works, and I can stick with that. If necessary, I can think of moving it to a separateQThread
to simulate a similar solution. -
Thanks for your answers.
@JonB Thank you, this looks like the most possible reason for the situation. Unfortunately, I am implementing this as small part of a big code base, and I do not think altering Qt version is a viable option. Luckily, the
waitForReadyRead
blocking approach works, and I can stick with that. If necessary, I can think of moving it to a separateQThread
to simulate a similar solution.@fe-sc
I do respect what you are saying and your decision. I would just say that I would expect a program running with Qt 5.12.5 to move to 5.15.x without any source changes or altered behaviour, just taking advantage of the bug fixes. But if you have it working now that is good. -