MODEM COMMANDS

 

Basic Data Commands   
Extended Data Commands   
Voice Commands  
Fax Commands 
S-Register Definitions

 

WHAT ARE THOSE COMMANDS USED FOR?

Those commands are used to communicate with the Modem directly when it is working in a Terminal Mode. Although most of the times the Communication Software does that for us, sometimes we have to manually communicate with the Modem in order to verify that everything about the Modem is working properly, or to set some extra commands while connecting to the Internet.

All commands must begin with the AT, or at prefix, except from the A/ and +++ ones.

When a command has numeric options but no number is included, the number zero (0) is assumed by default.

 

BASIC DATA COMMANDS

A/ Repeats the last command. 
A Attempt to answer a call.
AT? Read the selected S-Register.
B(number) Bell/ITU-T answer sequence.
B0 V.22 connection (1200bps).
B1 Bell 212A connection (1200bps). 
C(number) Carrier Control.
C1 Return the OK message.
D(number) Dial the following number.
0-9 Digits from 0 to 9.
* The "star" digit (only for Tone dialing).
# The "gate" digit (only for tone dialing).
A-D Digits from A to D.
L Redial the last number.
P Pulse dial.
T Tone dial.
S=(number) Dial the number which is stored in the directory (from number 0 to 3).
! Flash the switch hook.
W Wait for a second dial tone.
@ Dial, wait for quiet answer and continue.
, Dial pause.
; Return to command mode after dialing.
^ Toggle between enable tone and disable tone.
E(number) Echo.
E0 Disable Echo.
E1 Enable Echo.
H(number) Disconnect.
H0 Go on-hook.
H1 Go off-hook.
I(number) Identify.
I0 Product code.
I1 Report "OK".
I2 Report "OK" or "Error".
I3 Firmware revision.
I4 OEM identifier string.
I6 Model and internal code revision.
L(number) Speaker volume.
L0 Speaker off.
L1 Speaker low volume.
L2 Speaker medium volume.
L3 Speaker high volume.
M(number) Speaker control.
M0 Speaker always off.
M1 Speaker on until connected.
M2 Speaker always on.
M3 Speaker off during dialing and receiving carrier, on during answering.
N(number) Enable Automode.
N0 Automode off.
N1 Automode on.
O(number) On-line Data mode.
O0 Go on-line.
O1 Go on-line and wait for command.
Q(number) Quiet Result Codes control.
Q0 Allow Result Codes control.
Q1 Do not allow Result Codes control.
Sr=(number) Set register r to (number).
Sn? Display the contents of S-Register (number).
V(number) Result Code Form.
V0 Numeric codes.
V1 Verbal codes.
W(number) Connect Message control.
W0 Speed in EC mode.
W1 Line speed (EC and DTE).
W2 DCE and EC speed.
X(number) Extended Result codes.
X0 Basic Result codes (CONNECT, RING, NO CARRIER etc.).
X1 Basic Result codes and connection speed (CONNECT, RING, ANSWER etc.).
X2 Basic Result codes and connection speeds (CONNECT, RING, ANSWER etc.).
X3 Basic Result codes and connection rate (CONNECT, RING, ANSWER etc.).
X4 All Result Codes and connection rates.
Y(number) Long Space Disconnect.
Y0 Disable.
Y1 Enable.
Z(number) Soft Reset and Restore Profile.
Z0 Restore stored profile 0.
Z1 Restore Stored Profile 1

                                                                                                                                                   Top

 

EXTENDED DATA COMMANDS

