Basic AT Commands

AT Commands - full command set PDF file 1.8 megs

below is a short list 

basic AT
Command
set
Function
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.
C1 Return OK message.
Dn Dial modifier.
E0 Turn off command echo.
E1 Turn on command echo.
F0 Select auto-detect mode (equivalent to N1).
F1 Select V.21 or Bell 103.
F2 Reserved.
F3 Select V.23 line modulation.
F4 Select V.22 or Bell 212A 1200 bps line speed.
F5 Select V.22 bis line modulation.
F6 Select V.32 bis or V.32 4800 line modulation.
F7 Select V.32 bis 7200 line modulation.
F8 Select V.32 bis or V.32 9600 line modulation.
F9 Select V.32 bis 12000 line modulation.
F10 Select V.32 bis 14400 line modulation.
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.
L0 Set low speaker volume.
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:
&Q0, &Q5, &Q6: The modem ignores DTR.
&Q1, &Q4: The modem hangs up. 
&Q2, &Q3: The modem hangs up.
&D1 Interpret DTR ON-to-OFF transition per &Qn: 
&Q0, &Q1, &Q4,. &Q5, &Q6: Asynchronous escape. 
&Q2, &Q3: The modem hangs up.
&D2  Interpret DTR ON-to-OFF transition per &Qn: 
&Q0 through &Q6: The modem hangs up.
&D3 Interpret DTR ON-to-OFF transition per &Qn: 
&Q0, &Q1, &Q4,. &Q5, &Q6: The modem performs soft reset. 
&Q2, &Q3: The modem hangs up.
&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. * Serial interface operation only.
&M0 Select direct asynchronous mode.
&M1 Select sync connect with async off-line command mode. *
&M2 Select sync connect with async off-line command mode and enable DTR dialing of directory zero. *
&M3 Select sync connect with async off-line command mode and enable DTR to act as Talk/Data switch. *
&Q0 Select direct asynchronous mode.
&Q1 Select sync connect with async off-line command mode. *
&Q2 Select sync connect with async off-line command mode and enable DTR dialing of directory zero. *
&Q3 Select sync connect with async off-line command mode and enable DTR to act as Talk/Data switch. *
&Q4 Select Hayes AutoSync mode.
&Q5 Modem negotiates an error corrected link.
&Q6 Select asynchronous operation in normal (buffered) mode.
&R0 CTS tracks RTS (async) or acts per V.25 (sync).
&R1 CTS is always active.
&S0 DSR is always active.
&S1 DSR acts per V.25.
&T0 Terminate any test in progress.
&T1 Initiate local analog loopback.
&T2 Returns ERROR result code.
&T3 Initiate local digital loopback.
&T4 Allow remote digital loopback.
&T5 Disallow remote digital loopback request.
&T6 Request an RDL without self-test.
&T7 Request an RDL with self-test.
&T8 Initiate local analog loop with self-test.
&V Display current configurations.
&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 35) to location n (0 to 3 depending upon modem model).
\G0 Disable modem to modem flow control.
\G1 Enable modem to modem flow control.
\N0 Select normal speed buffered mode.
\N1 Select direct mode.
\N2 Select reliable link mode.
\N3 Select auto reliable mode.
\N4 Force LAPM mode.
\N5 Force MNP mode.
\P0 Enable Auto Dial via DTR off to on sequence
\P1 Disable Auto Dial (default)
%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.

 

SUMMARY OF THE ROCKWELL "AT" COMMAND SET

To communicate using the modem, use an asynchronous communication program. The command set for the modems is compatible with the Hayes command set.

 The modem is controlled and configured by the AT (attention command). Each command consists of the following elements (with the exception of the A/and the +++ command that will be discussed later). A command is not entered until a carriage return <ENTER> is entered. Spaces entered are ignored. For example, to enter the command `Answer', type ATA and <ENTER>.

Some commands do not have parameters. Any missing parameters in a command is assigned the value zero, which may be a valid parameter for the command. The sequence followed by AT command causes the modem to enter a command state. That is, AT without a command serves as a wake up code and an "OK" appears on the screen.  The modem queues the commands in a 40-character command line. The command line begins with AT and can have several commands. A separator is not required between the commands.

 When a carriage return is received, the commands are performed in the order in which they are sent to the modem. If more than 40 characters are sent to the modem, an error occurs and all commands must be re-entered.

 A common configuration for a remote modem is to answer the call and hang up on loss of carrier. To do this the RS232 interface has to be set for the correct configuration.

Option if the Computer uses pins 2, 3, & 7 only - Set the AT commands as follows

ATS0=1 (modem will answer on the first ring)
AT&D0 (modem will ignore DTR) factory default is AT&D1 which allows the modem to answer only if DTR is high.
AT&V to check the state of the "S" registers use AT&V
AT&W0 Don't forget to burn the new codes into E-PROM by AT&W0

To see your typing you made need to turn on E1 for the modem to echo back responses. Some software doe not like it's data echoed back so don't forget to check E1/E0 if your software is acting strange.  

Note: you may want to put the modem into a quiet mode - ATQ1 (ATQ0 is the default) modem does not send result codes - which can confuse the computer.

A good configuration for a dumb mode operation is        AT&F&C1&D0E0Q1S0=1&W0


 
jump to Home page
jump to Modem basics page

 
Sales:  CompanyEmail

610-399-3911
Fax 301-924-7403

3405 Olandwood Court
Olney, MD 20832

e-mail experts@dceexpress.com