Setting serial ports to 19.2 KB

David W. Berry dwb at archer.apple.com
Tue Jun 13 07:28:27 AEST 1989


In article <273 at radar.UUCP> donn at radar.UUCP (Donn S. Fishbein) writes:
>Does anyone know how to set the serial ports to 19200 baud?
	If you have a dial in line (or for that matter a direct connect
line) that you want to run at 19200, you'll have to edit /etc/gettydefs
to add a at_19200 or mo_19200, line and link it into the autobaud sequence.
You can then change /etc/inittab to set the default for the line to the
added entry.

	If you want it for uucp, you should be able to set the speed
in the L.sys and L-devices files to 19200 and have it work as expected.
If you want it for cu or tip you're out of luck since they don't understand
anything more than 9600.  Kermit also doesn't understand 19200 or 38400
(also possible) but since we ship the source for them that can be remedied.

	Unfortunately, the experiment you tried is rather fruitless because
the tty gets set back to it's default state whenever it's not open.  You
change the parameters, the command completes, the tty gets closed and reset
to defaults, you execute another command to find out it's state.  What you
were trying to accomplish can be done by:

	( stty 19200 ; sleep 3600 ) < /dev/tty0 &

This forces the tty to be kept open, and thus the stty changes will "stick"



More information about the Comp.unix.aux mailing list