www.delorie.com/archives/browse.cgi | search |
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 |
Date: | Mon, 1 Aug 2005 15:23:53 +0100 (BST) |
From: | Michael McCarthy <mccarthy AT cs DOT bris DOT ac DOT uk> |
To: | henning AT hhschmidt DOT de |
cc: | cygwin AT cygwin DOT com |
Subject: | RE: Serial Port Problems |
In-Reply-To: | <42EA870C.4070403@gmx.net> |
Message-ID: | <Pine.LNX.4.61.0508011520430.13829@zeta.cs.bris.ac.uk> |
References: | <42EA870C DOT 4070403 AT gmx DOT net> |
MIME-Version: | 1.0 |
X-Spam-Score: | -2.8 |
X-IsSubscribed: | yes |
On Fri, 29 Jul 2005, H. Henning Schmidt wrote: > You can configure your serial port -attached file-desc to return after one > single byte or after a timeout by configuring the appropriate members of the > struct termios -member <c_cc>. Read > http://www.easysw.com/~mike/serial/serial.html for details. > > ;Henning Thanks Henning! Got it working by adding the following to the settings I already had: // ignore modem control lines and enable the receiver tios.c_cflag |= (CLOCAL|CREAD); // minimum number of characters before read() returns tios.c_cc[VMIN] = 6; Kind regards, Mike McCarthy -- 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 |