&$ Display a list of ampersand (&) commands.
&A(number) Enable/Disable additional result code subsets.
&A0 ARQ result codes disabled.
&A1 ARQ result codes enabled.
&A2 Modulation indicator added.
$A3 Protocol indicators added.
&B(number) Manage serial port rate.
&B0 Connection rate.
&B1 Serial port rate.
&B2 ARQ mode. Variable in non-ARQ mode.
&C(number) Control Carrier Detect Signal.
&C0 CD Override.
&C1 Normal CD operations.
&D(number) DTR Option.
&D0 Ignore On-To-Off DTR transition.
&D1 Switch to On-Line mode and stay connected.
&D2  Normal DTR operations.
&D3 Re-initialize the Modem.
&F(number) Load factory configuration.
&F0 Load factory configuration 0.
&F1 Load factory configuration 1.
&G(number) Select Guard Tone.
&G0 Disable Guard Tone (for the U.S.A.)
&G1 Disable Guard Tone.
&G2 Select 1800Hz Guard Tone.
&H(number) Set Transmit Data flow control.
&H0 Disable flow control.
&H1 Hardware flow control.
&H2 Software flow control.
&H3 Hardware and software flow control.
&I(number) Set Receive Data flow control.
&I0 Enable software flow control.
&I1 XON/XOFF signals to modem and remote system.
&I2 XON/XOFF signals to modem only.
&K(number) Data compression.
&K0 Disable data compression.
&K1 Auto enable/disable data compression.
&K2 Enable data compression.
&K3 Disable MNP5 compression.
&M(number) Asynchronous/Synchronous Mode selection.
&M0 Select Asynchronous Mode.
&M1 Select Synchronous Mode with Asynchronous Off-Line Command Mode.
&M2 Select Synchronous Mode with Asynchronous Off-Line Command Mode.
&M3 Select Synchronous Connect Mode.
&Q(number) Synchronous/Asynchronous Mode.
&Q0 Select Asynchronous Operation.
&Q4 Select Hayes AutoSync Mode.
&Q5 Negotiate an error-corrected link.
&Q6 Select Asynchronous operation in Normal mode.
&R(number) RTS/CTS Option.
&R0 CTS tracks RTS or acts per V.25.
&R1 Active CTS.
&S(number) Override DSR.
&S0 Active DSR
&S1 DSR acts per V.25.
&T(number) Begin test modes.
&T0 End testing.
&T1 Analogue loopback.
&T2 Reserved.
&T3 Local digital loopback.
&T4 Enable remote digital loopback.
&T5 Disable remote digital loopback.
&T6 Indicate remote digital loopback.
&T7 Remote digital with self-test and error detector.
&T8 Analogue loopback with self-test and error detector.
&U(number) Set floor connect speed.
&Y(number) Desingnat a dafault reset Profile.
&Y0 Use Profile 0.
&Y1 Use Profile 1.
&Z(number)=x Store telephone number (number=0 to 3 and string).
%C(number) Data Compression.
%C0 Disable Data Compression.
%C1 Enable MNP5 Data Compression.
%C2 Enable V.42bis Data Compression.
%C3 Enable both MNP5 and V.42bis Data Compression.
%E(number) Line Quality Monitor and Auto-Retrain.
%E0 Disable Line Quality Monitor and Auto-Retrain.
%E1 Enable Line Quality Monitor and Auto-Retrain.
%E2 Enable Line Quality Monitor and Fallback/Fall Forward.
%L Line Siglan Level.
%Q Line Signal Quality.
%U(number) Select u-LAW or A-LAW (K56Flex only).
%U0 Select u-LAW.
%U1 Select A-LAW.
\A(number) Select Maximum MNP Block Size.
\A0 64 characters.
\A1 128 characters.
\A2 192 characters.
\A3 256 characters.
\B(number) Transmit Break to Remote.
\B1 to \B9 Break length in 100ms units.
\N(number) Operating Mode.
\N0 Select Normal Speed Buffered mode.
\N2 Select Reliable Link Mode.
\N3 Select Auto Reliable Mode.
\N4 Force LAPM Error-Correction Mode.
\N5 Force MNP Error-Correction Mode.
+MS Select Modulation.
-SSE-(number) Enable/Disable DSVD.
-SSE=0 Disable DSVD.
-SSE=1 Enable DSVD.
-SMS=x,y,z,t Select Audio Span/DSVD Mode (voice Modems).

  Top

 

