delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2008/08/05/22:38:46

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Date: Tue, 5 Aug 2008 19:37:41 -0700
From: Gary Johnson <garyjohn AT spk DOT agilent DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Problem opening new serial ports
Message-ID: <20080806023740.GC18964@suncomp3.spk.agilent.com>
Mail-Followup-To: cygwin AT cygwin DOT com
References: <20080805203523 DOT GA18964 AT suncomp3 DOT spk DOT agilent DOT com>
MIME-Version: 1.0
In-Reply-To: <20080805203523.GA18964@suncomp3.spk.agilent.com>
X-Operating-System: SunOS suncomp3 5.8 sparc
User-Agent: Mutt/1.5.17 (2007-11-01)
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

On 2008-08-05, Gary Johnson wrote:
> I've been successfully using the original two serial ports on my
> Windows PC, COM1 and COM2, referring to them to Cygwin tools as
> /dev/ttyS0 and /dev/ttyS1, respectively.  I needed two more serial
> ports, so I used a device that plugs into a USB port on a PC and
> provides two serial ports.  The device is an Edgeport/2 USB
> Converter.  I installed the drivers and now the Windows Device
> Manager shows the following under "Ports (COM & LPT)":
> 
>    Communications Port (COM1)
>    Communications Port (COM2)
>    EdgePort [V20853020-0] Serial Port - 1 (COM24)
>    EdgePort [V20853020-0] Serial Port - 2 (COM25)
> 
> plus devices on LPT1, COM4 and COM5.
> 
> Cygwin tools don't seem to be able to find these two new ports.  For
> example:
> 
>    $ stty < /dev/ttyS23
>    bash: /dev/ttyS23: No such file or directory
> 
>    $ stty < /dev/ttyS24
>    bash: /dev/ttyS24: No such file or directory
> 
> Is there something else I need to do to get Cygwin to recognize
> these ports?  Do they look like serial ports to Cygwin, or does
> Cygwin see only the USB port?
> 
> I have not rebooted the machine since installing the EdgePort device
> since I have experiments running on it at the moment.

OK, I did some Googling and found a "Cygwin USB-to-Serial HOWTO" 
(http://tmp.ua964.com/cygwin-usb-to-serial-howto/) and a thread in 
this list from May, both mentioning Cygwin's limit of 16 com ports.  
They also say that this is in the FAQ, but I sure couldn't find it 
there.  So it looks like my choices are:

1.  Wait for 1.7 (I'm currently using 1.5.25(0.156/4/2).
2.  Build my own cygwin1.dll and change the limit to 64.
3.  Rename COM24 and COM25 to 16 or below.

I tried #3, but the drop-down list of COM ports says ports COM1 - 
COM23 are "(in use)", yet only COM1, COM2, COM4, COM5, COM24 and  
COM25 are in the Device Manager List.  The other ports were probably 
taken by various USB devices I've plugged in at one time or another 
but am no longer using.

There seems to be no way to simply and safely remove a COM port 
without first removing the driver that owns it, and no way that I've 
found to find what driver owns a particular COM port.  This is 
getting OT, though.  It looks like #2 is my best bet.

Regards,
Gary


--
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/

- Raw text -


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