Hello,
I must admit I have no idea what going wrong. I can't belive that we delayed about 30ms (1 byte takes ~ 1ms at 9600Baud) between dispatch thread and clear RTS in "WriteFile" while priorty is 99! Can you measure such big delays on efus side?
What happens if you read after read of zero bytes?
According your timeouts we should be blocked a very long time in "ReadFile" while reading zero bytes - I am right?
>> ... I think you can use RS232 if you don't have RS485.
<< I don't think so. When it happens here too we have a complete other situation/problem. Because we don't have to wait for RTS.