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.
Connect a proper cable between the port and modem.
Power the modem on.
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.
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.
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.
Enter one of the following commands
depending on your modem:
|
Command |
Comment |
|
|
Typically works for a US Robotics modem |
|
|
Typically works for a Hayes or other modem |
Terminate the connection to the modem with a tilde-period command:
~.
Access admintool by entering this command at
a root prompt:
admintool
Select Browse > Serial Ports.
Select a device.
Select Edit > Modify.
Configure the device parameters. Typically a terminal device is set to Terminal-Hardwired and Service Enabled.
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).
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.