Sorry there is an error:
Qt Code:
if (r == quint64(data.size())) qDebug() << "Writed binary file.";To copy to clipboard, switch view to plain text mode
this means:
"r" is the number of sent bytes
if r is equal to the file size the program prints "Writed binary file."
The error is: the program sends all the bytes but if there is a XOFF the device doesn't read all the bytes.
Now I've to find this XOFF answer, wait the XON signal and restart to write.
I thought the QSerialDevice manage this XON/XOFF but I don't know if it works.![]()





Reply With Quote
Bookmarks