Modem management commands -- country-code

Use country-code to set the modem country code on an AM interface.

Use undo country-code to restore the default.

Syntax

country-code area-name

undo country-code

Default

The country code is united-states.

Views

AM interface view

Predefined user roles

network-admin

mdc-admin

Parameters

area-name: Specifies a country code. The following are available country codes:

australia | france | korea | russia
austria | germany | luxembourg | singapore
belgium | greece | malaysia | southafrica
brazil | hongkong | mexico | spain
bulgaria | hungary | netherlands | sweden
canada | india | new-zealand | switzerland
china | ireland | norway | taiwan
czechoslovakia | israel | philippines | united-kingdom
denmark | italy | poland | united-states
finland | japan | portugal |

Usage guidelines

| CAUTION: Executing this command disconnects the modem connection that has been established on the interface.

Modem encoding format varies by country. Use this command to set the modem encoding format for a country.

Examples

# Set the country code to china on AM interface 2/4/0.

<Sysname> system-view

[Sysname] interface analogmodem 2/4/0

[Sysname-Analogmodem2/4/0] country-code china

Modem management commands -- modem answer-timer

Use modem answer-timer to set a dial-up connection timer.

Use undo modem answer-timer to restore the default.

Syntax

modem answer-timer time

undo modem answer-timer

Default

The dial-up connection timer is 60 seconds.

Views

User line view

Predefined user roles

network-admin

mdc-admin

Parameters

time: Sets the dial-up connection timer in the range of 1 to 65535, in seconds.

Usage guidelines

When the timer expires, the modem disconnects the call.

· If the modem is on the calling party side, the timer starts when the modem starts to dial.

· If the modem is on the called party side, the timer starts when the modem goes off hook.

This command is available on the following user lines:

· TTY lines for the following interfaces:

?span style='font:7.0pt "Times New Roman"'> AM interface

?span style='font:7.0pt "Times New Roman"'> Asynchronous serial interface

?span style='font:7.0pt "Times New Roman"'> Asynchronous/synchronous serial interface operating in asynchronous mode

· AUX line

This command is not available on the console or VTY lines.

To display the user line for an interface, use the display line command.

Examples

# Set the dial-up connection timer to 50 seconds.

<Sysname> system-view

[Sysname] line aux 0

[Sysname-line-aux0] modem answer-timer 50

Modem management commands -- modem auto-answer

Use modem auto-answer to enable auto-answer mode.

Use undo modem auto-answer to restore the default.

Syntax

modem auto-answer

undo modem auto-answer

Default

Auto-answer mode is disabled. The modem answers a call only when it receives the AT command from the router.

Views

User line view

Predefined user roles

network-admin

mdc-admin

Usage guidelines

To ensure correct operation of the modem, set the auto-answer mode on the user line to be the same as the modem.

· Enable auto-answer mode if the modem is in auto-answer mode (the AA LED of the modem lights up). This setting prevents the router from issuing a duplicate answer command after the modem answers a call.

· Disable auto-answer mode if the modem is not in auto-answer mode.

This command is available on the following user lines:

· TTY lines for the following interfaces:

?span style='font:7.0pt "Times New Roman"'> AM interface

?span style='font:7.0pt "Times New Roman"'> Asynchronous serial interface

?span style='font:7.0pt "Times New Roman"'> Asynchronous/synchronous serial interface operating in asynchronous mode

· AUX line

This command is not available on the console or VTY lines.

To display the user line for an interface, use the display line command.

Examples

# Enable auto-answer mode on TTY 1.

<Sysname> system-view

[Sysname] line tty 1

[Sysname-line-tty1] modem auto-answer

Related commands

modem caller-number resolve

Modem management commands -- modem callback

Use modem callback to enable callback.

Use undo modem callback to disable callback.

Syntax

modem callback

undo modem callback

Default

Callback is disabled.

Views

System view

Predefined user roles

network-admin

mdc-admin

Usage guidelines

The callback function enables a modem to disconnect an incoming call and call back the calling party upon request.

Examples

# Enable the callback function.

