Adding and configuring modems

Testing your modem connection

Follow these steps to test whether you can send commands to your modem:

  1. Log in as root.

  2. Add a Direct line entry for your modem to the /etc/uucp/Devices file if one does not already exist. You can specify either the modem or the non-modem control device for the port to which the modem is attached. For example, the following Devices entry is for a modem connected to a single port on COM1:
    Direct	term/00m - 9600 direct

  3. Disable ttymon using:

    pmadm -d -p ttymonN -s term/00m

  4. Establish a direct connection to the modem so that you can send commands to it. This connection uses the ``Direct'' line in the Devices file. For example, if the modem is connected to a single port on COM1, enter the following command:

    cu -l term/00m

    You should see a message such as OK (Hayes-compatible modems) or 0 to indicate that the modem is ready to accept commands.

    If you see the message cu: dir permission denied, you do not have write permission on the /etc/uucp/Devices file. Set the correct ownership and permissions using the commands:

    chown uucp:uucp /etc/uucp/Devices
    chmod 644 /etc/uucp/Devices

    If you do not see a message indicating that the modem is ready to accept commands:

    NOTE: The instructions that follow assume a Hayes-compatible command set and response code. Other modems may use other conventions. Consult your modem documentation for further details. The instructions are illustrated by ``Testing a modem connection''.

    Testing a modem connection

  5. If you see a message from the modem indicating that it is ready to accept commands, enter AT. A Hayes-compatible modem should return OK. If you have set the modem to return numeric result codes rather than text, you see 0.

    If you do see OK, your modem is ready to dial out.

  6. Check that the ``Send Data'' light on the modem flashes when you press a key. This indicates the modem is receiving signals from the computer. If this light is not flashing, check your cable and modem switch settings. If the ``Send Data'' light flashes, but you still do not get an OK response from the modem, enable the modem's echo capability and responses to commands by entering ATE1Q0

    If your terminal still does not display OK or 0, connect the modem to another port (COM1 or COM2). If the modem works with the new port, check that the device is using the correct interrupt vector. (Serial port COM1 uses interrupt 4; COM2 uses interrupt 3.)

    If the terminal does not echo the OK message when it is connected to the new port, check your cable again. You can also connect a terminal to the port (with a proper terminal cable) and verify that the port works. If the modem returns garbage, then try connecting at different speeds; some modems can be set to communicate at the DTE connect speed, while others communicate at a fixed speed. If the modem still does not respond properly, the modem may be defective.

© 2004 The SCO Group, Inc. All rights reserved.
UnixWare 7 Release 7.1.4 - 22 April 2004