delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2008/02/28/20:44:08

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Message-ID: <95455e980802281743x3651991av6d87d34b39106332@mail.gmail.com>
Date: Fri, 29 Feb 2008 12:43:23 +1100
From: hce <webmail DOT hce AT gmail DOT com>
To: cygwin AT cygwin DOT com
Subject: Serial port using USB adaptor
MIME-Version: 1.0
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.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

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.

Any advice please.

Thank you.

Kind Regards,

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/

- Raw text -


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