This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Intrfacing USB-serial port
- From: Ahsan Qamar <ahsan_eng at hotmail dot com>
- To: <cygwin at cygwin dot com>
- Date: Wed, 9 Apr 2008 15:24:45 +0500
- Subject: Intrfacing USB-serial port
- References: <1207735258.10162.ezmlm@cygwin.com>
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/