Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Message-ID: <20001102224832.20902.qmail@web5205.mail.yahoo.com> Date: Thu, 2 Nov 2000 14:48:32 -0800 (PST) From: David Weekly Subject: Serial Support? To: cygwin AT sources DOT redhat DOT com MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Hello, folks! I've looked everywhere, but I haven't been able to yet find an answer to this simple problem: I'd like to read in lines of canonical input from the serial port under Windows using cygwin. I wrote some code for Linux that worked fabulously (courtesy the Serial-Programming HOWTO) and I thought I could just change /dev/ttyS0 to COM1 and be all set. Unfortunately, it doesn't work - I'm not able to read in text from the GPS unit over COM1. All that I was able to find on the web were a few people asking effectively the same thing and not getting answered. This isn't very fancy - I'm just looking for a way to grab a line of text from the serial port! =) Ideally, the code would be cross-platform, with just a block like this at the top: #ifdef WIN32 #define SERIALPORT "COM1" #else #define SERIALPORT "/dev/ttyS0" #endif Any ideas? Thanks! -david __________________________________________________ Do You Yahoo!? From homework help to love advice, Yahoo! Experts has your answer. http://experts.yahoo.com/ -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com