Configuring a Device for a Modem

Use this procedure to configure a RealPort device for a Dial-in/Dial-out modem connection. Configuring a device for a modem requires familiarity with both the operating system and the modem being used. While the following procedure is sufficient for most cases, it may be necessary to take additional steps to properly configure your modem or to set up the operating system for a specific application.

Procedure

  1. Connect a proper cable between the port and modem. See the Digi One RealPort and PortServer Cable Guide.
  2. Log on as root and enter this command:

    set port ra=## dev=prn

    where ## is the port (number) to which the modem is attached.
  3. Set the port to dev=rp on the PortServer by entering this command at the root prompt:

    set port dev=rp ra=12

    This example sets PortServer port 12 to be a RealPort device.

    Note: If your Digi One RealPort or PortServer firmware does not support the dev=rp option, use dev=prn instead.
  4. On the HP-UX server, use vi to enable the new modem entries in the /etc/inittab file for dial-in. Here are examples of two entries for Digi RealPort ports:

    Xx01:23:off:/etc/getty ttya12 H
    Xx02:23:off:/etc/getty ttyb02 H
  5. Change the word off to respawn for each port you want enabled. For example:

    Xx01:23:respawn:/etc/getty ttya12 H
    Xx02:23:respawn:/etc/getty ttyb02 H


    Note: The numbers associated with each "tty" represent port number (ttya01 is Port 1, ttya08 is Port 8).
  6. The last number or letter (H in the previous example) is an index into the /etc/gettydefs file, which may be set to any of the allowable baud rates (check your operating system's manual.). In this case, H specifies 9600 baud, 8 data bits, 1 stop bit, and no parity.
  7. Enter this command at a root prompt: init q
  8. Modify the file /usr/lib/uucp/Devices.  Add an entry for the device at the end of the file like this:

    Direct cua12 - 38400 direct
  9. Comment out any ACU lines relating to this device until dialin is working properly.

    Note: An ACU line is necessary for correct operation of the modem in dialout applications. Refer to your modem manual or to the modem manufacturer for the correct initialization string to use for your modem. Refer to your operating system documentation for guidance on setting up an appropriate ACU entry that uses this initialization string.
  10. Connect to the modem by entering this command at a root prompt:

    cu -l /dev/cua12 -s 38400
    at&w [train modem to port speed]


    Note: In HP-UX, the TTY device name is for dial-in, the cu name is for dial-out.
  11. To exit cu, enter:

~. (a tilde followed by a period)