Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com To: cygwin AT cygwin DOT com From: tns1 Subject: Re: setting baud for USB serial adaptors Date: Sun, 23 Oct 2005 09:31:36 -0700 Lines: 14 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.2) Gecko/20040804 Netscape/7.2 (ax) In-Reply-To: X-IsSubscribed: yes 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/