CodePudding user response:
Use a timer or threads, read regularlyCodePudding user response:
While (true){
ReadData (... );
sleep(1);
}
Loop reads
CodePudding user response:
No matter use a timer or the thread of what all can't read, and how to read print buffer data to 0, like serial didn't receive the 4096 bytes will not report to QT applicationsCodePudding user response:
Sending data sent by the way, if not too fast, a serial port receives is normal, and I am using QT4 Qextserialport and tripartite libraryCodePudding user response:
For bosses, yao has a similar situation