delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/04/21/13:39:08

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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
From: "Dave Korn" <dk AT artimi DOT com>
To: <cygwin AT cygwin DOT com>
Subject: RE: stty under cygwin
Date: Wed, 21 Apr 2004 18:36:32 +0100
MIME-Version: 1.0
In-Reply-To: <20040421163456.GB26629@coe.bosbc.com>
Message-ID: <NUTMEGUcnx05lbvTvCv0000054f@NUTMEG.CAM.ARTIMI.COM>
X-OriginalArrivalTime: 21 Apr 2004 17:36:32.0140 (UTC) FILETIME=[2F752CC0:01C427C7]

> -----Original Message-----
> From: cygwin-owner  On Behalf Of Christopher Faylor
> Sent: 21 April 2004 17:35

> On Wed, Apr 21, 2004 at 04:55:31PM +0100, Dave Korn wrote:
> >> From bertrand marquis
> >> Sent: 21 April 2004 16:41
> >
> >> i need to use stty to send commands through the serial port 
> >> under cygwin:
> >
> >  That's not what stty is for.
> >
> >> stty 
> >> 1:0:cbd:0:3:1c:7f:15:4:5:1:0:11:13:1a:0:12:f:17:16:0:0:0:0:0:0
> >> :0:0:0:0:0:0:0:0:0:0 
> >> < /dev/ttyS0
> >> 
> >> but stty answer me that 1:...:0 is a wrong argument ?
> >> I'm using the last version of cygwin and the serial port is working
> >> 
> >> anyone has an idea ?
> >
> >#1:  You've completely misunderstood stty.  It allows you to 
> set parameters
> >such as baud rate, flow control, char translation, etc. for 
> a serial port.
> >It's not for sending data in or out of it.
> >
> >#2:  That string of colon-separated hex numbers doesn't mean 
> anything to
> >stty.  None of the arguments it understands come in that form.
> 
> Actually this looks like a standard way to save and restore tty state.
> You take the output from 'stty -g' and use it for input to stty later.
> Try it.

  Oooh!  That's new on me, and not something that's very obvious from the
help output or the man page or info at a brief scan through.  A slightly
under-documented feature!

> I suspect that the OP is trying to take stty output from linux and use
> it on cygwin, though.  That won't work.

  My real problem with understanding his post was the wording "send commands
*through* the serial port".  I expected that to mean sending commands
through the serial port (to some connected device) rather than *to* the
serial port.  Such are the problems of international communication.... :)


    cheers, 
      DaveK
-- 
Can't think of a witty .sigline today....


--
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019