delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2008/04/09/06:25:24

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Message-ID: <BLU116-W54C891EB9E64C82DF32DE789ED0@phx.gbl>
From: Ahsan Qamar <ahsan_eng AT hotmail DOT com>
To: <cygwin AT cygwin DOT com>
Subject: Intrfacing USB-serial port
Date: Wed, 9 Apr 2008 15:24:45 +0500
In-Reply-To: <1207735258.10162.ezmlm@cygwin.com>
References: <1207735258 DOT 10162 DOT ezmlm AT cygwin DOT com>
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-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 m39APN0B010097

Hi

I am trying to interface a Pan tilt camera which comunicates serially. however I had to use a USB-serial adaptor because of not having a built in serial port.

According to my knowledge from Cygwin mailing list, USB-Serial COM2 should be accessed as /dev/ttyS1. I tried

1. echo test> /dev/ttyS1 and cat /dev/ttyS1 but it doesnt work (cat has to be interrupted)
2. echo test> /dev/ttyUSB1 and cat /dev/ttyUSB1 which works
3. I am not able to configure /dev/ttyUSB1 for baud rate etc

I use a library which communicates with the camera serially, and the library is giving me error of not being able to open the port in the following function either way

        if(cam1->Open(1,"/dev/ttyUSB1") != 1) or
        if(cam1->Open(1,"/dev/ttyS1") != 1)

How should I access the USB-Serial COM2 since I suspect the problem lies in port settings or configuration. Is it because of port number or port permissions?
-------
Ahsan Qamar


_________________________________________________________________
Connect to the next generation of MSN Messenger 
http://imagine-msn.com/messenger/launch80/default.aspx?locale=en-us&source=wlmailtagline

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