Introduction - If you have any usage issues, please Google them yourself
read data from the serial port, there are two methods, one, each receiving a EV_RXCHAR, on the ReadFile read, I think this vote. 2, received a EV_RXCHAR after a certain volume of data, such as CPU cycles (GetTickCount), and the one-time reader, the data buffer. To do so, under normal circumstances there is no problem, but if many of the data, and after a "certain amount of data the CPU cycles," also confiscated End Data how do? Few will read the data. I used three lines to complete serial data reception, the first method is a variant : an interception EV_RXCHAR, one pair of EV_RXCHAR analysis is, in fact, overtime judgment. If a receiver to the news, some time had not received a EV_RXCHAR, it is a data packet to an end. This thread will receive notification of data threads for da
Packet : 17981620050120091918_myserialport[2004-01-18-01].rar filelist
MySerialPort[2004-01-18-01]
MySerialPort[2004-01-18-01]\DataStruct.h
MySerialPort[2004-01-18-01]\DataStructTemplate.h
MySerialPort[2004-01-18-01]\MySerialPort.aps
MySerialPort[2004-01-18-01]\MySerialPort.clw
MySerialPort[2004-01-18-01]\MySerialPort.cpp
MySerialPort[2004-01-18-01]\MySerialPort.dsp
MySerialPort[2004-01-18-01]\MySerialPort.dsw
MySerialPort[2004-01-18-01]\MySerialPort.h
MySerialPort[2004-01-18-01]\MySerialPort.ncb
MySerialPort[2004-01-18-01]\MySerialPort.opt
MySerialPort[2004-01-18-01]\MySerialPort.plg
MySerialPort[2004-01-18-01]\MySerialPort.rc
MySerialPort[2004-01-18-01]\MySerialPortDlg.cpp
MySerialPort[2004-01-18-01]\MySerialPortDlg.h
MySerialPort[2004-01-18-01]\ReadMe.txt
MySerialPort[2004-01-18-01]\res
MySerialPort[2004-01-18-01]\res\MySerialPort.ico
MySerialPort[2004-01-18-01]\res\MySerialPort.rc2
MySerialPort[2004-01-18-01]\resource.h
MySerialPort[2004-01-18-01]\Serial.cpp
MySerialPort[2004-01-18-01]\Serial.h
MySerialPort[2004-01-18-01]\StdAfx.cpp
MySerialPort[2004-01-18-01]\StdAfx.h