PC Mobile Help

A division of PC Mobile, Inc.

Hayes Modem Commands

NOTE: All command strings are to be preceded by "AT"

Hayes compatible AT commands
A/ Re-execute command.
A Go off-hook and attempt to answer a call.
B0 Select V.22 connection at 1200 bps.
B1 Select Bell 212A connection at 1200 bps.
Dn Dial modifier.
E0 Turn off command echo.
E1 Turn on command echo.
H0 Initiate a hang-up sequence.
H1 If on-hook, go off-hook and enter command mode.
I0 Report product code.
I1 Report pre-computed checksum.
I2 Report OK.
I3 Report firmware revision, model, and interface type.
I4 Report response programmed by an OEM.
I5 Report the country code parameter.
I6 Report modem data pump model and code revision.
L1 Set low speaker volume.
L2 Set medium speaker volume.
L3 Set high speaker volume.
M0 Turn speaker off.
M1 Turn speaker on during handshaking and turn speaker off while receiving carrier.
M2 Turn speaker on during handshaking and while receiving carrier.
M3 Turn speaker off during dialing and receiving carrier and turn speaker on during answering.
N0 Turn off automode detection.
N1 Turn on automode detection.
O0 Go on-line.
O1 Go on-line and initiate a retrain sequence.
P Force pulse dialing.
Q0 Allow result codes to DTE.
Q1 Inhibit result codes to DTE.
Sn Select S-Register as default.
Sn? Return the value of S-Register n.
=v Set default S-Register to value v.
? Return the value of default S-Register.
T Force DTMF dialing.
V0 Report short form (terse) result codes.
V1 Report long form (verbose) result codes.
W0 Report DTE speed in EC mode.
W1 Report line speed, EC protocol and DTE speed.
W2 Report DCE speed in EC mode.
X0 Report basic call progress result codes, i.e.,OK, CONNECT, RING, NO CARRIER (also, for busy, if enabled, and dial tone not detected), NO ANSWER and ERROR.
X1 Report basic call progress result codes and connections speeds (OK, CONNECT, RING, NO CARRIER (also, for busy, if enabled, and dial tone not detected), NO ANSWER, CONNECT XXXX,and ERROR.
X2 Report basic call progress result codes and connections speeds,i.e., OK, CONNECT, RING, NO CARRIER (also, for busy, if enabled, and dial tone not detected), NO ANSWER, CONNECT XXXX,and ERROR.
X3 Report basic call progress result codes and connection rate, i.e., OK, CONNECT, RING, NO CARRIER, NO ANSWER, CONNECT XXXX, BUSY,and ERROR.
X4 Report all call progress result codes and connection rate, i.e., OK, CONNECT, RING, NO CARRIER, NO ANSWER, CONNECT XXXX, BUSY, NO DIAL TONE and ERROR.
Y0 Disable long space disconnect before on-hook.
Y1 Enable long space disconnect before on-hook.
Z0 Restore stored profile 0 after warm reset.
Z1 Restore stored profile 1 after warm reset.
&C0 Force RLSD active regardless of the carrier state.
&C1 Allow RLSD to follow the carrier state.
&D0 Interpret DTR ON-to-OFF transition per &Qn:
&D2 Interpret DTR ON-to-OFF transition per &Qn:
&D3 Interpret DTR ON-to-OFF transition per &Qn:.
&F0 Restore factory configuration 0.
&F1 Restore factory configuration 1.
&K0 Disable DTE/DCE flow control.
&K3 Enable RTS/CTS DTE/DCE flow control.
&K4 Enable XON/XOFF DTE/DCE flow control.
&K5 Enable transparent XON/XOFF flow control.
&K6 Enable both RTS/CTS and XON/XOFF flow control.
&M0 Select asynchronous non-EC mode (same as &Q0)
&Q0 Select direct asynchronous mode.
&Q4 Select Hayes AutoSync mode.
&Q5 Modem negotiates an error corrected link.
&Q6 Select asynchronous operation in normal mode.
&V Display current configurations.
&V1 Display connection statistics.
&W0 Store the active profile in NVRAM profile 0.
&W1 Store the active profile in NVRAM profile 1.
&Y0 Recall stored profile 0 upon power up.
&Y1 Recall stored profile 1 upon power up.
&Zn=x Store dial string x (to 34) to location n (0 to 3).
%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 Return received line signal level.
%Q Report the line signal quality.
\N0 Select normal speed buffered mode.
\N1 Select direct mode.
\N2 Select reliable link mode.
\N3 Select auto reliable mode.
\N4 Force LAPM mode.
\Bn Send break of n x 100 ms.
\N5 Force MNP mode.
\V0 Connect messages are controlled by the command settings X, W, and S95.
\V1 Connect messages are displayed in the single line format.
+H0 Disable RPI
+H1 Enable RPI and set DTE speed to 19200 bps
+H2 Enable RPI and set DTE speed to 38400 bps
+H3 Enable RPI and set DTE speed to 57600 bps
+H11 Enable RPI+ mode.
+MS= Select Modulation This extended-format command selects the modulation and, optionally, enables or disables automode, specifies the lowest and highest connection rates, selects m-Law or A-Law codec type, and enables or disables robbed bit signaling generation (server modem) or detection (client modem) using one to five subparameters. The command format is: +MS=[mod],[automode],[min_rate],[max_rate],[x_law],[rb_signaling]{CR} Notes: For 14400 bps and lower speeds, the Nn command and S37 register can alternatively be used, in which case the +MS subparameters will modified to reflect the Nn and S37=x settings. Use of the Nn and S37=x commands is not recommended but is provided for compatibility with existing communication software. (S37 is not updated by the +MS command.) Subparameters not entered (enter a comma only or {CR} to skip the last subparameter) remain at their current values. Reporting Supported Options: The modem can send a string of information to the DTE consisting of supported options using the following command: +MS=? The response is: +MS: (list of supported {mod} values), (list of supported {automode} values), (list of supported {min_rate} values), (list of supported {max_rate} values), (list of supported {x_law} values), (list of supported {rb_signaling} values) For example: +MS: (0,1,2,3,9,10,11,56,64,69),(0,1),(300-33600),(300- 56000),(0,1),(0,1)

Distinctive Ring Parameters
-SDR=0 Any ring reported as "RING"
-SDR=1 Single ring reported as "RING1
-SDR=2 Double ring reported as "RING2"
-SDR=3 Single & double ring reported as "RING1" & RING2"
-SDR=4 Triple ring reported as "RING3"
-SDR=5 Single & triple ring reported as "RING1" & "RING3"
-SDR=6 Double & triple ring reported and "RING2" & "RING3"
-SDR=7 Any ring reported as "RING1" or "RING2" or "RING3". Use this command to determine the ring types on your phone system.
-SSE=0 Disable DSVD. color:black">
-SSE=1 Enable DSVD.

Error Correction Commands
%C0 Disable data compression.
%C1 Enable MNP 5 data compression.
%C2 Enable V.42 bis data compression.
%C3 Enable both V.42 bis and MNP 5 compression.
\A0 Set maximum block size in MNP to 64.
\A1 Set maximum block size in MNP to 128.
\A2 Set maximum block size in MNP to 192.
\A3 Set maximum block size in MNP to 256.
\Bncolor:black"> Send break of n x 100 ms.

MNP Commands
-K0 Disable MNP 10 extended services.
-K1 Enable MNP 10 extended services.
- K2 Enable MNP 10 extended services detection only.
-SEC=0 Disable MNP10-EC.
-SEC=1,[] Enable MNP10-EC and set transmit level 0 to 30 (0dBm to -30dBm).

Caller ID commands
#CID=0 Disable Caller ID.
#CID=1 Enable Caller ID with formatted presentation.
#CID=2 Enable Caller ID with unformatted presentation.

Fax Class 1 Commands
+FCLASS=n Service class.
+FAE=n Data/fax auto answer

Fax Class 2 Commands
+FCLASS=n Service class.
+FAA=n Adaptive answer.
+FCLASS= Service class.
+FCR= Capability to receive.
+FDCC= DCE capabilities parameters.
+FDIS= Current sessions parameters.
+FPTS= Page transfer status.
+FREV? Identify revision.

Voice/Audio Commands
#MDL? Identify model.
#MFR? Identify manufacturer.
#REV? Identify revision level.

Common Configurations

Force V.42 bis data compression with LAP-M error correction. AT\N4%C2-K0

Force V.42 bis data compression with MNP error correction. AT\N5%C2

Force MNP 5 data compression with MNP error correction. AT\N5%C1

Note: With the setup strings in examples 1-3, if the remote is unable to negotiate the desire rate mode, the modem will disconnect and respond with NO CARRIER.

Auto negotiate data compression and error correction. AT&F (factory defaults) or AT\N3%C3 In this mode, the modem prefers LAP-M over MNP 10, MNP 10 over MNP 4, and V.42 bis over MNP 5. If error correction is not negotiated, the modem will connect in normal mode.