Configuring a Device for a Printer

Use this procedure to configure a Digi serial device for a printer. Consult your operating system documentation for more information on configuring a serial device for a printer.

Procedure

  1. Connect a proper cable between the port and printer. 
  2. If you are using 8-pin RJ-45 cabling from the Digi serial port to the modem, enable altpin by inserting a ditty command or altpin option to an existing ditty command for the port in the file /dev/rc.d/8/userdef.

    Example

    ditty altpin device

    where device is the name of the Digi device.

    Note: By inserting the command in the startup file, it will execute every time the system is booted. For the altpin option to take effect immediately, enter the ditty altpin command at a UNIX prompt.

  3. Insert either of following commands at the end of the file /etc/rc.d/8/userdef:

    cat < /dev/device > /dev/null &

    or

    sleep 999999 < /dev/device &

    These commands force the specified port to stay open, thus preserving any "non-sticky" options. Substitute your port name in the command.

  4. Insert any other necessary ditty commands at the end of the file /etc/rc.d/8/userdef. The command ditty can be used to change the settings of a port. For additional information on ditty, see Setting TTY Options.

    As an example, the following command will set the port ttya01 to a speed of 38400, disable software flow control, and enable hardware flow control on the port:

    ditty 38400 -ixon -ixany -ixoff ctspace device

    By placing the ditty command in /etc/rc.d/8/userdef, it will be executed whenever the system is booted.

  5. Reboot the system or enter the ditty command manually for the new settings to take effect.