This document describes the Modem Definition configuration commands. The modem definition supplies commands to configure the modem to dial, accept connections, and disconnect. It also tells the DIAL device how the modem is configured and what result codes to expect from the modem. For instructions on setting up a modem definition, see Adding a Modem Definition.
Table 1 summarizes the Modem Definition configuration commands. Enter these commands at the Modem Config> prompt. There are no monitoring commands for modem definitions
Press Space twice after you type a command to display the available parameters for each command. Enter help for information about using the command line interface.
| Command | Function |
|---|---|
| Disable | Disables options that you configured using the set command, as well as the carrier-wait and ready-wait options. |
| Enable | Enables options that you configured using the set command, as well as the carrier-wait and ready-wait options. |
| Exit | Returns to the DIAL Config <WAN> prompt. |
| List | Displays a modem definition's command strings, result codes, and options. |
| Set | Defines optional commands for configurable modems. |
Disable
Disables options for configurable and nonconfigurable modems that you configured using the set command, as well as the carrier-wait or ready-wait options. For nonconfigurable modems, the only options you can change are carrier-wait and ready-wait.
carrier-wait
Disables the option that allows the DIAL device to assert DTR immediately after self-test in order to accept incoming calls immediately. This option is disabled by default. If you configure your modem to dial when DTR is raised, disabling carrier-wait prevents the DIAL device from dialing out immediately after self-test.
dial
Disables the use of the dial prefix and suffix command
strings configured using the set dial prefix and
set dial suffix commands. This option is enabled
by default.
disconnect
Disables the use of the disconnect command configured
using the set disconnect command. This option is
disabled by default.
initialization
Disables the use of the initialization command string
configured using the set initialization command.
This option is enabled by default.
Example: disable initialization
ready-wait
When this option is disabled, after the DIAL device turns on DTR, the device does not wait for the modem to turn on DSR. This option is disabled by default.
Enable
Enables optional capabilities that you configured using the set command, as well as the carrier-wait or ready-wait options. For nonconfigurable modems, the only options you can change are carrier-wait and ready-wait.
carrier-wait
Causes the DIAL device to assert DTR immediately after self-test in order to accept incoming calls immediately. This option is disabled by default.
dial
Enables the use of the dial prefix and suffix command
strings configured with the set dial prefix and set
dial suffix commands. This option is enabled by default.
disconnect
Enables the use of the disconnect command string configured
with the set disconnect command. This option is disabled
by default.
initialization
Enables the use of the initialization command string configured
with the set initialization command. This option
is enabled by default.
Example: enable initialization
ready-wait
If you enable this option, after the DIAL device turns on DTR, the DIAL device waits for the modem to turn on DSR. Use this option to ensure that a modem is connected to the DIAL device. This option is disabled by default.
If you enable ready-wait, you must initialize Hayes-compatible asynchronous modems with the &S0 command to make sure that DSR is always on. If you do not initialize the modem with &S0, self-test fails on the DIAL device.
If your modem is currently initialized with &S1, do the following before you enter enable ready-wait.
enable ready-wait
Exit
Returns to the DIAL Config <WAN> prompt.
exit
DIAL Config <WAN>
list
Configuration of Modem: usr288
Options
-------
Initialization: Enabled
Answer: Disabled
Dial: Enabled
Disconnect: Disabled
Carrier Wait: Disabled
Ready Wait: Disabled
Commands
--------
Initialization: ATE0M0S0=1\r
Answer: ATA\r
Dial Prefix: ATDT
Dial Suffix: \r
Disconnect: ATH\r
Escape Sequence: +++
Guard Time: 50
Result Codes
------------
BUSY: BUSY
CONNECT: CONNECT
ERROR: ERROR
NO ANSWER: NO ANSWER
NO CARRIER: NO CARRIER
NO DIALTONE: NO DIALTONE
OK: OK
RING: RING
Keep the following in mind when you enter these command strings:
The strings are case sensitive. If the modem requires upper-case commands, enter the strings in upper case.
You can include nonprintable characters in the set answer, set dial prefix, set dial suffix, set disconnect, set escape-sequence, and set initialization strings.
For most intelligent modems (Hayes-compatible), you must terminate the set answer, set dial suffix, set disconnect, and set initialization strings with a \r (carriage-return character).
You can use the following C language-style escape characters in modem command strings:
| \n | Linefeed |
| \r | Carriage return |
| \\ | Backslash |
| \xhh | Hexadecimal two-digit number |
Answer command (1-10 characters) [ATA\r]?
Dial prefix (1-20 characters) [ATDT]?
Dial suffix (1-20 characters) [\r]? $ (508) 555-2323 9999\r
disconnect
The modem command that causes the modem to hang up the connection (go on-hook). You must end this string with a carriage-return character (\r). The default is ATH\r. After you set this string, enable its use by entering enable disconnect.
Disconnect command (1-10 characters) [ATH\r]?
Escape sequence (1-3 characters) [+++]?
Guard time (0-255) [50]?
Initialization commands (1-40 characters) [ATE0M0S0=1\r]?
BUSY result code (1-10 characters) [BUSY]?
Example: set result-code connect
CONNECT result code (1-10 characters) [CONNECT]?
Example: set result-code error
ERROR result code (1-10 characters) [ERROR]?
Example: set result-code no-answer
NO ANSWER result code (1-16 characters) [NO ANSWER]?
The line is disconnected.
The modem failed to detect carrier after waiting a period that is commonly configurable, depending on the modem, in modem register S7.
set result-code no-carrier
NO CARRIER result code (1-16 characters) [NO CARRIER]?
Example: set result-code no-dialtone
NO DIALTONE result code (1-16 characters) [NO DIALTONE]?
OK result code (1-10 characters) [OK]?
RING result code (1-10 characters) [RING]?