This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Accessing RS-232 serial port under Cygwin


On 2007-07-27, Mike Fahlbusch wrote:
> ask.teddy wrote:
>
>> I want to write a C program which runs on a desktop computer and talks
>> to a device over the RS-232 serial port. I'm using WinXP + Cygwin, and
>> sometimes Ubuntu Linux. I hope this program can be ported to either OS
>> with the least modification at the source level. How can I use a C
>> program to access the serial port under Cygwin?
>
> This link will get you off to a good start:
>
> http://www.google.com/search?q=serial+C+unix+program

Note that Cygwin supports the termios(3) interface but not the 
ioctl(2) interface for controlling serial ports.  Using termios(3) 
should allow you to use the same source on either Cygwin or Linux, 
at least for the serial port control.

Regards,
Gary

--
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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]