Subject: Re: Serial port settings
To: Dan Adelman <dan@kdhx.org>
From: Rafal Boni <rafal@mediaone.net>
List: port-i386
Date: 01/20/2002 00:00:10
In message <20020120023848.11093.qmail@mail5.cybercon.com>, you write: 

[...]
-> stty -f /dev/ttys00 19200
-> 
-> it appears to set the speed (stty does not report any error) but a 
-> subsequent:
-> 
-> stty -a -f ./dev/tty00
-> 
-> tells me that the speed actually has not been changed!  

The problem is that the port is closed in between the invocations of stty
and hence reverts to it's default settings.  If you had kept /dev/ttys00
open the whole time, the change would have stuck.

--rafal

----
Rafal Boni                                                  rafal@mediaone.net