<Sysname> system-view

[Sysname] modem callback

Modem management commands -- modem caller-number resolve

Use modem caller-number resolve to enable the modem to obtain the call numbers of calling terminals.

Use undo modem caller-number resolve to disable the modem from obtaining the call number of calling terminals.

Syntax

modem caller-number resolve [ ata-waiting-time time ]

undo modem caller-number resolve

Default

The modem does not obtain caller numbers when it accepts calls from terminals.

Views

User line view

Predefined user roles

network-admin

mdc-admin

Parameters

ata-waiting-time time: Specifies the maximum amount of time that the modem waits for a calling terminal to send the call number. The value range for the time argument is 10 to 10000, in milliseconds. The default value is 1000. When this timer expires, the modem does not receive the call number of the terminal. Increase the timer value on a slow link for the router to obtain caller numbers successfully.

Usage guidelines

| CAUTION: Executing this command disconnects the modem connection that has been established on the user line.

This command is for point of sale (POS) terminal access services. It is available only on TTY lines for AM interfaces.

Configure this command if a bank front end processor requires the router to send the call numbers of POS terminals for acknowledgment before it accepts data from the terminals.

For more information about POS terminal access services and caller number sending, see Terminal Access Configuration Guide.

Examples

# Enable the modem to obtain caller numbers on TTY 81, and set the caller number waiting timer to 10 seconds.

<Sysname> system-view

[Sysname] line tty 81

[Sysname-line-tty81] modem caller-number resolve ata-waiting-time 10000

Related commands

modem auto-answer

Modem management commands -- modem enable

Use modem enable to enable the modem to answer incoming calls, initiate outgoing calls, or both.

Use undo modem enable to disable the modem from answering incoming calls and initiating outgoing calls .

Syntax

modem enable { both | call-in | call-out }

undo modem enable

Default

The modem is disabled from answering incoming calls and initiating outgoing calls.

Views

User line view

Predefined user roles

network-admin

mdc-admin

Parameters

both: Enables the modem to answer incoming calls and initiate outgoing calls.

call-in: Enables the modem to answer incoming calls.

call-out: Enables the modem to initiate outgoing calls.

Usage guidelines

| CAUTION: Executing this command disconnects the modem connection that has been established on the user line.

This command is available on the following user lines:

· TTY lines for the following interfaces:

?span style='font:7.0pt "Times New Roman"'> AM interface

?span style='font:7.0pt "Times New Roman"'> Asynchronous serial interface

?span style='font:7.0pt "Times New Roman"'> Asynchronous/synchronous serial interface operating in asynchronous mode

· AUX line

This command is not available on the console or VTY lines.

Examples

# On user line TTY 1, enable the modem to answer incoming calls.

<Sysname> system-view

[Sysname] line tty 1

[Sysname-line-tty1] modem enable call-in

Modem management commands -- sendat

Use sendat to issue an AT command to a modem.

Syntax

sendat at-string

Views

Interface view

Predefined user roles

network-admin

mdc-admin

Parameters

at-string: Specifies an AT command, a case-insensitive string of 1 to 300 characters. The router automatically converts lowercase characters to uppercase when it sends the command to the modem. Enter the AT prefix before all commands except A/ (Repeat Last Command) and +++ (Escape code). For more information about AT commands that begin with AT, see Table 1.

Usage guidelines

| CAUTION: This command changes the modem operating state. Incorrect use of this command can cause problems such as dial-up failure. When you use this command, make sure you understand the impact of this command.

This command is available on the following interfaces:

· Asynchronous serial interface

· Asynchronous/synchronous serial interface in asynchronous mode

· AM interface

· AUX interface

To send AT commands to a modem, you must first place the modem in AT command mode. To confirm that you can send AT commands, enter sendat at. The modem will return OK or 0 if it is ready to accept AT commands.

One sendat command can issue one AT command. To send multiple AT commands to a modem, you must repeat the sendat command.

This command does not verify the validity of AT commands. To verify the AT command execution result, enable modem debugging on the interface. To view the AT commands sent to the modem, issue the E1 command to the modem.

