01-Access Volume

HomeSupportResource CenterRoutersH3C SR6600 Router SeriesH3C SR6600 Router SeriesTechnical DocumentsReference GuidesCommand ReferencesH3C SR6600 Command Manual-Release 2315(V1.09)01-Access Volume
09-Modem Management Commands
Title Size Download
09-Modem Management Commands 53.25 KB

Modem Management Configuration Commands

modem

Syntax

modem [ both | call-in | call-out ]

undo modem [ both | call-in | call-out ]

View

User interface view

Default Level

2: System level

Parameters

both: Enables both modem call-in and modem call-out.

call-in: Enables only modem call-in.

call-out: Enables only modem call-out.

Description

Use the modem command to enable modem call-in/call-out on the user interface.

Use the undo modem command to disable modem call-in/call-out.

By default, both modem call-in and call-out are disabled.

 

This command is applicable to only AUX ports.

 

Examples

# Enable modem call-in on AUX 0.

<Sysname> system-view

[Sysname] user-interface aux 0

[Sysname-ui-aux0] modem call-in

modem auto-answer

Syntax

modem auto-answer

undo modem auto-answer

View

User interface view

Default Level

2: System level

Parameters

None

Description

Use the modem auto-answer command to configure a modem to operate in auto-answer mode.

Use the undo modem auto-answer command to restore the default.

By default, a modem operates in non-auto answer mode.

 

l          This command is applicable to only AUX ports.

l          If the answer mode configured is not consistent with the actual answer mode of the modem, the modem may operate improperly. Therefore, do not perform the operation unless absolutely needed.

 

Examples

# Configure the modem connected to AUX 0 to operate in auto-answer mode.

<Sysname> system-view

[Sysname] user-interface aux 0

[Sysname-ui-aux0] modem auto-answer

modem timer answer

Syntax

modem timer answer time

undo modem timer answer

View

User interface view

Default Level

2: System level

Parameters

time: Timeout time, in the range 0 to 65535 (in seconds).

Description

Use the modem timer answer command to set the maximum interval allowed between off-hook and dialing.

Use the undo modem timer answer command to restore the default.

By default, the interval is 60 seconds.

 

This command is applicable to only AUX ports.

 

Examples

# Set the maximum interval allowed between off-hook and dialing to 50 seconds.

<Sysname> system-view

[Sysname] user-interface aux 0

[Sysname-ui-aux0] modem timer answer 50

sendat

Syntax

sendat at-string

View

Interface view

Default Level

2: System level

Parameters

at-string: AT command string. This argument can contain +++, A/, or be any string beginning with AT.

For description on AT commands, see Table 1-1.

Description

Use the sendat command to issue an AT command to a modem.

The sendat command sends strings to modem as AT commands without checking whether the strings are valid commands. The characters that are in lowercase in the string are converted to the corresponding uppercase characters automatically.

You can have the result code returned by the modem displayed by enabling debugging for modem on the interface. If the modem is echo-on, the AT commands executed are displayed as well.

 

l          A modem accepts AT commands only when it operates in the AT command mode.

l          The sendat command can issue only one AT command at a time.

l          AT commands may change the operating state of a modem and affect the basic functions of the modem (such as dialup). So, use this command with caution or with the assistance of technicians.

 

Table 1-1 Description on common AT commands

Command

Description

AT

Commands used to configure a modem, except A/ (Repeat Last Command) and +++ (Escape Code), begin with AT. AT informs a modem of a command sent to it. If you execute the AT command only, the modem returns OK or 0, which indicates that it is ready to accept commands.

A

Enables a modem to answer an incoming call without waiting for the ringing. You can use this command when you configure to answer an incoming call manually or the modem is configured to connect to another modem actively. All the commands following the A command in the same command line are ignored.

Bn

Specifies the communication standard to be adopted and the transmission speed. The communication standard can be ITU or Bell. The n argument can be 0, 1, 2 (or 3), 15, or 16.

B0: Specifies ITU V.22 and sets the transmission speed to 1200 bps.

B1: Specifies Bell 212 and sets the transmission speed to 1200 bps (the default setting).

B2/B3: Disables ITU V23 reverse path.

B15: Specifies ITU V21 and sets the transmission speed to 300 bps.

B16: Specifies 103J and sets the transmission speed to 300 bps (the default setting).

En

Sets the modem to echo commands to the workstation. The n argument can be 0 or 1.

