Summary : Console serial comms

Steve Franks (scf@nabaus.com.au)
Tue, 11 Nov 1997 09:05:26 +1100

This is a multi-part message in MIME format.

--Boundary_(ID_d0fOdWVrfRGdjdqCOG6w/Q)
Content-type: text/plain; charset=us-ascii
Content-transfer-encoding: 7bit

Sun Gurus,

Thanks for the responses to my question (copy below).

I was on the right track by modifying ttydefs & eeprom but I should have
power cycled the machine for it to bite.

The preferred console settings are found in a file /etc/ioctl.syscon.

I did not have a parity problem (8,N,1) is fine but for reference,
Solaris (ttymon) ignores prom settings - the prom & ttymon operate
independently with their own agendas.

Another opinion was that I should never change the console settings on
the grounds that should any of the hardware & the new settting goes back
to 9600 I will have to muck around getting everything back to the same
speed.

In my situation, I prefer to go with the higher speed & document any
changes so I can get the benefit of faster scrolling of data on the
console - at 9600 it is annoyingly slow.

There is a useful document on Solaris 2.x Modems & Terminals at :

http://www.stokely.com/unix.serial.port.resources/modem.html

I have looked at this & found it to contain lots of useful bits.

Thanks to :
jyoung@educate.com
Casper Dik <casper@holland.Sun.COM>
Kevin.Sheehan@uniq.com.au
Glenn Satchell - Uniq Professional Services <Glenn.Satchell@uniq.com.au

Steve

> I currently use a CISCO 2509 machine as a terminal server with one port
> acting as a console to a SPARC 20 running Solaris 2.4.
>
> I want to bump the speed of the console to 19200bps from 9600.
>
> I have set the terminal server to 19200 but I am having trouble getting
> intelligible text on the console.
>
> I have tried :
> * changing prom setting for ttya to 19200
> eeprom -- ttya-mode=19200,8,n,1,-
> * changing inittab entry to point to a faster device in /etc/ttydefs
> co:234:respawn:/usr/lib/saf/ttymon -g -h -p "`uname -n` console login:
> " -T sun -d /dev/console -l console5 -m ldterm,ttcompat
>
> where ttydefs extract is ->
> console:9600 hupcl opost onlcr:9600::console
> console1:1200 hupcl opost onlcr:1200::console2
> console2:300 hupcl opost onlcr:300::console3
> console3:2400 hupcl opost onlcr:2400::console4
> console4:4800 hupcl opost onlcr:4800::console5
> console5:19200 hupcl opost onlcr:19200::console
>
> * Changing console entry in ttydefs to 19200
>
> In all cases I get no errors from ttymon or the terminal server but any
> text on the console device is gibberish - looks like what I would expect
> from a line speed mis-match.
>
> I see from the man page for ttydefs that I cannot get Solaris to
> autobaud past 9600 so that is not an option to add to ttydefs.
>
> I have not touched any of the other serial parameters on the terminal
> server or on the SOlaris box.
>
> Does Solaris override the prom settings?
> Does the console have specific requirements that I can't alter?
> Have I missed anything here?

=================================================
Steve Franks
National Australia Bank, Midrange Services

1/216 Victoria Pde ph : +61 3 9208 5794
E Melbourne, Victoria fax : +61 3 9208 5023
Australia 3150 email : scf@nabaus.com.au
=================================================

--Boundary_(ID_d0fOdWVrfRGdjdqCOG6w/Q)
Content-type: MESSAGE/RFC822

Return-path: <scf@nabaus.com.au>
Received: from scf by nabaus.com.au (SMI-8.6/SMI-SVR4) id NAA05802; Fri,
7 Nov 1997 13:08:00 +1100
Date: Fri, 07 Nov 1997 12:40:10 +1100
From: Steve Franks <scf@nabaus.com.au>
Subject: Console serial comms
Sender: n091368
To: sun-managers@ra.mcs.anl.gov
Message-id: <3462717A.175F@nabaus.com.au>
Organization: National Australia Bank
MIME-version: 1.0
X-Mailer: Mozilla 3.0 (X11; I; SunOS 5.5.1 sun4m)
Content-type: text/plain; charset=us-ascii
Content-transfer-encoding: 7bit

Sun Gurus,

I currently use a CISCO 2509 machine as a terminal server with one port
acting as a console to a SPARC 20 running Solaris 2.4.

I want to bump the speed of the console to 19200bps from 9600.

I have set the terminal server to 19200 but I am having trouble getting
intelligible text on the console.

I have tried :
* changing prom setting for ttya to 19200
eeprom -- ttya-mode=19200,8,n,1,-
* changing inittab entry to point to a faster device in /etc/ttydefs
co:234:respawn:/usr/lib/saf/ttymon -g -h -p "`uname -n` console login:
" -T sun -d /dev/console -l console5 -m ldterm,ttcompat

where ttydefs extract is ->
console:9600 hupcl opost onlcr:9600::console
console1:1200 hupcl opost onlcr:1200::console2
console2:300 hupcl opost onlcr:300::console3
console3:2400 hupcl opost onlcr:2400::console4
console4:4800 hupcl opost onlcr:4800::console5
console5:19200 hupcl opost onlcr:19200::console

* Changing console entry in ttydefs to 19200

In all cases I get no errors from ttymon or the terminal server but any
text on the console device is gibberish - looks like what I would expect
from a line speed mis-match.

I see from the man page for ttydefs that I cannot get Solaris to
autobaud past 9600 so that is not an option to add to ttydefs.

I have not touched any of the other serial parameters on the terminal
server or on the SOlaris box.

Does Solaris override the prom settings?
Does the console have specific requirements that I can't alter?
Have I missed anything here?

Any clues would be appreciated.

Thanks,
Steve

=================================================
Steve Franks
National Australia Bank, Midrange Services

1/216 Victoria Pde ph : +61 3 9208 5794
E Melbourne, Victoria fax : +61 3 9208 5023
Australia 3150 email : scf@nabaus.com.au
=================================================

--Boundary_(ID_d0fOdWVrfRGdjdqCOG6w/Q)--