delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2008/04/25/08:48:13

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
Subject: RE: Looking for basic documentation on Cygwin and Serial Ports
Date: Fri, 25 Apr 2008 13:47:41 +0100
Message-ID: <28D25EB5A34E89408B73B6793C742171CAB6B4@nutmeg.CAM.ARTIMI.COM>
In-Reply-To: <16853883.post@talk.nabble.com>
References: <16827997 DOT post AT talk DOT nabble DOT com> <480F02EA DOT AF265921 AT dessent DOT net> <16853883 DOT post AT talk DOT nabble DOT com>
From: "Dave Korn" <dave DOT korn AT artimi DOT com>
To: <cygwin AT cygwin DOT com>
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
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id m3PCmC1F000921

Nefastor wrote on 24 April 2008 23:08:

> case : My machine has two serial port, one on the MoBo and a USB-serial
> adapter, yet Windows calls them COM1 and COM3. 

  Or /dev/ttyS0 and /dev/ttyS2, as they'll be known to cygwin.

> Speaking of Windows' DM, it's rather quirky on the serial
> ports : I noticed
> that if I unplug my USB cable (COM3) and try to change the
> name of COM1, in
> the drop down box COM3 is listed as "in use" :confused: %-|.

  AAAARGH[*]!  FTDIchip are the bane of my life at the moment.  Buggy drivers.
I hate them so much <spit>.

> - is there a fixed relationship between COM port number "X"
> and dev/ttyS
> number "Y", such as Y = X - 1 ? 

  Yes.

> For instance, if I change my
> COM port number
> from 3 to 7, will the dev/ttyS number go from 2 to 6, 

  Yes.

> Additionally, can you point me to documentation on how to
> retrieve device /
> driver info from my program ? That way, worst case scenario,
> I can have the
> program look for the correct port on its own.

  Don't understand what kind of "device/driver info" you mean here.  You might
be able to use the win32 pnp api functions.

    cheers,
      DaveK

[*] - I just got back from rebooting a testrig that locked up due to buggy
ftdichip drivers at about the twentytwo-hour point into a twentyseven-hour
testrun.  I am not happy.
-- 
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/


- Raw text -


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