Home > Mobile > QT how to judge whether there is a serial communication, data from the serial port to send to come o
QT how to judge whether there is a serial communication, data from the serial port to send to come o
Time:09-29
How to judge whether there is data from serial port to send to come over? In my function, a serial port to send instructions when I use the write function to a serial port to send instructions after Then under the wirte function call serial - & gt; Waiting for the signal to have readyread waitforReadyread (2000) trigger To determine whether there is data from serial port to send Although I can receive data from serial port, is with the Readyread () signal is the binding of groove function can perform But below I write function call waitforReadyread () will always return a value of false is that it can't capture readyread () signal, What is the problem?
CodePudding user response:
CodePudding user response:
Data receiving interface look, again through the head + length data is read
CodePudding user response:
His top!!!!!! Why can't read directly below the write function readall data only in the slot of binding with the readyread signal readall will read the data