At Hayes Commands
At Hayes Commands
A complete summary and explanation of the AT command set for Hayes compatible dial-
up modems is given on this page. Defaults are shown in boldface.
Command Function
AT Attention - this precedes all commands except A/ and +++
A/ Execute previous command - does not require a <CR>
Causes the modem to go off hook. If a call is coming in, the modem will try
to answer it. The precedure for answering a call is a short silence and then
A an answer tone. Sending a character to the modem during this procedure
will abort the answer sequence. The amount of time the modem will wait
for a carrier is programmable by modifying the S7 register.
B0 Select CCITT V.22 (1200 bps)
B1 Select Bell 212A (1200 bps)
Select CCITT V23 - Originate mode will transmit data at 75 bps and
receive data at 1200 bps. Answer mode will transmit data at 1200 bps and
B2
receive data at 75 bps. The command N0 (disable auto mode) must be
selected.
D alone will take the modem off-hook and wait for a dial tone. (see X
D command for exceptions). The length of time to wait for a dial tone before
dialing is programmable in register S6.
ATDmn will dial a phone number where m is the modifier: L, W, ,, ;, @, or
Dmn
S. It will dial the telephone number n.
L Dial last number
Wait for dial tone. If you have selected X0 or X1 (disable dial tone
W
detection), then you can use this modifier to override that setting.
Pause during dial. Thie amount of time to pause is determined in register
,
S8.
Return to command mode after dialing. It does not wait for carrier or hang
;
up.
Wait for 5 seconds of silence. This is used to access systems that do not
@
provide a dial tone.
Hook flash. Causes the modem to go on-hook for 0.5 seconds. This is used
!
in PBX systems and for voice features like call waiting.
Dials a stored number. Up to ten numbers can be stored, and the addresses
S=(0-9) are from 0 to 9. To store a number into one of these addresses, use the &Z
command.
Commands issued to the modem are not echoed to the local terminal. This
E0 only matters in the command mode. It does not affect the modem's ability to
send response codes.
http://members.tripod.com/michaelgellis/modem.html 08/12/2006
Modem AT Command Set Página 2 de 8
http://members.tripod.com/michaelgellis/modem.html 08/12/2006
Modem AT Command Set Página 3 de 8
V0 Result codes will be sent in numeric form. (See the result code table)
V1 Result codes will be sent in work form. (See the result code table.)
Report DTE speed only. After connection, there will be no message
W0
about what Error Correction or Data Compression protocol is in use.
Report DCE speed, Error Correction/Data Compression protocol, and DTE
W1
speed
W2 Report DCE speed only
Send OK, CONNECT, RING, NO CARRIER, ERROR and NO ANSWER.
X0
Busy and dial tone detection are disabled.
X1 Send X0 messages and CONNECT speed
X2 Send X1 messages and NO DIAL TONE.
Send X2 messages and BUSY and RING BACK. Dial tone detection is
X3
disabled.
X4 Send all responses.
Y0 Disable long space disconnect.
Enable long space disconnect; with error correction, hang up after sending
Y1 1.6 second long space; without error correction, hang up after 4 second long
space.
Z0 Reset modem to profile 0
Z1 Reset modem to profile 1
This is the default escape sequence. Transfers the modem from data mode
to command mode. Must be preceded by at least 1 second of no characters
+++
and followed by one second of no characters. O0 (ATO0 or ATO) returns
the modem to data mode.
=n Sets the value of the default S register.
& Ampersand commands
&C0 Force data carrier detect (DCD) on
&C1 DCD follows remote carrier
&D0 DTR is assumed on
DTR drop causes modem to go back to command mode without
&D1
disconnecting
&D2 DTR drop causes modem to hang up
DTR drop causes modem to initialize; &Y determines which profile is
&D3
loaded.
&F Load factory profile
&K0 Disable flow control
&K3 Enable RTS/CTS flow control
&K4 Enable XON/XOFF flow control
&K5 Enable transparent software flow control
http://members.tripod.com/michaelgellis/modem.html 08/12/2006
Modem AT Command Set Página 4 de 8
http://members.tripod.com/michaelgellis/modem.html 08/12/2006
Modem AT Command Set Página 5 de 8
http://members.tripod.com/michaelgellis/modem.html 08/12/2006
Modem AT Command Set Página 6 de 8
Carriage return character. Defines the character for carriage return. Range is
Reg. 3
0-127. Default is 13 (carriage return).
Line feed character. Defines the character for the line feed. Range is 0-127.
Reg. 4
Default is 10 (line feed).
Backspace character. Defines the character for the backspace. Range is 0-
Reg. 5
127. Default is 8 (backspace)
Wait before dialing. Sets the length of time to pause after off-hook before
Reg. 6
dial. Range is 2-255 seconds. Default is 2 seconds.
Wait for carrier after dialing. Sets the length of time that the modem waits
Reg. 7 for a carrier from the remote modem before hanging up. Range is 1-255
seconds. Default is 50 seconds.
Pause time for dial delay. Sets the length of time to pause for the pause dial
Reg. 8
modifier ",". Range is 0-255 seconds. Default is 2 seconds.
Carrier detect response time. Defines the length of time a signal is detected
Reg. 9 and qualified as a carrier. Range is 1-255 tenths of a second. Default is 6
(0.6 seconds)
Lost carrier hang up delay. Sets the length of time the modem waits before
Reg. 10 hanging up for a carrier loss. Range is 1-255 tenths of a seconds. Default is
14 (6 seconds ????)
DTMF speed control. Sets the length of tone and the time between tones for
Reg. 11
the tone dialing. Range is 50-255 milliseconds. Default is 95 milliseconds.
Escape Prompt Delay (EPD) timer. Sets the time from detection of the last
Reg. 12 character of the three character escape sequence until the "K" is returned to
the DTE. Range is 0-255 fiftieths of a second. Default is 50 (1 second)
Reg. 13 Reserved
Reg. 14 Reserved
Reg. 15 Reserved
Reg. 16 Reserved
Reg. 17 Reserved
Test timer. Sets the length of loopback test. Range is 0-255 seconds.
Reg. 18
Default is 0 (disable timer)
Reg. 19 Reserved
Reg. 20 Reserved
Reg. 21 Reserved
Reg. 22 Reserved
Reg. 23 Reserved
Reg. 24 Reserved
Delay to DTR. Sets the length of time the modem ignores DTR before
Reg. 25 hanging up. Range is 0-255 hundredths of a seconds. Dafault is 5 (0.05
seconds)
Reg. 26 Reserved
http://members.tripod.com/michaelgellis/modem.html 08/12/2006
Modem AT Command Set Página 7 de 8
Reg. 27 Reserved
Reg. 28 Reserved
Disconnect inactivity timer. Sets the length of time allowed for inactivity
Reg. 30 before the connection is hung up. Range is 0-255 in minutes. Default is 0
(disabled)
XON character. Sets the value of XON character. Range is 0-255. Default is
Reg. 32
17
XOFF character. Sets the value of XOFF character. Range is 0-255. Default
Reg. 33
is 19.
56k data rate (bit-rate). Sets the maximum bit rate for 56K. Range is 0-32.
Bit rate = 32000bps + S34*2000bps. V.34 data rate (bit-rate). Sets the
Reg. 34 maximum bit rate for V.34. Range is 0-8 (2400 baud), 1-10 (3000 baud), 1-
11 (3200 baud), 1-13 (3429 baud) Bit rate = ((S34)+1)*2400bps. Default is
13 (33600 bps)
Reg. 36 Reserved
Line connection speed. 0-Attempt to connect at the highest speed. 3-
Attempt to connect at 300 bps. 4-Attempt to connect at 1200 bps. 6-Attempt
to connect at 2400 bps. 7-Attempt to connect at 4800 bps. 8-Attempt to
Reg. 37
connect at 7200 bps. 9-Attempt to connect at 9600 bps. 10-Attempt to
connect at 12000 bps. 11-Attempt to connect at 14400 bps. 12-Attempt to
connect at V.34. 13-Attempt to connect at 56K, Default is 0.
Delay before forced hang-up. Sets the delay to hang up after the
Reg. 38 disconnecting command is received. Range is 0-255 seconds. Default is 20
seconds.
Reg. 39 Reserved
Reg. 40 Reserved
Reg. 41 Reserved
Reg. 42 Reserved
Reg. 43 Reserved
Reg. 44 Reserved
Reg. 45 Reserved
Reg. 46 Reserved
Reg. 47 Reserved
Reg. 48 Reserved
Reg. 82 Reserved
Call failure reason code. 0-Normal disconnect (no error), 4-Loss of carrier,
5-V.42 negotiation failed to detect an error correction modem at remote
end, 6-No response to complete negotiation, 9-No common protocol, 12-
Reg. 86
Remote initiated a normal disconnect, 13- Remote modem did not respond
after 10 message retransmissions, 14-Protocol violation, 15- Compression
failure, 20- Hang up by inactivity time out.
Transmit level. Set the transmit level in -dBm. Range is 9-15 (-dBm).
http://members.tripod.com/michaelgellis/modem.html 08/12/2006
Modem AT Command Set Página 8 de 8
Complements of the MagicSurfer 56k User's Guide. I/OMAGIC Corporation, 6B Autry, Irvine, CA
92618
Return
http://members.tripod.com/michaelgellis/modem.html 08/12/2006