Subject: Re: Serial port settings
To: Dan Adelman <dan@kdhx.org>
From: None <collver@linuxfreemail.com>
List: port-i386
Date: 01/20/2002 00:18:04
On Sun, Jan 20, 2002 at 02:38:48AM -0000, Dan Adelman wrote:
> I'm running netbsd on an intel 810 board, and I'm having problems setting 
> up the serial port to send data.  The device I'm sending to will not be 
> sending any data back, or even acknowledging the connection.  It's attached 
> to /dev/tty00  I've tried to use stty to set the speed, etc. but to no 
> avail.  If I type:
> 
> stty -f /dev/ttys00 19200

try /dev/tty00 instead of /dev/ttys00

> 
> it appears to set the speed (stty does not report any error) but a 
> subsequent:
> 
> stty -a -f ./dev/tty00

try /dev/tty00 instead of ./dev/tty00

> 
> tells me that the speed actually has not been changed!  However, if I set 
> up tty00 in /etc/remote like so:
> 
> com0:dv=/dev/tty00:br#19200:dc:hf:pa=none:hd:
> 
> and then do "tip com0" the connection opens at the correct speed and the 
> data I type gets sent.  What am I doing wrong with stty?

Some serial settings get reset when the serial port is closed, and speed is
one of them.

try:

sleep 100 </dev/tty00 &
stty -f /dev/tty00 speed 19200
stty -a -f /dev/tty00


Ben
  __
 (oO)  Pikuthulhu, I choose you!
 /||\