Hi all,
This might not be the right group to ask, but I suspect there must be people outhere who have dealt with this:
I have an RS485 board in my Win2K machine, which uses the RTS signal to change the direction of the RS-485 tranceiver.
With EscapeCommFunction() I can change the state of the RTS signal but, as I espected, this function almost works immediately. Thus, the following code will not work:
EscapeCommFunction(hComm,SETRTS); WriteFile(hComm,.......) EscapeCommFunction(hComm,CLSRTS);
The last call to EscapeCommFunction() will put the RS485 transceiver in receive before the data is really sent. Is there a way for an application to check wether all data has been sent, from within windows?
This must be a known issue since the existense of for instance PC's talking Modbus....
Meindert