Serial port problems with cygwin1.dll 1.3.15 on Win98SE

Ton van Overbeek v-overbeek@cistron.nl
Fri Nov 15 04:20:00 GMT 2002


On Thu, 14 Nov 2002, Sergei Okhapkin wrote:

> Could you compile cygwin1.dll with the following patch:
>
> diff -u -p -r1.35 fhandler_serial.cc
> --- fhandler_serial.cc  7 Nov 2002 18:47:21 -0000       1.35
> +++ fhandler_serial.cc  14 Nov 2002 22:37:58 -0000
> @@ -420,8 +420,8 @@ fhandler_serial::ioctl (unsigned int cmd
>
>             DWORD cb;
>             DWORD mcr;
> -           if (!DeviceIoControl (get_handle (),
> IOCTL_SERIAL_GET_DTRRTS,
> -                                 NULL, 0, &mcr, 4, &cb, 0) || cb != 4)
> +           if (1/*!DeviceIoControl (get_handle (),
> IOCTL_SERIAL_GET_DTRRTS,
> +                                 NULL, 0, &mcr, 4, &cb, 0) || cb !=
> 4*/)
>               ipbuffer |= rts | dtr;
>             else
>               {
>
> -----Original Message-----
> From: Ton van Overbeek [mailto:v-overbeek@cistron.nl]
> Sent: Thursday, November 14, 2002 5:07 PM
> To: Sergei Okhapkin; cygwin@cygwin.com
> Subject: RE: Serial port problems with cygwin1.dll 1.3.15 on Win98SE
>
>
> Some more input.
> Attached strace output from a successfull run with the cygwin-1.3.14
> dll. What I can spot in the log is that when com4 is read it now has a
> read timeout of 1000 (vtime=1000), while in the unsuccessfull runs vmin
> was 0. Does that ring any bells ?
>
> Ton van Overbeek
>

Compiled cygwin1.dll with this patch. I cannot test it completely because
my Palm is at home. I ran with this cygwin1.dll and produced a strace
on a W98SE machine at work.
It looks promising. The timeout of 1000 is now there. I'll check at
home tonight and give you a definitive answer.
The trace file is attached.

Ton van Overbeek

-------------- next part --------------
A non-text attachment was scrubbed...
Name: trace-sergey.bz2
Type: application/octet-stream
Size: 8403 bytes
Desc: 
URL: <http://cygwin.com/pipermail/cygwin/attachments/20021115/477cce22/attachment.obj>
-------------- next part --------------
--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


More information about the Cygwin mailing list