VOICE COMMANDS

ATA Answer in Voice/Audio Mode.
ATD Dial command in Voice/Audio Mode.
ATH Hang up in Voice/Audio Mode.
ATZ Reset from Voice/Audio Mode.
#BDR Select Baud Rate.
#CID Enable Caller-ID detection.
#CLS Select Data, FAX, or Voice/Audio Mode.
#MDL Identify model.
#MFR Identify manufacturer.
#REV Identify revision level.
#SPK Speakerphone level.
#TL Audio Output transmit level.
#VBQ Query buffer size.
#VBS Bits per sample (ADPCM or PCM).
#VBT Beep tone timer.
#VCI Identify Compression method (ADPCM).
#VLS Voice line select (ADPCM or PCM).
#VRA Ringback goes away timer.
#VRN Ringback never came timer.
#VRX Voice receive mode (ADPCM or PCM).
#VSD Silence detection tuner (ADPCM).
#VSK Buffer skid setting.
#VSP Silence detection period.
#VSR Sampling Rate selection (ADPCM or PCM).
#VSS Silence detection tuner (ADPCM).
#VTD DTMF tone reporting cabability.
#VTM Enabletiming mark placement.
#VTS Generate tone signals.
#VTX Voice transmit mode (ADPCM or PCM).

  Top

 

FAX COMMANDS

FCLASS=(number) Set operation mode.
FCLASS=0 Data mode.
FCLASS=1 Facsimile Service Class 1.
FCLASS=2 Facsimile Service Class 2.
FCLASS? Display current FCLASS mode.
+FCLASS=? Display the FCLASS mode options.
+FTS=(number) Stop transmission.
+FRS=(number) Wait for a specified length of silence before sending OK.
+FTM=(number) Transmit data using the modulation specified by (number). (number = 3, 24, 48, 72, 96, 97, 98, 121, 122, 145, 146)
+FRM=(number) Receive data using the modulation specified by (number). (number = 3, 24, 48, 72, 96, 97, 98, 121, 122, 145, 146)
+FTH=(number) Transmit data framed in the HDLC protocol using the modulation specified by (number). (number = 3, 24, 48, 72, 96, 97, 98, 121, 122, 145, 146)
+FRH=(number) Receive data framed in the HDLC protocol using the modulation specified by (number). (number = 3, 24, 48, 72, 96, 97, 98, 121, 122, 145, 146)

  Top

 

S-REGISTER DEFINITIONS

S0 Number of rings to Auto-Answer.
S1 Ring Counter.
S2 Escape Character.
S3 Carriage Return Character.
S4 Line Feed Character.
S5 Backspace Character.
S6 Wait Time Before Blind Dialing.
S7 Wait Time Before Carrier Detecting.
S8 Pause Time For Dial Delay.
S9 Carrier Detect Response time.
S10 Lost Carrier to Hang Up Delay.
S11 DTMF Tone Duration.
S12 Escape Prompt Delay.
S13 Bit-mapped register.
S15 Bit-mapped register setup.
S18 Test Timer.
S19 Set duration for the inactivity timer.
S21 Set the length of breaks for MNP or V.42 mode.
S22 ASCII decimal code for the XON character.
S23 ASCII decimal code for the XOFF character.
S25 Delay to DTR.
S27 Bit-mapped register setup.
S28 Eliminate V.32 answer tones.
S29 Duration of the V.21 answer mode.
S30 Disconnect inactivity Timer.
S32 XON Character.
S33 XOFF Character.
S34 Bit-mapper register setup.
S37 Line Connection speed.
S38 Delay before Forced Hang Up.
S40 Autonomous S-Register.
S86 Call Failure Reason code.
S91 PSTN Transmit Level
S95 Extended Result Codes.

  Top

 

    

1