Serial Comms Problem
-
Hi there, I am examining some VC++ code that attempts to read asynchronous serial data via third party serial interface cards, namely (Moxa<4-port> and Aurora<8-port>). When I set the baudrate to 19200 and above, then the data packets read are all fine and consistent. But when I set the baudrate to 9600 and below then the problems start. The length and the content of the packets read are not always the same. A packet consists of 44 bytes, with 8 bits, one start and stop bit only, no parity. I have inserted the HasOverlappedIOCompleted() function before ReadFile() function, but to no avail. Any help/advise would be appreciated. Thanks Louis
-
Hi there, I am examining some VC++ code that attempts to read asynchronous serial data via third party serial interface cards, namely (Moxa<4-port> and Aurora<8-port>). When I set the baudrate to 19200 and above, then the data packets read are all fine and consistent. But when I set the baudrate to 9600 and below then the problems start. The length and the content of the packets read are not always the same. A packet consists of 44 bytes, with 8 bits, one start and stop bit only, no parity. I have inserted the HasOverlappedIOCompleted() function before ReadFile() function, but to no avail. Any help/advise would be appreciated. Thanks Louis