Re: SerialPort.WriteTimout

Don Clark <[email protected]> Tue, 8 Jan 2008 14:30:47 -0800
Newsgroups gmane.comp.windows.devel.dotnet.winforms
Message-ID <00f001c85246$1dde10a0$0202fea9@seattledev>
It's not always just the length of the data and the baud rate. I've seen
write timeouts happen when using virtual serial port controls even though
given the baud rate and the length of the data there was ample time to
complete the operation. The most recent drivers for the siLabs 210x USB to
Serial chips seem to be especially slow. With a write timeout of 400ms I was
sometimes unable to write 2 characters to my device at 38400 baud.

If the write operation isn't completed during the timeout period a
timeoutexception will be thrown.

Don



-----Original Message-----
From: Discussion forum for developers using Windows Forms to build apps and
controls [mailto:[email protected]] On Behalf Of Peter
Osucha
Sent: Tuesday, January 08, 2008 1:58 PM
To: [email protected]
Subject: [DOTNET-WINFORMS] SerialPort.WriteTimout

I have been searching for info on what actually will cause a WriteTimeout
error to happen on a serialport object in net 2.0.  There are lots of
articles that talk about a Write operation not being able to complete in the
time allotted.  However, besides having a series of bytes to be written that
when taking into the account the baud rate cannot complete in the allotted
time, I can't think of another reason for this error to occur - nor can I
find reference to when it will occur.

Any ideas or places you could point me, please?

Sincerely,
Peter