Podunas, Elthon John S. Bscpe Types of Commands
Podunas, Elthon John S. Bscpe Types of Commands
BSCpE
Types of Commands
AT commands have three basic structures, some of which are not applicable to all command types, for
further information see the individual commands.
Test Commands (ATxxx=?) tests the existence of a command and checks its range of
subparameter(s). UbiNetics may not support the full range of values returned by this command.
Read Commands (ATxxx?) reads the current value of the subparameter(s).
Set Command (ATxxx=a,b) will attempt to set a new subparameter value(s). If the command is
successful the AT command interpreter will return OK (if ATV1, ATQ0) otherwise an error or
informative result code will be returned.
Command Line Editing
When using a terminal screen to talk directly to the modem, the Back Space <bs> character is useful for
deleting previous character(s) sent in error. However Back Space can not delete the initial AT or the line
termination character <cr>.
Command Line Termination
The line termination character Carriage Return <cr> tells the modem to accept and process the command.
Command Formatting
Result code(s) that are sent from the modem use the Line Feed character <lf> appended to a Carriage
Return <cr>, to correctly format the text on different lines.
Command Line Echo
In command mode, characters that are sent to the modem are echoed back to the DTE. This can be
disabled by using the AT Command ATE0.
Concatenation
Several commands may be joined together to form a single command string, that must be no longer than
350 characters (including the line termination character <cr>). When concatenating commands only one
AT is required at the beginning of the string and one carriage return at the end. In the middle, commands
joined together in the order to be processed. Extended command i.e. ones which start AT+ also require an
additional semi-colon (;). If an error occurs whilst processing the string, the following commands will not
be processed and an error returned. See the examples below;
ATE0V1D123456;<cr>
AT+CMGR=1,2;+CMGR=3,4<cr>
Some AT commands are not suitable for concatenation and careful thought is required before stringing
together many AT commands.
Response Code Format
The format of the result code is controlled by ATV. The default setting is verbose <cr><lf>OK<cr><lf>.