beautypg.com

Comtrol RocketPort Series Device Driver for the SCO UnixWare 7 User Manual

Page 3

background image

RocketPort® Series Device Driver for the SCO UnixWare 7 Operating System Software Installation Card

3 of 8

Enabling Ports

To enable a port, enter this command:

pmadm -e -p<port_monitor> -s<service_tag>

For more information, see the man page for pmadm.

Disabling Ports

To disable a port, enter this command:

pmadm -d -p<port_monitor> -s<service_tag>

For more information, see the man page for pmadm.

Viewing Settings

To view the current tty settings for a port, enter this
command:

stty -a < /dev/term/portname

For more information see the man page for stty.

Baud Rate Mapping

UUCP and CU do not support baud rates above 38.4 Kbps.
Therefore, to take full advantage of the RocketPort board’s
potential speed (such as 57.6K, 76.8K, 115.2K, or 230.4K),
you must use one of the following methods to remap baud
rates on one or more ports:

setbaud

This program enables you to remap baud rates for one
or more ports, for the current session only.

Note: 460K is not supported.

baud.init

This command enables you to remap the baud rates
automatically each time the system is rebooted.

Setbaud

Follow these steps to remap baud rates for the current
session.

Note: Baud 50 through 134 are not included in the

/etc/ttydefs file. Setbaud can be used by using the -u
option to set each over 300 or by adding 50, 75, 110,
and 134 to the /etc/ttydefs file.

1.

Disable the ports for which you want to remap baud
rates.

2.

Enter this command:

/comtrol/rckt/setbaud -h /dev/term/portname

The rates are remapped as shown in the following table:

Note: The /etc/ttydefs file does not include the 50 through

134 baud rates. You need to manually add these
baud rates to the file.

3.

Repeat Step 2 for each port for which you are
remapping rates.

4.

Use the normal tty administrative procedure to set the
port to the system rate. The setbaud rate is used
instead.

To map a port to a rate not in the setbaud table, enter this
command:

/comtrol/rckt/setbaud -u /dev/term/portname oldrate
newrate

Where oldrate is the system rate and newrate is the
desired new rate.

To reset a port to standard system rates, enter this
command:

/comtrol/rckt/setbaud -n /dev/term/portname

Baud.init

Follow these steps to permanently remap baud rates:

1.

Edit the /comtrol/rckt/baud.cfg file to list the ports for
which you are remapping baud rates. To use the
remapped rates listed in the setbaud table, simply list
the devices names. For example:

/dev/term/r0a

/dev/

term/r0A

/dev/term/r0b

/dev/

term/r0B

To create a custom mapping scheme, enter the device
name, the old rate, and the new rate the old rate is
mapped to. For example:

/dev/term/r0a 9600 230400

/dev/term/r0A 9600 230400

/dev/term/r0b 9600 230400

/dev/term/r0B 9600 230400

Baud Rate Mapping

System Rate

Setbaud Rate

50

57600

75

76800

110

115200

134

230400