Configuring a Device for a Modem

Use this procedure to configure a RealPort device for a Dial-in/Dial-out modem connection. Configuring a device for a modem requires familiarity with both the operating system and the modem being used. While the following procedure is sufficient for most cases, it may be necessary to take additional steps to properly configure your modem or to set up the operating system for a specific application.

The PortServer and RealPort should be properly installed, configured and functioning before proceeding.

Procedure

  1. Connect a proper cable between the port and modem.
  2. Power the modem on.
  3. Set the port to dev=prn on the PortServer by entering this command at a PortServer root prompt:

    set port dev=prn ra=12

    This example sets dev=prn for port 12 of a PortServer.

  4. If you are using 8-pin RJ-45 cabling from the PortServer to the modem, set the port to altpin=on by entering this command at a PortServer root prompt:

    set port altpin=on ra=12

    This example sets altpin=on for port 12 of a PortServer.

  5. Connect to the modem with tip.

    tip -38400 /dev/dty/a001s

    The speed (38400) and device (/dev/dty/a001s) are used as examples in the previous tip command.

  6. Enter one of the following commands depending on your modem:

    Command

    Comment

    AT&H1&B0&W

    Typically works for a US Robotics modem

    AT&H1&W

    Typically works for a Hayes or other modem

  7. Terminate the connection to the modem with a tilde-period command:

    ~.

  8. Access admintool by entering this command at a root prompt:

    admintool

  9. Select Browse > Serial Ports.
  10. Select a device.
  11. Select Edit > Modify.
  12. Configure the device parameters. Typically a terminal device is set to Terminal-Hardwired and Service Enabled.
  13. Set the Baud Rate.

    Note that the default admintool baud rates cycle, meaning the speed at the end of the corresponding /etc/ttytype entry is different than the speed at the beginning of the entry. It is often preferable to set them to a fixed rate.

    As an example, this line can be added to /etc/ttytype to configure the device for a 38400 fixed rate.

    38400N:38400 hupcl:38400 hupcl::38400N

    If a custom /etc/ttytype entry is used, set Baud Rate to Other and enter the /etc/ttytype identifier (e.g. 38400N).

  14. Edit the file /etc/rc2.d/S99digi (create it if necessary) and add the following command to it:

    ditty rtspace ctspace /dev/dty/a001m

    The device a001m is used as an example in the previous ditty command.