Use this procedure will configure a RealPort device for a Dial-in/Dial-out modem connection.
Note: 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.
For more information on configuring a serial device for a modem see "Managing Modems and UUCP on the DG/UX System" and "Setting Up and Managing Terminals on the DG/UX System" on the user documentation CD that came with your system.
The PortServer and RealPort should be properly installed, configured and functioning before proceeding.
Note: The following procedure contains an example. This example shows that you are configuring a dial-in and dial-out modem on port 16 of the first PortServer, which corresponds to device /dev/tty17.
set dev port=prn ra=16
This example sets dev=prn for port 16 of a PortServer.
set port altpin=on ra=16
This example sets altpin=on for port 16 of a PortServer.
When prompted, enter the TTY number; for /dev/tty17 this would be 17.
When prompted for Local modem type?, enter
direct. When prompted, enter a modem speed, for
example 9600.
At the end of the file you should find the Direct line for the
device you just added. Modify this line by adding an M
at the end of the second field, which will be the device
name.
In this example, the line should look like this after editing:
Direct tty17,M - 9600 direct
chown uucp /dev/tty17
# stty-ncxa forcedcd /dev/tty17
# cu -l tty17
Connected
If you do not get the "Connected" message, check the UUCP device configuration above.
at
OK
If you do not see at or "OK", check the modem: power it down and back up, try modem commands ate1, atq0, and atq2, or see your modem manual for other suggestions.
ats0=1
at&w
~.
Disconnected
#
# stty-ncxa -forcedcd /dev/tty17
On each line that begins with an M add clocal just
before the second ":" in the line. Add -clocal just
before the third ":".
These should be separated by spaces like the other options. For example, here is the "M9600" line after editing.
M9600: 9600 echo echoe echok kill ^u erase ^? intr ^c hupcl cs8 opost onlcr icrnl cread clocal : 9600 echo echoe echok iexten kill ^u erase ^? intr ^c hupcl icanon cs8 opost icrnl onlcr cread ixon ixoff isig tab3 -clocal ::M9600
Run sysadm and choose Device, Port, Port Monitor, and then Add. Use the defaults (just press enter) for all the prompts except "Port monitor tag" where you will enter a name for the port monitor. In this example, modem is used for the name.
When this is completed the port monitor should be added to the system.
In sysadm go to Device > Port > Port Service > and then choose Add.
You are prompted for several responses; in most cases you can accept the default by pressing enter, except for the following.
For Controlling port monitor, enter the name of the port monitor, modem.
For Port service tag, enter the device name,
tty17.
For Path name of terminal device, enter the full path of the
device, /dev/tty17.
For TTY Definition Label, enter a modem definition label such as
M9600.
For Bidirectional?, enter yes if you want to use
the modem for dial-out or to connect to the modem with cu to send
modem commands.
When this is completed the port service for this port should be added to the system.
You can change any port service settings later with sysadm by choosing Modify in the Port Service menu.
stty-ncxa rtspace ctspace /dev/tty17
To dial-out you will need to first run stty-ncxa to set forcedcd to connect to the modem:
stty-ncxa forcedcd /dev/tty17
When you are done with dial-out, you must reset -forcedcd:
stty-ncxa -forcedcd /dev/tty17
If you forget to reset -forcedcd, logins will not be terminated when the modem drops carrier.