Setting Up a Bidirectional Modem
To set up a bidirectional modem you need information for these variables:
- port-name Which port the modem is connected to (typically, ttya or ttyb).
- svctag The name of the port monitor service (for Sun systems, zsmon)
- port-device-name The name of the device for the port (typically /dev/cua/a or /dev/cua/b).
- short-port-device-name The name for the port without the complete path.
- modem-label The entry in the /etc/ttydefs file that is used to set the proper baud rate and line discipline.
- modem-type The type of the modem from the /etc/uucp/Dialers file. For example, the type for a Hayes modem is hayes.
Follow these steps to configure a modem:
- 1. Halt the system.
- 2. Make sure hardware carrier detect is disabled. On Sun systems, you can use the eeprom command or type setenv ttyb-ignore-cd=false and press Return.
- 3. Reboot the system.
- 4. Connect the modem and make sure any modem switches are set to allow bidirectional use.
- 5. To remove the existing service for the port name so that the modem can be connected, type pmadm -r -p svctag -s port-name, and press Return. If you get the message Invalid request, svctag does not exist, the svctag port monitor is not configured. To configure the svctag port monitor, type sacadm -a -p svctag -t ttymon -c /usr/lib/saf/ttymon -v 'ttyadm -V' and press Return.
- 6. To set up the port monitor for use with the modem, type pmadm -a -p zsmon -s ttyb -i root -fu -v 1 -m "`ttyadm -b -d /dev/term/b -1 contty3H -m ldterm,ttcompat -s /usr/bin/login -S n'" and press Return. The -b option sets the bidirectional flag. The -m options specify STREAMS modules to be pushed.
- 7. To make sure the /etc/remote file has an entry for /dev/cua/n and that it is set to the correct baud rate, type grep cuan /etc/remote and press Return. In this example, the information for cuab is correct:
# grep cuab /etc/remote
cuab:dv=/dev/cua/b:br#2400*
#
If the entry is not in the /etc/remote file, edit the file and add the entry.
- 8. Edit the /etc/uucp/Devices file and add this entry:
ACU term/short-port-device-name,M - modem-label modem-type
Follow these steps to configure a bidirectional Hayes-compatible modem for dialing in and dialing out on serial port B. The default switch settings for a Hayes Smartmodem 2400 work properly:
- 1. Halt the system.
- 2. Hardware carrier detect must be disabled. To reset the PROM setting to disable hardware carrier detect on Sun systems, type setenv ttyb-ignore-cd=false and press Return.
- 3. Reboot the system.
- 4. Connect the modem and make sure any modem switches are set to allow bidirectional use. Note that the Hayes Smartmodem 2400 requires no changes to the default switch settings to work properly. Connect the modem cable to serial port B.
- 5. To remove the existing service for ttyb so that the modem can be connected, type pmadm -r -p zsmon -s ttyb and press Return. If you get the message Invalid request, zsmon does not exist, the zsmon port monitor is not configured. To configure the zsmon port monitor, type sacadm -a -p zsmon -t ttymon -c /usrlib/saf/ttymon -v 'ttyadm -V' and press Return.
- 6. To set up the port monitor for use with the modem, type pmadm -a -p zsmon -s b -i root -fu -v 1 -m "'ttyadm -b -d /dev/cua/ b -l contty3H -m ldterm,ttcompat -s /usr/ bin/ login -S y'" and press Return. The -b option sets the bidirectional flag. The -m options specify STREAMS modules to be pushed.
- 7. To make sure the /etc /remote file has an entry for /dev/cua / b and that it is set to the correct baud rate, type grep cuab /etc /remote. If the following information is displayed, the entry 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 /etc /uucp/Devices file and type ACU term / b,M - contty3H hayes.
Using a Modem
To connect through the modem, type tip - baud rate phone number and press Return. With the Hayes Smartmodem 2400, this command dials and connects to the system. When the software on the connecting system is configured properly, the remote system dials the modem phone number and the modem answers automatically.
This example uses the information phone number, which is not a dial-in modem number:
oak% tip -24ØØ 5551212
dialing ... connected
<Login messages>