E0: Disables echo of commands to the workstation.

E1: Enables echo of commands to the workstation (the default setting).

Dn

Instructs a modem to dial the number specified by the n argument. In pulse dialing mode, nonnumeric characters in the n argument are ignored.

Hn

Sets the way to terminate a call. The n argument can be 0 or 1.

H0: Specifies to terminate a call by hanging up the modem (the default setting).

H1: Specifies to terminate a call by modem off-hook.

In

Inquiries to display the modem product ID, ROM checksum or ROM checksum status. The n argument can be 0 (or 3), 1, 2, 4, 5, or 9.

I0/I3: Displays the default speed and controller hardware version of a modem.

I1: Calculates and displays ROM checksum.

I2: Checks the ROM, calculates and checks checksum and displays the OK or ERROR information.

I4: Displays hardware version of the data pump.

I5: Displays the board ID, software version, hardware version, and the country code of a modem.

I9: Displays the country code.

Ln

Sets the speaker volume for fax and data communication. The n argument ranges from 0 to 3.

L0/L1: Sets the volume to be low.

L2: Sets the volume to be medium (the default setting).

L3: Sets the volume to be high.

Mn

Sets the speaker options for fax and data communication. The n argument ranges from 0 to 3.

M0: Turns off the speaker.

M1: Sets the speaker to be on before the carrier signal is detected (the default setting).

M2: Turns on the speaker when the modem is off-hook.

M3: Sets the speaker to be on after a call is placed until the carrier signal is detected.

Nn

Specifies whether or not negotiation is performed when the local modem tries to establish a connection and the local modem and the remote modem operate at different speeds. The n argument can be 0 or 1.

N0: Adopts the communication standard specified by S37 register and the ATB commands only.

N1: Adopts the transmission speed specified by S37 register and ATB commands for negotiation (the default setting).

On

Forces a modem to be in the online mode. The n argument can be 0, 1, or 3.

O0: Sets a modem to be in online mode.

O1: Initiates the balance and reorganizes the sequences before returning the online mode.

O3: Negotiates the transmission speed again before return the online mode.

Note that this command causes a modem to operate in the online mode again after you switch to the command mode by executing the +++ command.

Qn

Enables a modem to send result codes.

The n argument can be 0 or 1.

Q0: Enables output result code sending (the default).

Q1: Disables output result code sending.

Sr=n

Sets the value of a specified register as n. You can use this command to modify the value of a register.

You can specify a register to be set by specifying the r argument, which can be 0 through 27, 29, 31 through 33, 35, 37, and 89.

The n argument is the value to be assigned to the register, which ranges from 0 to 255.

T

Specifies to perform tone dialing (the default). This command can also be used as the dialing corrector.

P

Specifies to perform pulse dialing. After you execute this command, a modem performs pulse dialing until you execute the T command. This command can also be used as the dialing corrector.

Vn

Specifies the result code format. The n argument can be 0 or 1.

V0: Sends numeric result codes.

V1: Sends result codes in text (the default setting).

 

This command is applicable to only asynchronous serial interfaces (including synchronous/asynchronous serial interfaces operating in the asynchronous mode).

 

Examples

# Issue the ATD 169 command to the modem to call number 169.

<Sysname> system-view

[Sysname] interface serial 1/0

[Sysname-Serial1/0] physical-mode async

[Sysname-Serial1/0] sendat ATD169

service modem-callback

Syntax

service modem-callback

undo service modem-callback

View

System view

Default Level

3: Manage level

Parameters

None

Description

Use the service modem-callback command to enable the callback function.

Use the undo service modem-callback command to disable the callback function.

By default, the callback function is disabled.

With the service modem-callback command executed, the modem initiates callback when the line is active (that is, the modem detects the carrier or data is being received). As PPP process does not begin at this time, the callback is performed before accounting. Such a mechanism saves cost.

Examples

# Enable the callback function.

<Sysname> system-view

[Sysname] service modem-callback

 

  • Cloud & AI
  • InterConnect
  • Intelligent Computing
  • Security
  • SMB Products
  • Intelligent Terminal Products
  • Product Support Services
  • Technical Service Solutions
All Services
  • Resource Center
  • Policy
  • Online Help
All Support
  • Become a Partner
  • Partner Resources
  • Partner Business Management
All Partners
  • Profile
  • News & Events
  • Online Exhibition Center
  • Contact Us
All About Us
新华三官网