Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm Sender: cygwin-owner AT sourceware DOT cygnus DOT com Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com From: Chris Faylor Date: Fri, 16 Apr 1999 14:59:04 -0400 To: Steve Horne Cc: cygwin AT sourceware DOT cygnus DOT com Subject: Re: help with serial ports Message-ID: <19990416145904.B1076@cygnus.com> References: <199904160246 DOT WAA12179 AT diamond DOT astex DOT com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.3i In-Reply-To: <199904160246.WAA12179@diamond.astex.com>; from Steve Horne on Thu, Apr 15, 1999 at 10:46:59PM -0400 Try the January 15th snapshot. -chris On Thu, Apr 15, 1999 at 10:46:59PM -0400, Steve Horne wrote: >I'm using Beta 20.1 from >ftp://go.cygnus.com/pub/sourceware.cygnus.com/cygwin/cygwin-b20/ >running on w95. I'm trying to talk to the serial port >from what I hoped would be a simple C program. > >I have been looking through the archives, FAQS & etc and >have not yet figured out how to access a serial port. > >Neither open("COM1:"...) (or 2, with or without colon) or > open("/dev/com1"...) > > >seems to work. (The call returns failure.) >Also, "cat /dev/com1" from the bash shell >gives a file protection error of some sort. > (sorry, I'm not at work & don't have exact text) > >I used version 19 successfully for another project (with no serial port I/O) > but it had the same problems as V 20. I had hoped upgrading would help, >but no luck. > >If someone could send me a code fragment that has worked for >them I would be grateful. -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com