Previous Table of Contents Next


Modem Connection and Switch Settings

Connect the modem to a serial port with an RS-232-C cable that has pins 2 through 8 and pin 20 wired straight through. You may also use a full 25-pin cable to connect the modem to the system. Ensure that all of the connections are secure.

SunOS 5.x system software supports many popular modems. The following modems have been tested and qualified for use with Solstice PPP:

  AT&T DataPort Express
  BocaModem V.34 DataFax
  Cardinal V.34/V.FC 28.8 data/fax
  Cardinal MVP288I 28.8 Kbps V.34 Fax Modem
  Hayes Accura 144B and 288V.FC
  Megahertz XJ2288 PCMCIA
  Motorola Codex 326X V.34
  MultiModem MT2834BLF
  MultiModem MT1432BF
  Olitec 288
  Practical 14400 V32bis
  SupraFaxModem 288
  USRobotics Sporter 14400
  USRobotics Sporter 288
  USRobotics Courier V.34
  Zoom V34


NOTE:  This information does not imply a support contract or warranty from Sun Microsystems, Inc. for any of the listed devices.

Hayes-compatible Modem Settings

Hayes-compatible modems that use the Hayes AT command set may work with cu and uucp software. Use the following configurations:

  Use hardware data terminal ready (DTR). When the system drops DTR (for example, when someone logs off), the modem should hang up.
  Use hardware carrier detect (CD). The modem raises the CD line only when there is an active carrier signal on the phone connection. When the carrier drops, either because the other end of the connection is terminated or the phone connection is broken, the system is notified and acts appropriately. The CD signal is also used for coordinating dial-in and dial-out use on a single serial port and modem.
  Respond with numeric result codes.
  Send result codes.
  Do not echo commands.

Variables Used to Set Up Modems

To set up a dial-in or a bidirectional modem, you need information for the following variables:

• svctag The name of the port the modem is connected to (typically ttya or ttyb).
• pmtag The name of the port monitor service (for Sun Microsystems, zsmon).
• dev-path The name of the device for the port (typically /dev/term/a or /dev/term/b).
• ttylabel The entry in the /etc/ttydefs file that is used to set the proper baud rate and line discipline.
• type The type of the modem from the /etc/uucp/Dialers file--for example, the type for a Hayes modem is hayes.

SAF Configuration for Modems

To configure the SAF for modems, you must use the pmadm and ttyadm commands. You can use the Admintool: Serial Ports graphical user interface to configure SAF for modems on a local system. See “Using Admintool: Serial Ports to Configure Modems” on page 197 for more information.

Follow the steps in this section to set up the SAF to use a modem for dial-in or bidirectional service.

1.  Become superuser.
2.  Type pmadm -l and press Return. A list of all of the available port monitors is displayed. Note the PMTAG, PMTYPE, and SVCTAG values for the modem port. Substitute these values for the appropriate variables in the next steps.
3.  Type pmadm -r -p pmtag -s svctag and press Return. You must remove the existing configuration for the service tag before you can create a new one. If the message Invalid request, pmtag: not found comes up, then the port monitor is not configured. Continue to the next step.
4.  To set up the port monitor for use with the modem, type pmadm -a -p pmtag -s svctag -i root -fu -v `ttymon -V` -m ”`ttyadm -t terminfo-type -b -d dev-name -l ttylabel -m ldterm,ttcompat -s /usr/bin/login -S n`” and press Return. The -a option adds the service, the -p option specifies the port monitor tag, the -s option specifies the service tag, and the -i option sets root as the ID of the owner. The -fu option creates a utmp directory for the service, the -v option specifies the version number, and the -m option specifies the information specific to the port monitor using input from the ttyadm command. The ttyadm -t option specifies the type of the terminal, as specified by the terminfo database; the -b option specifies that the service is bidirectional; and the -d option specifies the device name. The -l option specifies the tty label; the -m ldterm,ttcompat command specifies the STREAMS modules to be pushed; the -s option specifies a login service; and the -S n option sets the hardware carrier on.
5.  Type pmadm -l and press Return. Check the output to ensure that you configured the port monitor service properly.
6.  Type grep cuan /etc/remote. This entry in the /etc/remote file sets the correct baud rate for the port. In this example, the information for cuab is correct:
# grep cuab /etc/remote
cuab:dv=/dev/cua/b:br#24ØØ
#

If the entry is not in the /etc/remote file, edit the file and add it.
7.  If using the port for uucp, edit the /etc/uucp/Devices file and add the following entry, where n is the name of the device in the /dev/term directory (for example, b for /dev/term/b):
ACU term/n,M - ttylabel type


Previous Table of Contents Next