Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Date: Thu, 28 Apr 2005 16:59:36 -0400 (EDT) From: Igor Pechtchanski Reply-To: cygwin AT cygwin DOT com To: rwj cc: cygwin AT cygwin DOT com Subject: Re: can't access Serial Ports In-Reply-To: <20050428204626.29949.qmail@web54701.mail.yahoo.com> Message-ID: References: <20050428204626 DOT 29949 DOT qmail AT web54701 DOT mail DOT yahoo DOT com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Thu, 28 Apr 2005, rwj wrote: > Hi, > > I just recently installed cygwin on my WinXP box here at work. I am > trying to migrate my Perl scripts over to the cygwin environment. > > But now I can not access my Serial Ports thru cygwin. for instance, > when I tried installing a serial port device module for perl, the make > file died with the following error: > > could not open port '/dev/ttyS1'. Are permissions correct? > > i went to look in my root cygwin directory, and i dont even have a /dev > directory. all of my websearches on this subject finds info that > assumes my /dev/ttyS is available. /dev is currently a virtual directory in Cygwin. Try "ls -l /dev/ttyS1" -- you should get a listing. If you want Tab-completion, or if you want "find /" to look at the devices in /dev, you can create the /dev directory and even populate it with dummy (and real) directory entries -- see for a script to do this. Otherwise, don't bother. > does cygwin normally not install a /dev directory? do i need to create > this manually? I am not sure what to do here, and this is a major > stumbling block. Much of my work involves testing serial ports, modems, > etc. Are you sure you're trying to open the right serial port? /dev/ttyS1 corresponds to COM2 in Windows. If you want COM1, you need /dev/ttyS0. > For the record, all of these still work in the Win32 environment, just > not in cygwin. "All of these" means "serial ports", I presume. What did you use to test them? HTH, Igor -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_ pechtcha AT cs DOT nyu DOT edu ZZZzz /,`.-'`' -. ;-;;,_ igor AT watson DOT ibm DOT com |,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski, Ph.D. '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! "The Sun will pass between the Earth and the Moon tonight for a total Lunar eclipse..." -- WCBS Radio Newsbrief, Oct 27 2004, 12:01 pm EDT -- 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/