X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org Message-ID: From: Ahsan Qamar To: 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> Content-Type: text/plain; charset="iso-8859-1" MIME-Version: 1.0 X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Content-Transfer-Encoding: 8bit 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/