After sending a set of data for the first time, return to normal data
Then send a set of data, but this time the data returned is the first time the data returned.
Can only send it again, the data returned is normal, I step through the program of receiving part found an error when the last data is received I set up a MSComm1 OutBufferSize=6 why can also receive greater than the number of bytes? Why is this
CodePudding user response:
Will MSComm Inputlen attribute is set to 0. Said a read the entire buffer After reading will clear the cache.
CodePudding user response:
OutBufferSize is send buffer size, and what is the relationship between the receive buffer? Receive buffer should be InputBufferSize (didn't check the document should be the)