readyRead() signal is working strange
-
Ok,it is basically certain that your main thread is occupied. Reference to my topic. QSerialport did not emit readyRead () signal,but USB monitor data received.Only occasionally problem
-
@Crawl-W hello!
I have read all through your topic. Seems that problem is very similar but I do not get what can occupy the thread.
My programm is working as a terminal in this mode and is suposed to just wait the bytes to be received... -
You need to make sure that your main thread is idle when the signal is triggered.
Firstly, exclude qt lib version bugs.
Then, peel off serial port read and write code, and you should decouple code.
In general, for such questions can only provide experience and possibilities. The rest is still have to rely on yourself. -
I have just tested a simple terminal with terminal 1.9b via com0com - it worked in both directions on my work, and....
It is working the same strange way on my personal PC! I can simply send bytes via my QT software and I cannot receive anything via it until I send a new parcel again.
So it is something on the PC... -
@IRBaboon If your PC have no obvious lagging, my issue is an error direction. Here are some ideas you can try:
- read help doc seriously or test one other poeple's credible demo on your devie, is it possible to call it incorrectly?(for serial device, It is difficult for others to run your demo)
- try the lastest verion of QT
14/14