|
|
If you are unable to use the Modem Manager to configure your modem, you need to configure several UUCP files manually.
Correct entries in the UUCP configuration files are vital when using cu. This also applies when SCO SLIP, SCO PPP, and SCO PPP from Morning Star are configured to use incoming and outgoing connections that use UUCP (it does not apply to dedicated serial line connections).
To configure your modem manually:
If a dialer program does not exist, or /usr/lib/uucp/Dialers does not contain a suitable entry for your modem, you must create one or the other.
``Dialers file entries'' lists dialer types that are available as Dialers entries.
Modem or data switch | Dialers entry |
---|---|
AT&T DATAPHONE II 2212C | att2212c |
AT&T DATAPHONE II 2224 | att2224 |
AT&T Programmable 300/1200 Model 4000 | att4000 |
Develcon network dataswitch | develcon |
Direct line; dialer not used | direct |
Hayes Smartmodem 1200 or compatible | hayes1200 |
Hayes Smartmodem 2400 or compatible | hayes2400 |
Micom network dataswitch | micom |
Network Listener Service | nls |
Penril | penril |
Racal Vadic 3451 | vadic |
Rixon Intelligent | rixon |
Vadic 9600VP | vadic9600 |
Ventel 212+ | ventel |
ACU tty1A - 19200 hayes2400
Speed
to CONNECT
.
The following Dialers file entry, standard, should also be suitable for many V.32bis and higher speed modems:
standard =W-, "" AT&F1 OK\r ATB0M1X4 OK\r ATDT\T\r\c CONNECTAlthough it is possible to create or modify an entry in the Dialers file yourself, the syntax can be difficult to follow. Consult the Dialers(F) manual page for more information.
There are two types of dialer binaries, named dial and atdial, in /usr/lib/uucp. The dial binaries (for example, dialHA24) are separate executable programs that must be recompiled from source files if you wish to customize them. The atdial dialers (for example, atdialHAY) are implemented as symbolic links to a single executable (/usr/lib/uucp/atdialer) together with an editable configuration file in /usr/lib/uucp/default.
``atdialer and dialer binaries'' lists symbolic links to atdialer and dialer programs provided with SCO OpenServer systems. Both atdialer and the dialer programs are supplied in binary and source form.
atdialer and dialer binaries
Modem | atdialer or dialer |
---|---|
Hayes Smartmodem 1200 or compatible | dialHA12 |
Hayes Smartmodem 2400 or compatible | dialHA24 |
Hayes Ultra 96 modem 2000US | atdialHAY |
Hayes V-series Smartmodem 9600 | dialHA96V |
MICC 9610 | atdialMICC |
Multitech MT932EA | atdialMT |
Multitech MultiModem 224 EH or V.32 | dialMUL |
Racal Vadic 3451 | dialVA3450 |
Telebit T2500 | atdialT25 |
Telebit Trailblazer | dialTBIT |
Trailblazer TB1500 | dialT1500 |
US Robotics Courier V.32bis | atdialUSR |
US Robotics World Port 9600 | atdialW96 |
To create a new dialer, you need to understand how modem commands are used. You can enable or disable desired features by sending commands in a setup string to the modem. For example, the following setup string is used in the dialHA24 dialer:
ATQ0E0T&D2&C1S0=0X4S2=043You can change these strings to suit a different communications protocol or modem-specific commands by consulting the documentation for your modem. Though the setup commands may seem confusing because they are concatenated, there are two basic types of AT commands:
You can create a new atdial dialer without using a development system. An atdial dialer is actually a link to the binary /usr/lib/uucp/atdialer that calls a configuration file in the /usr/lib/uucp/default directory. The configuration file contains all the commands specific to that modem. For example, atdialHAY is linked to atdialer and the configuration file is in /usr/lib/uucp/default/atdialHAY.
To create a new atdial dialer, atdialMINE for example, follow these steps:
Alternatively you can use the make.dialer script to create an atdial dialer. See make.dialer(C) for more information.
Set the MDM_MODE parameter in /usr/lib/uucp/default/atdial to ``AUTO'' to configure a modem to detect incoming FAX messages automatically. Use the -f option with the getty(M) program defined for the modem port to invoke an appropriate program defined in /etc/gettyacts (see gettyacts(F)) if an incoming connection is a FAX message or another communications protocol such as PPP.
Most modern modems can perform speed conversion which allows them to negotiate a different connection speed with the remote modem than the serial line speed that they use with the local computer.
If you use hardware flow control with the modem, and the modem is capable of performing speed conversion, do not use the RTC_speed strings. Instead, use the RTC_CONNECT string and set it to the value ``CONNECT''. This will give you the fastest available connection speed. The computer to modem speed will be set by the value in the /usr/lib/uucp/Devices file.
The RTC_speed strings in the /usr/lib/uucp/default/atdial configuration files allow the dialer to recognize connect messages from the modem and map them to appropriate speed(s). For example:
RTC_9600=CONNECT 9600The dialer then recognizes ``CONNECT 9600'' as a 9600bps connection. The connect messages for each speed must be unique. If the message is set to ``CONNECT'', the first speed mapped to the connect message is used. For unused speeds, simply set the RTC_speed string to ``not used'', for example:
RTC_300=not usedIt is possible to specify all valid connect messages. For example:
RTC_2400=CONNECT 2400 RTC_9600=CONNECT 9600For a modem that performs speed conversion, this more accurate setup is only necessary if you need to guard against long UUCP transfers at 2400bps. This is because the speed recognized by the dialer is matched against the speed range in the Systems file or the speed range on the cu command line. If it is out of range, an
EXECDIAL LOCAL FAILURE
will result.
In the following command
the speed range specified is 9600 9600:
Connections at 2400bps using the above command will fail
if separate RTC_speed lines are set up.
Either of the following commands allow a 2400bps
connection in this case:
cu -ltty1A -s2400 5551212
cu -ltty1A -s2400-9600 5551212
You can customize a dial program by editing the source file (for example, dialHA24.c) and changing modem commands embedded in the C code and then recompiling the source.
The source and a makefile for recompiling dial binaries are included in the directory /usr/lib/uucp. If you have any other kind of modem, you can modify any of the source files and create your own dialer program.
To make a new dial program:
#define MDSETUP "ATQ0E0T&D2&C1S0=0X4S2=043\r"There are several ``defines'' in the program, each containing a different string, such as MDHANGUP, the command string to send that tells the modem to hang up (ATQ0H). Change each define as appropriate.
EXES= dialHA12 dialHA24 dialHA96V dialMUL dialTBIT dialT1500 dialVA3450Add the name of the dialer program that you wish to use. When this is done, exit the file, saving the changes you made.
When the make command is finished, you have a new dialer program. This can be used in the fifth field of an entry in the Devices file.