Serial synchronous and asynchronous reading and serial device programming
http://blog.csdn.net/wlk1229/article/details/ 52566701
When reading serial port synchronously, ReadLen = (cs.cbInQue> len)? Cs.cbInQue:len; It can be read normally after correction.