X-Spam-Check-By: sourceware.org
Date: Wed, 17 Jan 2007 12:47:19 +0100
From: Corinna Vinschen <corinna-cygwin@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: Problem open(...) serial port /dev/com20 and tcgetattr(...)
Message-ID: <20070117114719.GG28312@calimero.vinschen.de>
Reply-To: cygwin@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
References: <45ADF0D2.8080809@sauvages.be>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <45ADF0D2.8080809@sauvages.be>
User-Agent: Mutt/1.4.2.2i
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

On Jan 17 10:48, Stan Pinte wrote:
> Hello,
> 
> accessing serial port under cygwin, with ids above 10 is broken:
> 
> Using "/dev/com20" results in a "No such file or directory" error.

Try the more POSIXy "/dev/ttyS19" instead.  /dev/ttyS0 == /dev/com1
This is supposed to be supported up to /dev/ttyS63.

> The following post:
> http://www.cygwin.com/ml/cygwin/1999-12/msg00323.html says I should use
> 
> "\\\\.\\com20" instead of "/dev/com20". If I do that, the call to open(...) succeed, 
> but the call to tcgetattr raises a "Inappropriate ioctl for device" error.

This posting is 7(!) years old.  Things have changed in the meantime.
Don't use the Windows notation "\\.\comXX".  It's not supported.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

