Attached is a snippet of our COM port code.
During our receive loop, we are getting the following problems:
1) we get spurrious noise from the incoming data (may be caused by hardware...)
2) we dont get the entire data, when size=25 bytes (we had to develop a workaround)
3) we cannot reset the receive buffer/comm port (when we timeout waiting for a receive, we want to clear everything there)
- if we dont clear it, the next "interrupt", will append the incoming message with partial of last message.
Are these Win2000 vendor driver (of our RS-422 board) issues? I thought by using ReadFile() this would simplify communications?