bigDW

I am using the serail port to talk to an external device with no flow control. When things are operating properly I SerialPort.Write some ascii cariters to the device and it responds with in a few milliseconds. I follow the SerialPort.Write() with a SerialPort.readline() to get the responce. How can I set up a timer to through an error if no responce is received in lets say 500 milliseconds

Thanks in advance



Re: .NET Compact Framework Serial port time out

Peter Nowak (Germany)

Hi,

the SerialPort includes the Properties WriteTimeout and ReadTimeout, which can be used for your scenario.

I hope this helps.

Cheers, Peter





Re: .NET Compact Framework Serial port time out

bigDW

THANKS