X-Spam-Check-By: sourceware.org
Message-ID: <45AE13FA.2050901@sauvages.be>
Date: Wed, 17 Jan 2007 13:18:02 +0100
From: Stan Pinte <stan@sauvages.be>
User-Agent: Thunderbird 1.5.0.9 (Windows/20061207)
MIME-Version: 1.0
To: cygwin@cygwin.com, corinna-cygwin@cygwin.com
Subject: Re: Problem open(...) serial port /dev/com20 and tcgetattr(...)
References: <45ADF0D2.8080809@sauvages.be> <20070117114719.GG28312@calimero.vinschen.de>
In-Reply-To: <20070117114719.GG28312@calimero.vinschen.de>
OpenPGP: id=BC4F5802
Content-Type: multipart/signed; micalg=pgp-sha1;  protocol="application/pgp-signature";  boundary="------------enig782478A21E6B35F5C6D22206"
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.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

--------------enig782478A21E6B35F5C6D22206
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Dear Corinna,

Thanks for your quick follow-up!

I tried the more POSIXy /dev/ttySxx, and they work until /dev/ttyS16.
This, and the next ones (I tested up to ttyS20) fail with a "No such
file or directory" error.

One note: I am using VSPD5 from eltima software to create virtual serial
ports under windows XP. However, all my other windows applications seem
to be perfectly able to taok to these virtuals serial ports.

Stan.

Corinna Vinschen a =E9crit :
> On Jan 17 10:48, Stan Pinte wrote:
>=20=20=20
>> Hello,
>>
>> accessing serial port under cygwin, with ids above 10 is broken:
>>
>> Using "/dev/com20" results in a "No such file or directory" error.
>>=20=20=20=20=20
>
> Try the more POSIXy "/dev/ttyS19" instead.  /dev/ttyS0 =3D=3D /dev/com1
> This is supposed to be supported up to /dev/ttyS63.
>
>=20=20=20
>> 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,=20
>> but the call to tcgetattr raises a "Inappropriate ioctl for device" erro=
r.
>>=20=20=20=20=20
>
> This posting is 7(!) years old.  Things have changed in the meantime.
> Don't use the Windows notation "\\.\comXX".  It's not supported.
>
>
> Corinna
>
>=20=20=20



--------------enig782478A21E6B35F5C6D22206
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFrhP6/PmuubxPWAIRAsJ+AJ9HQAXMqJD2krPIEpdPUhBjmrChSACePr3z
m7BJZ6bLuyPPAGqKkdlkEcg=
=lSJ9
-----END PGP SIGNATURE-----

--------------enig782478A21E6B35F5C6D22206--
