AT Commands Structure
Command Structure
An AT command line may contain one or more commands. Delimiters are used to separate the
commands from each other, according to the following structure:
Prefix
Command1
Each AT command has the "AT" prefix string.
Each AT command has the suffix <CR>.
The delimiter is either a semicolon ";" or none, meaning space (basic commands).
Each AT command has the following structure:
Token
The following figure outlines the basic structure of an AT command line:
Figure 2-2: Basic Structure of a Command Line
The following rules must be observed when issuing a command line to the modem:
•
Every command line must begin with the letters AT.
•
Several commands can be concatenated as one line, as long as the total line does not exceed
140 characters with semicolon characters.
•
Characters:
Spaces are ignored. You can leave spaces between each command and between characters of a
command. You can also include punctuation in telephone numbers, and type commands in either
UPPERCASE or lowercase. For example, the following commands are identical:
ATDT8005551234 < Enter > or
atdt (800) 555-1234 < Enter >
Backspace <S5> character is allowed.
•
To cancel a dialing command in progress, send any ASCII character to the modem.
•
To execute the command line, send the <CR> ASCII character.
April 15, 2008
Delimiter
Command2
Mode
Arguments
Command
Extended commands are
line prefix
delimited with semicolon
Subparameter
ATCMD1 CMD2=12; +CMD1; +CMD2=,,15; +CMD2?; +CMD2=?<CR>
Basic command
(no + prefix)
Extended command
(prefixed with +)
G24-L AT Commands Reference Manual
Chapter 2: Introduction to AT Commands
Delimiter
...
termination character
Read command for checking
current subparameter values
Subparameters
may be omitted
Test command for checking
possible subparameter values
CommandN
Suffix
Command line
2-3