This is the mail archive of the
cygwin
mailing list for the Cygwin project.
RE: serial ports
- From: "Dave Korn" <dave dot korn at artimi dot com>
- To: <cygwin at cygwin dot com>
- Date: Sun, 23 Apr 2006 15:40:01 +0100
- Subject: RE: serial ports
On 23 April 2006 15:26, Alexander J. Herrmann wrote:
> And what is the final answer? Is there a
>
> /dev/ttySx
> in Cygwin which can be used in Perl or C, even if I can not see it with ls?
> Alex
Oh, blimey, didn't you see that! Igor already answered it: the answer is
yes, the /dev directory is a bit funny because it's virtual, but you can see
it by entering "ls -la /dev/ttyS0" explicitly; the mapping is that windows COM
port N is dev/ttyS N minus one; and although "ls -la /dev/ttyS.." will work
for more serial ports than there actually are, you'll get ENOENT if you try
and use one that doesn't correspond to an actual windows COMx device. See
http://cygwin.com/ml/cygwin/2006-04/msg00553.html
cheers,
DaveK
--
Can't think of a witty .sigline today....
--
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/