Hello All,
relying on ReadIntervalTimeout I found that W2K doesn't process the
timeout correctly when the hardware FIFO buffer is active: it returns
too early if the timeout is shorter than the time the FIFO can buffer.
For example, with 1200bps, 14 bytes FIFO, and ReadIntervalTimeout set
to <=130ms, ReadFile returns with timeout a condition and packets of
14 characters (although there is a continuous character stream). With
a timeout value of >=131ms, everything works fine. BTW:
14*11/(1200/s)=0.128 (although I used 8N1, not 8N2).
With 8 bytes FIFO, the limit is 71ms.
It seems that if the driver times out, it fails to look whether there
is more data in the FIFO but thinks there is nothing - pretty stupid,
isn't it? Or am I stupid, and it's bad to use ReadIntervalTimeout with
FIFO?
Any hint how to fix this?
TIA,
Oliver