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: Set serial port arttributs under cygwin


steven woody <narkewoody <at> gmail.com> writes:

> 
> Hi,
> 
> under cygwin, how can i set a serial port's attributes? such as,
> speed, trun on or turn off hardware flow control. thanks

A little more googling would show that you are not the first person to ask this
question.  The short answer is the same way as you would on Linux.  From the
command line, 'stty -F /dev/ttyS0' works pretty well.  From C code, functions
like ioctl() and tcgetattr() do the trick.

Therefore, since it is like Unix, it is no longer a cygwin-specific question,
and you might find relevant information from searching more than just the cygwin
list.

--
Eric Blake




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