X-Recipient: archive-cygwin@delorie.com
X-Spam-Check-By: sourceware.org
Message-ID: <95455e980802290320l442955cbhee643416669f0a8d@mail.gmail.com>
Date: Fri, 29 Feb 2008 22:20:20 +1100
From: hce <webmail.hce@gmail.com>
To: cygwin@cygwin.com
Subject: Re: Serial port using USB adaptor
In-Reply-To: <20080229094523.GR9539@calimero.vinschen.de>
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
References: <95455e980802281743x3651991av6d87d34b39106332@mail.gmail.com> 	 <20080229094523.GR9539@calimero.vinschen.de>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@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

On 2/29/08, Corinna Vinschen <corinna-cygwin@cygwin.com> wrote:
> On Feb 29 12:43, hce wrote:
>  > Hi,
>  >
>  > I  have a linux serial port problem compiled by Cygwin on window, it
>  > runs fine if it connects a 9-pin serial cable and the device name is
>  > /dev/ttyS0 (it does not work with com1, I have to translate it to
>  > /dev/ttyS0). The problem is when I run the program in a PC without a
>  > physical 9-pin serial port on hardware:
>  >
>  > (1) If there is no USB Serial adaptor connected, it still opens
>  > /dev/ttyS0 without any errors. Then, it sends data to that port, and
>  > timeout (does not work).
>  >
>  > (2) If I plug a USB-Serial adaptor and change the device name to
>  > /dev/ttyUSB0, it opens that port witout problem but cannot connect to
>  > the serial device.
>
>
> /dev/ttyUSB0 works?!?  It's no device name recognized by Cygwin, so
>  I assume you created a file on the disk called /dev/ttyUSB0 when
>  using it.

It was copied from Linux.

>  My knowledge about serial I/O is rather clumsy, but isn't there a
>  virtual COM port attached, or can't you attach a virtual COM port to
>  your USB I/O?  AFAIK, you should find something like, say, COM9, which
>  would be available as /dev/com9 or /dev/ttyS8.

My knowledge to Window machine is also limited. So, I should open
/dev/com9 or /dev/ttyS8 regardless it is connected to a serial cable
or a USB serial adaptor. I don't have the Window machine at home, I'll
try next day.

Thank you Corinna.

Jim

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