Table 1 describes commonly used AT commands. Support for AT commands varies by modems.

Table 1 AT commands in common use

Command | Description
A | Forces the modem to go off-hook in answer mode. If a call is coming in, the modem will try to answer it without waiting for the ringtone. This command is useful when manual answer mode is used.
B n | Sets the modulation protocol preference. Available options: · B0—Selects the ITU V.22 mode. The transmission speed is 1200 bps. · B1—Selects the Bell 212 mode. The default transmission speed is 1200 bps. · B2/B3—Cancels the ITU V.23 backward channel. · B15—Selects the ITU V.21 mode. The transmission speed is 300 bps. · B16—Selects the 103J mode. The transmission speed is 300 bps. This setting is the default for Compaq Presario 192-VS and Compaq Presario 288-VS modems.
D n | Dials a telephone number. The n argument represents the dial string. In pulse dialing mode, the modem ignores nonnumeric characters.
E n | Controls echo of commands to the configuration terminal. Available options: · E0—Disables echo of commands to the configuration terminal. · E1—Enables echo of commands to the configuration terminal. This option is the default.
H n | Sets the method to terminate a call. Available options: · H0—Forces modem on-hook to hang up the line (the default). · H1—Forces modem off-hook to answer or dial.
I n | Displays modem information and results of checksum tests on firmware. Available options: · I0/I3—Displays the default transmission speed and controller firmware version. · I1—Runs a checksum on the ROM and displays the result. · I2—Runs a checksum on the ROM and displays the checksum status: ?span style='font:7.0pt "Times New Roman"'> OK—The checksum is correct. ?span style='font:7.0pt "Times New Roman"'> ERROR—The checksum is incorrect. · I4—Displays the hardware version of the data pump. · I5—Displays the product code, software version, hardware version, and country code. · I9—Displays the country code.
L n | Sets the speaker loudness for fax and data communication. Available options: · L0/L1—Low volume. · L2—Medium volume (the default). · L3—High volume.
M n | Sets the speaker mode for fax and data communication. Available options: · M0—Speaker is always off. · M1—Speaker is on until the carrier is detected. This option is the default. · M2—Speaker is on when the modem is off-hook. · M3—Speaker is on after a dial until the carrier is detected.
N n | Sets the modulation negotiation mode for the modem to establish a connection with a remote modem operating at a different speed. Available options: · N0—Forces the modem to connect at the speed specified in the S37 register and the ATB n command. · N1—Enables the modem to start connecting at the speed specified in the S37 register and ATB n command. However, the speed may drop during the negotiation. This option is the default.
O n | Forces the modem to return to data mode. Available options: · O0—Returns to data mode. · O1—Initiates an equalizer retrain sequence before returning to data mode. · O3—Negotiates the transmission speed before returning to data mode. After you use the +++ command to place the command in command mode, you can use an ATO n command to change the modem to data mode.
Q n | Enables or disables the modem to send result and status codes to the configuration terminal. Available options: · Q0—The modem sends result and status codes. This option is the default. · Q1—The modem does not send result and status codes.
S r=n | Sets the contents of S register r to value n. · Value range for the r argument—0 to 27, 29, 31 to 33, 35, 37, and 89. · Value range for the n argument—0 to 255.
T | Sets tone dialing (the default). This command can also be used as a dialing modifier.
P | Sets pulse dialing. After you execute this command, the modem performs pulse dialing for all calls until you execute the T command. The P command can also be used as a dialing modifier.
V n | Specifies the result code format. Available options: · V0—Sends numeric result codes. · V1—Sends text-form result codes (the default).

Examples

# On Async 2/4/0, instruct the modem to dial 169.

<Sysname> system-view

[Sysname] interface async 2/4/0

[Sysname-Async2/4/0] sendat ATD169

# On Serial 2/1/0, instruct the modem to dial 169.

<Sysname> system-view

[Sysname] interface serial 2/1/0

[Sysname-Serial2/1/0] physical-mode async

[Sysname-Serial2/1/0] sendat ATD169