> Because i'm thinking QSerialPort cant handle the high frequency communication.
It is only your wrong thinking.
> serial->setReadBufferSize(400);
Don't touch this at all.
By default the internal buffer of QSP is infinite, and QSP does not lose any data.
> serial->clear(...)
Do not use it.
PS: The problem is in your code.
Bookmarks