This is the mail archive of the
cygwin@sources.redhat.com
mailing list for the Cygwin project.
RE: accessing serial ports with cygwin
- To: "'Frank Wagner'" <f dot wagner at gmx dot net>, cygwin at sourceware dot cygnus dot com
- Subject: RE: accessing serial ports with cygwin
- From: "Richard Hellicar (EML)" <Rick dot Hellicar at eml dot ericsson dot se>
- Date: Tue, 1 Aug 2000 10:40:13 +0200
> Hello,
>
> I try to access the serial ports with cygwin under Windows95.
> To do this I don't know wether I have to use the functins that are
> included in
> dos.h and conio.h that is part of the mingw system or wether there are
> equal
> header files that belong to cygwin directly.
> Is there any documentation that describes the funktions included in the
> header files that come with the cygwin distribution.
>
There's a very helpful document called "Serial Programming Guide for POSIX Operating Systems" (5th Edition, Michael Sweet http://www.easysw.com/~mike/serial/index.html). You have to change the device names to com1, etc., but it works well (at least in Windows NT 4). I seem to remember having a couple of problems - I think that ioctl() didn't report the right number of bytes in the input buffer, but I could be remembering it wrong.
Rick
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com