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 Date: Mon, 1 Aug 2005 15:23:53 +0100 (BST) From: Michael McCarthy 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: References: <42EA870C DOT 4070403 AT gmx DOT net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed 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 . 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/