timeout - c# SerialPort WriteTimeout Use? -
i communicating circuit via serial port , wondering if should set write timeout?
could give example of why/how used? understand point of read timeout (e.g. sent command, should receive response in under 250ms) don't see reasoning of write timeout. on old computer takes super long time send character string?
thanks.
if using hardware handshaking, bytes not written untill proper handshaking pin states have been reached. time out waiting other device signal ready more data, idicating buffer full @ end, or device off line. if have hardware hadshaking turned off, or have jumpered out on serial port (rts cts), time possibly time out writing bytes device faster can sent on line. fill output buffers , block (assuming not using async io). if driver can not clear buffers fast enough, time out on write, if have time out set short.
Comments
Post a Comment