Modem AT Command Set

原创 2005年05月23日 17:56:00

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.

CommandFunction
ATAttention - this precedes all commands except A/ and +++
A/Execute previous command - does not require a <CR>
ACauses 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 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.
B0Select CCITT V.22 (1200 bps)
B1Select Bell 212A (1200 bps)
B2Select 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 receive data at 75 bps. The command N0 (disable auto mode) must be selected.
DD alone will take the modem off-hook and wait for a dial tone. (see X command for exceptions). The length of time to wait for a dial tone before dialing is programmable in register S6.
DmnATDmn will dial a phone number where m is the modifier: L, W, ,, ;, @, or S. It will dial the telephone number n.
LDial last number
WWait for dial tone. If you have selected X0 or X1 (disable dial tone 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.
S=(0-9)Dials a stored number. Up to ten numbers can be stored, and the addresses are from 0 to 9. To store a number into one of these addresses, use the &Z command.
E0Commands issued to the modem are not echoed to the local terminal. This only matters in the command mode. It does not affect the modem's ability to send response codes.
E1Commands are echoed to the local terminal.
H0Force modem on-hook (hang-up)
H1Force modem off-hook (to answer or dial).
I0Return numeric product code
I1Return hardware variation code
I2Report internal code
I3Report software revision number
I4Report product feature listing
L0Speaker volume zero
L1Speaker volume low
L2Speaker volume low
L3Speaker volume low (Hardware currently limits volume adjustment to on/off)
M0Speaker always off
M1Speaker on until carrier detected
M2Speaker always on
M3Speaker on during answering only
N0Disable auto-mode. This forces the modem to connect at the speed specified in register S37
N1Enable auto-mode. The modem will answer at the highest available line speed and ignore any ATBn command.
O0Return to data mode. If you have entered the command mode using the time independent escape sequence, this will put you back in data mode without going on-hook.
O1Retrain the modem. If the line condition has changed since the original connection, retraining the modem will cause it to reconnect at the most efficient speed for the current line condition.
PPulse dialing allows the modem to work on telephone networks where one is not supported. Pulse and tone dialing cannot be mixed on the same command line.
Q0Enable response to DTE.
Q1Disable response to DTE. The modem does not respond to the terminal. Issuing a command will not produce a response (unless the command is something like ATZ, which will restore this setting to default).
SnSet default S-register. Any subsequent = or ? commands will modify the default S register.
Sn=mSet register n to value m
Sn?Return the value of register n
TTone dialing - Pulse and tone dialing can not be mixed on the same command line.
V0Result codes will be sent in numeric form. (See the result code table)
V1Result codes will be sent in work form. (See the result code table.)
W0Report DTE speed only. After connection, there will be no message about what Error Correction or Data Compression protocol is in use.
W1Report DCE speed, Error Correction/Data Compression protocol, and DTE speed
W2Report DCE speed only
X0Send OK, CONNECT, RING, NO CARRIER, ERROR and NO ANSWER. Busy and dial tone detection are disabled.
X1Send X0 messages and CONNECT speed
X2Send X1 messages and NO DIAL TONE.
X3Send X2 messages and BUSY and RING BACK. Dial tone detection is disabled.
X4Send all responses.
Y0Disable long space disconnect.
Y1Enable long space disconnect; with error correction, hang up after sending 1.6 second long space; without error correction, hang up after 4 second long space.
Z0Reset modem to profile 0
Z1Reset 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.
=nSets the value of the default S register.
&Ampersand commands
&C0Force data carrier detect (DCD) on
&C1DCD follows remote carrier
&D0DTR is assumed on
&D1DTR drop causes modem to go back to command mode without disconnecting
&D2DTR drop causes modem to hang up
&D3DTR drop causes modem to initialize; &Y determines which profile is loaded.
&FLoad factory profile
&K0Disable flow control
&K3Enable RTS/CTS flow control
&K4Enable XON/XOFF flow control
&K5Enable transparent software flow control
&K6Enable both RTS/CTS and XON/XOFF flow control
&P0Selects 33%-67% make/break ratio at 10 pulses per second.
&P1Selects 33%-67% make/break ration at 20 pulses per second
&P2Selects 33%-61% make/break ration at 10 pulses per second
&P3Selects 33%-61% make/break ration at 20 pulses per second
&S0Force DSR on
&S1DSR on at the start of handshaking and off after carrier loss
&T0Terminate test
&V0Display active profile
&V1Display stored profiles
&V2Display stored telephone numbers
&W0Save active profile to profile 0
&W1Save active profile to profile 1
&Y0Use profile 0 on powerup
&Y1Use profile 1 on powerup
&Zn=mSave telephone number (up to 36 digits) into memory location n (0-9)
%Percent commands
%ADefault is set to each country encoding law. For example, for USA %A is 0, for Germany %A is 1.
%A0Mu-law encoding
%A1A-law encoding
%C0Disable data compression
%C1Enable MNP5 compression
%C2Enable V.42bis compression
%C3Enable both V.42bis and MNP5
%E0Disable auto-retrain
%E1Enable auto-retrain
%E2Enable auto-retrain and fallback
%E3Enable auto-retrain and fast hang up
%LReport received signal level in -dBm
%N0Dynamic CPU loading disabled
%N1Dynamic CPU loading not to exceed 10%
%N2Dyanmic CPU loading not to exceed 20%
%N3Dyanmic CPU loading not to exceed 30%
%N4Dyanmic CPU loading not to exceed 40%
%N5Dyanmic CPU loading not to exceed 50%
%N6Dyanmic CPU loading not to exceed 60%
%N7Dyanmic CPU loading not to exceed 70%
%N8Dyanmic CPU loading not to exceed 80%
%N9Dyanmic CPU loading not to exceed 90%
%QReport line signal quality
/Backslash commands
/A064-character max MNP block size
/A1128-character max. MNP block size
/A2192-character max. MNP block size
/A3256-character max. MNP block size
/BnIn non-error correction mode, transmit break in 100 ms units (1-9 with default 3)
/G0Disable XON/XOFF flow control (modem to modem)
/G1Enable XON/XOFF flow control (modem to modem)
/KnDefine break type
/L0Use stream mode for MNP
/L1Use interactive block mode for MNP
/N0Normal mode; speed control without error correction
/N1Plain mode; no speed control and no error correction
/N2Reliable mode
/N3Auto-reliable mode
/N4LAPM error correction only
/N5MNP error correction only
*Asterisk commands
*Q0Send the "CONNECT xxxx" result codes to the DTE when an invalid TIES escape sequence is detected after the "OK" response has already been sent
*Q1Does NOT send the "CONNECT xxxx" result codes to the DTE when an invalid TIES escape sequence is detected after the "OK" response has already been sent
S Registers 
Reg. 0Rings to auto-answer. Sets the number of rings required before the modem answers. 0 setting disable auto-answer. Range is 0-255 rings. Default is 0 for auto-answer disabled.
Reg. 1Ring counter. Counts the number of rings before the modem answers. Range is 0-255 rings. Default is 0.
Reg. 2Escape character. Defines the character used for the three-charracter escape code sequence. 0 setting disables the escape code character. Range is 0-127. Default is 43 (+)
Reg. 3Carriage return character. Defines the character for carriage return. Range is 0-127. Default is 13 (carriage return).
Reg. 4Line feed character. Defines the character for the line feed. Range is 0-127. Default is 10 (line feed).
Reg. 5Backspace character. Defines the character for the backspace. Range is 0-127. Default is 8 (backspace)
Reg. 6Wait before dialing. Sets the length of time to pause after off-hook before dial. Range is 2-255 seconds. Default is 2 seconds.
Reg. 7Wait for carrier after dialing. Sets the length of time that the modem waits for a carrier from the remote modem before hanging up. Range is 1-255 seconds. Default is 50 seconds.
Reg. 8Pause time for dial delay. Sets the length of time to pause for the pause dial modifier ",". Range is 0-255 seconds. Default is 2 seconds.
Reg. 9Carrier detect response time. Defines the length of time a signal is detected and qualified as a carrier. Range is 1-255 tenths of a second. Default is 6 (0.6 seconds)
Reg. 10Lost carrier hang up delay. Sets the length of time the modem waits before hanging up for a carrier loss. Range is 1-255 tenths of a seconds. Default is 14 (6 seconds ????)
Reg. 11DTMF speed control. Sets the length of tone and the time between tones for the tone dialing. Range is 50-255 milliseconds. Default is 95 milliseconds.
Reg. 12Escape Prompt Delay (EPD) timer. Sets the time from detection of the last 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. 13Reserved
Reg. 14Reserved
Reg. 15Reserved
Reg. 16Reserved
Reg. 17Reserved
Reg. 18Test timer. Sets the length of loopback test. Range is 0-255 seconds. Default is 0 (disable timer)
Reg. 19Reserved
Reg. 20Reserved
Reg. 21Reserved
Reg. 22Reserved
Reg. 23Reserved
Reg. 24Reserved
Reg. 25Delay to DTR. Sets the length of time the modem ignores DTR before hanging up. Range is 0-255 hundredths of a seconds. Dafault is 5 (0.05 seconds)
Reg. 26Reserved
Reg. 27Reserved
Reg. 28Reserved
Reg. 30Disconnect inactivity timer. Sets the length of time allowed for inactivity before the connection is hung up. Range is 0-255 in minutes. Default is 0 (disabled)
Reg. 32XON character. Sets the value of XON character. Range is 0-255. Default is 17
Reg. 33XOFF character. Sets the value of XOFF character. Range is 0-255. Default is 19.
Reg. 3456k 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 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. 36Reserved
Reg. 37Line 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 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.
Reg. 38Delay before forced hang-up. Sets the delay to hang up after the disconnecting command is received. Range is 0-255 seconds. Default is 20 seconds.
Reg. 39Reserved
Reg. 40Reserved
Reg. 41Reserved
Reg. 42Reserved
Reg. 43Reserved
Reg. 44Reserved
Reg. 45Reserved
Reg. 46Reserved
Reg. 47Reserved
Reg. 48Reserved
Reg. 82Reserved
Reg. 86Call 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-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.
Reg. 91Transmit level. Set the transmit level in -dBm. Range is 9-15 (-dBm). Default is 11 (-11 dBm)
Class 8Voice Mode AT Commands Summary
ATAAnswering in Voice Mode
ATDDial command in Voice Mode
ATHHang up in Voice Mode
ATZReset from Voice Mode
AT#BDRSelect baud rate (turn off autobaud)
AT#CIDEnable Caller ID detection and select reporting format
AT#CLSSelect data, fax, or voice
AT#MDL?Identify model
AT#MFR?Identify manufacturer
AT#TLTransmit level control
AT#REV?Identify revision level
AT#RGRecord gain control
AT#SPKChange the setting of Speakerphone
AT#VBSBits per sample (ADPCM)
AT#VBTBeep tone timer
AT#VLSVoice line select (ADPCM)
AT#VRARingback goes away timer (originate)
AT#VRXVoice Receive Mode (ADPCM)
AT#VSDSilence deletion tuner (voice receive, ADPCM)
AT#VSPSilence detection period (voice receive, ADPCM)
AT#VSSSilence sensitivity tuner (voice receive)
AT#VTXVoice Transmit Mode (ADPCM)
AT#VBQ?Query buffer size
AT#VCI?Identify compression method (ADPCM)
AT#VRNRingback never came timer (originate)
AT#VSKBuffer skid setting
AT#VSRSampling rate selection (ADPCM)
AT#VTDDTMF/tone reporting capability
AT#VTSPlay tone string (online voice command)

Complements of the MagicSurfer 56k User's Guide. I/OMAGIC Corporation, 6B Autry, Irvine, CA 92618

Return

You are visitor number

MD230/MD231 AT Command Set

  • 2010年10月13日 16:01
  • 1.55MB
  • 下载

Telit AT Command set

  • 2014年04月03日 16:15
  • 7.69MB
  • 下载

Modem的调试以及AT命令【转载】

Modem的调试以及AT命令【转载】 Modem配置过程: 对于 Modem 的配置过程而言,我们现在一般使用 kppp 进行拨号,使用这个程序整个拨号过程将变得非常简单。因此本文就不再介绍使用...

Motorola_AT_Command_Set

  • 2008年09月23日 06:22
  • 488KB
  • 下载

WAVECOM CDMA MODEM短信接收方式的细微差别,AT+CNMI指令详解

AT+CNMI指令详解类别:技术文章来源:未知作者:未知关键字:AT+CNMI加入日期:2011-2-11 AT+CNMI指令详解GSM Modem一般都支持一条“AT+CNMI”指令,用于设定当有某...

高通modem侧新增AT命令

modem侧新增AT命令 下面列举出与ATCoP相关的一些主要的资源目录: filename Description Dsat.h ATCoP外部模块使用的定义,函数和数据...

SCSI-3 Block Command SBC2 Set

  • 2011年07月06日 10:14
  • 1.12MB
  • 下载

OT8000 UART Command set

  • 2015年08月21日 15:29
  • 897KB
  • 下载

SIM800L AT command

/*********************************************************** AT+ICF== , ...
内容举报
返回顶部
收藏助手
不良信息举报
您举报文章:Modem AT Command Set
举报原因:
原因补充:

(最多只允许输入30个字)