delorie.com/archives/browse.cgi | search |
X-Spam-Check-By: | sourceware.org |
To: | cygwin AT cygwin DOT com |
From: | Eric Blake <ebb9 AT byu DOT net> |
Subject: | Re: Set serial port arttributs under cygwin |
Date: | Fri, 6 Jan 2006 05:09:02 +0000 (UTC) |
Lines: | 20 |
Message-ID: | <loom.20060106T060325-152@post.gmane.org> |
References: | <ed4892840601052037j4a3d04b1v12ba88d531d6e451 AT mail DOT gmail DOT com> |
Mime-Version: | 1.0 |
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: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
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 <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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |