delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1998/12/24/04:09:51

From: cgf AT cygnus DOT com (Christopher G. Faylor)
Subject: Re: Can outsiders get simple questions answered?
24 Dec 1998 04:09:51 GMT :
Message-ID: <75seqf$d7$1@cronkite.cygnus.com>
References: <367F31DC DOT B8E71A57 AT sdrc DOT com> <36811DB6 DOT 3601515A DOT cygnus DOT gnu-win32 AT sdrc DOT com>
X-Newsreader: trn 4.0-test63 (15 March 1998)

In article <36811DB6 DOT 3601515A DOT cygnus DOT gnu-win32 AT sdrc DOT com>,
Dan Hensley <dan DOT hensley AT sdrc DOT com> wrote:
>Corinna,
>    I'll need to try this again to confirm, but I think this only works in
>notty mode.  Somewhere along the line I tried this, but as I recall it didn't
>work...

I would be very surprised if ttys had anything to do with this.  There
is no correspondence at all between "com1" and cygwin ttys.  They are
two completely different things.

Corrinna's advice should be right on.

There are some bugs with cygwin's handling of serial ports however.
Specifically setting VMIN, VMAX, and ICANON do not work 100% reliably.
This will be fixed in the next release.

-chris

>Corinna Vinschen wrote:
>
>> Dan Hensley wrote:
>> >
>> > Here's my question:
>> > Using Cygwin b20.1 in tty mode, how do you open the serial ports (using
>> > open() )?
>> >
>> AFAIK, use comX as device name:
>>
>>         open("com1",...) should work
>>
>> I never used it, but this is, what I've found in the cygwin sources.
-- 
cgf AT cygnus DOT com
http://www.cygnus.com/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019