This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: setting baud for USB serial adaptors
- From: tns1 <tns1 at cox dot net>
- To: cygwin at cygwin dot com
- Date: Sun, 23 Oct 2005 09:31:36 -0700
- Subject: Re: setting baud for USB serial adaptors
- References: <djeqdi$tdj$1@sea.gmane.org>
tns1 wrote:
WinXP SP2, cygwin 5.19 snapshot
Once I grabbed the latest cygwin snapshot and made sure I had the
coreutils 5.9xxx, I could finally use stty to set the baud of my
built-in COM port, but it does not work for my USB serial adaptors. Any
ideas?
After more reading, I see that the newer functions cfsetispeed(),
cfsetospeed() do work for setting the baud on my USB serial adaptors.
Masking c_cflag directly (old style) works for standard built-in COM
ports. It looks as if stty can only set/report the baud in c_cflag.
--
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/