### Configuring a Modem

Use these procedures to configure a Digi RAS device for a Dial-in/Dial-out modem connection.

#### Procedures

##### Configure the UNIX Device

1. Set the permissions and ownership of the new devices by entering the following commands at the root prompt:

   `chmod a+rw /dev/ttyh*
   chown uucp:uucp /dev/ttyh*`

2. Using a text editor, open the /etc/inittab file on the SCO OpenServer system. Locate the line for the device you wish to configure. If the device has just been installed, there will be a letter, m, at the end of that device's inittab entry. This sets the device to the UNIX default DTE rate of 9600 bps. (See the file, /etc/gettydefs, for inittab letter and number definitions.)
3. Edit the inittab entry, changing the letter or number at the end of the line to the letter, q. This sets the device to a DTE rate of 115200 bps.

   Note: The DTE rate is the data rate between the system and the modem. For Digi RAS products, 115200 is a good DTE rate to use.

4. Disable logins on the device by entering the following command:

   `disable device_name`

   where `device_name` is the name of the device.

5. Edit the file /usr/lib/uucp/Devices. Add a Direct line for the device:

   `Direct device_name - 115200 direct device`

   The "`D`" in `Direct` must be the first character on the line.

##### Configure Modems for Dial-in

1. Comment out any ACU lines relating to this device until dial-in is working properly.

   Some applications may require an ACU entry in the Devices file. If an application requires an entry, refer to the modem manual or to the modem manufacturer for the correct modem initialization string, and to the SCO Administration handbook for guidance on setting up an appropriate ACU entry that uses this initialization string.

2. Connect to the modem. At a root prompt, enter this command

   `cu -l /dev/device_name -s 115200`

   where `device_name` is the name of the non modem control device for the port.

3. Enter any other desired modem commands.
4. Disconnect from the modem by entering a tilde-period:

   `~.`

5. To add dial-in capability, enable logins by entering this command at a root prompt:

   `enable device_name`