Configuring a Device for a Modem
Use this procedure to configure a Digi 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
- On the HP-UX server, edit the /etc/inittab file to add new
modem entries for dial-in. Here are examples of two entries for
Digi serial ports:
Xx01:23:respawn:/etc/getty ttyc23 38400
Xx02:23:respawn:/etc/getty ttyn12 38400
Notes:
- The id field (the first field) for an /etc/inittab entry must
be from one to four characters long and it must be unique. The
word, respawn, in the third field means that the port will be
enabled for login. For more information, consult your HP-UX
documentation or consult man pages for
inittab.
- The tty devices with an uppercase letter after the "tty" are
most commonly used for dial-in. See Device Names for a description of
dial-in and dial-out devices and naming conventions.
- The last number in this example, 38400, is an index into the
/etc/gettydefs file. Entries other than 38400 may be
used. Consult your HP-UX documentation for more
information.
- Enter this command to force the /etc/inittab changes you made
in the previous step to take effect:
init q
- Modify the file /usr/lib/uucp/Devices. Add an entry for
the device at the end of the file like this:
Direct ttyc23 - 38400 direct
Note: The tty devices with a lowercase letter after the
"tty" are most commonly used for dial-out. See Device Names for a description of
dial-in and dial-out devices and naming conventions.
- Connect to the modem by entering this command at a root prompt:
cu -l /dev/ttyn12 -s 38400
Once connected, enter the following AT modem command to
train the modem to the port speed:
at&w
- To exit cu, enter:
~. (a tilde followed by a period)