I need some advice.
I’m developing an application that need fast serial read and write.
It is sending one byte, The byte is looped back on the RX wire (hardware).
Then I must read the received byte and see if it match the one i send. Than I can send a new one.
The receiving device need the time between the bytes to be smaller than 1 ms.!!!
But it seems the latency from the writefile to the readfile is high. The best I can accomplish is around 3 ms between to written bytes. That not fast enough for the receiving device. I have tried boosting the TX/RX thread to high priority.
Sending all bytes at the same time works fine (But that is actually not allowed)
I’m using a VF50 module running WEC2013. The serial port is running at 9600 baud
Any one now if it is possible to speed up the latency for the ReadFile/WriteFile on serial port?
Would using OVERLAPPED I/O work?