Configuring a Device for a Printer

Use this procedure to configure a RealPort device for a printer. See your Solaris documentation for more information on configuring a serial device for a printer.

The PortServer and RealPort should be properly installed, configured and functioning before proceeding.

Procedure

  1. Connect a proper cable between the port and printer. 
  2. Set the port to dev=prn on the PortServer by entering this command at a PortServer root prompt:

    set port dev=prn ra=12

    This example sets dev=prn for port 12 of a PortServer.

  3. If you are using 8-pin RJ-45 cabling from the PortServer to the terminal, set the port to altpin=on by entering this command at a PortServer root prompt:

    set port altpin=on ra=12

    This example sets altpin=on for port 12 of a PortServer.

  4. Set flow control on the port to match the printer settings.

    To set hardware flow control on the port (which is more stable than software flow control), edit the file /etc/rc2.d/S99digi (create it if necessary) and add the following commands:

    cat < /dev/dty/a001s > /dev/null &
    ditty ctspace -ixon -ixoff -ixany /dev/dty/a001s

    To use software flow control, edit the file /etc/rc2.d/S99digi (create the file if necessary) and add the following commands:

    cat < /dev/dty/a001s > /dev/null &
    ditty ixon ixoff -ixany /dev/dty/a001s