Manually programming modems using the cu command

Use the following procedure to manually program modems attached to the system unit.

  • The UNIX-to-UNIX Copy Program (UUCP) must be installed on the system. Use the lslpp -f | grep bos.net.UUCP command to verify installation.
  • A modem must be attached to the system and powered on.
  • Root user authority is needed to change the appropriate files.
  1. Add the following line to the /etc/uucp/Devices file if it does not already exist (replace # with the number for your port).
    Direct tty# - Any direct
    Note: Any line in the Devices file which begins with a # sign in the leftmost column is a comment.
  2. Save and exit the file.
  3. Type the following command on the command line:
    cu -ml tty#
  4. A connected message should appear on the screen indicating that the modem is connected and ready to be programmed.
  5. Type AT and press Enter.
    The modem will respond with OK. If there is no response from the modem or if characters typed do not appear on the screen, check the following:
    • Verify modem cabling connections.
    • Verify that modem is powered on.
    • Observe the modem front panel lights when you press Enter. If the Receive Data (RD) and Send Data (SD) lights flash, then the modem is communicating with the system and the problem may lie with the current modem settings. If the lights do not flash, then the problem is with the modem connection.
    • Type the following and see if the condition changes:
      ATE1 <enter>
      ATQ0 <enter>
      ATE1 turns the echo mode on which displays any typed characters to the screen. ATQ0 enables the displaying of result codes.
  6. Program the modem using the settings shown in the previous section, "Modem Considerations."
    The following example demonstrates how to program and save basic settings for a Hayes-compatible modem. Enter:
    AT&F    <enter>
    AT&D2   <enter>
    ATS0=1  <enter>
    ATS9=12 <enter>
    AT&C1   <enter>
    AT&W    <enter>
    ~.      <enter>

    Where &F is used to reset the modem to factory defaults, &D2 sets DTR, S0 and S9 set register values, &C1 set carrier, and &W writes the settings to the modem. The tilde-period ends the connection.