
MSComm handshaking trouble
Quote:
> Yes, the timeout is EXACTLY five seconds. If Xon or CTS is not
> re-established within that timeout, any unsent data are discarded. You
can
> use the Windows API to extend this timeout to a more reasonable number
> (thousands of seconds, if you want). I have examples of the code required
> for this in my book. See below. The required API function is
> SetCommTimeouts. You can use the API Text viewer to find the declaration
> for this function. The code example in my book illustrates how to
calculate
> a good timeout interval.
Thanks, Richard. If I use the SetCommTimeouts API function to set
WriteTotalTimeoutConstant to 0 will effectively cause MSComm to honor
handshaking, but also lock up the whole application when handshaking signals
"wait mode". Can I circumvent this effect?
Setting a specific timeout is no option since my app will run unattended and
deliver programs to a CNC machine. I can't justify corrupted data at all.
Thanks.