Configuring Serial Ports
Previous Topic  Next Topic 

Serial Ports are configured in the inittab (/etc/inittab)


An example entry to respawn tty2 to D3 port 1 is:


a1:2:respawn:d3 -n pick0 1 -t tty2


The label a1 is a unique two character ID. The d3 command follows

the standard syntax defined in the D3 Reference Manual (section:

UNIX, topic: d3) where -n pick0 identifies the D3 configuration

file, the digit 1 specifies the D3 PIB or port number, and the

-t tty2 identifies the tty to which the D3 process is attached.


Setting Parameters for Serial Lines

In the /usr/lib/pick directory, create a new subdirectory named pick_term.


The pick_term directory will contain files that have serial configuration parameters for D3 lines. The name of each file is the PIB number that it represents.


If the PIB is number 5, the file name will be 5, and the full path to the file would be: /usr/lib/pick/pick_term/5. The files within the newly created pick_term directory contain all of the configuration parameters needed for the serial line they represent.


To set a nailed serial line to use the default parameters


If a file has not been created to use the pick_term directory for a

nailed serial line, the system assigns the default parameters.

Both examples below are using a serial line on tty5 and PIB5.


1. Starting a nailed serial line to use the default parameters:


Example:


a5:2:respawn:/usr/bin/d3 -n pick0 5 -t tty5


Omitting the -T option from the command line in the inittab file sets the serial line to use the default parameters.


2. Starting a nailed serial line to use the configuration parameters stored in the pick_term directory:


Example:


a5:2:respawn:/usr/bin/d3 -n pick0 5 -t tty5 -T


Adding the -T option to the command line in the inittab file sets the serial line to use the configuration stored in the pick_term directory.


To create the files in the pick_term directory using the set-port command


The files in the pick_term directory contain stty serial configuration commands, and can be created and populated manually using the set-port command. When you use the set-port command to create the files for the pick_term directory, if a file does not already exist one will be created. If a file does exist, the existing configuration will be overwritten.