X-Spam-Check-By: sourceware.org To: cygwin AT cygwin DOT com From: Eric Blake Subject: Re: Set serial port arttributs under cygwin Date: Fri, 6 Jan 2006 05:09:02 +0000 (UTC) Lines: 20 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit User-Agent: Loom/3.14 (http://gmane.org/) X-IsSubscribed: yes 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 steven woody 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/