Technical data

WMO2 G900 / G1800 / G1900
WCOM/GSM/WMO2/WMO2ATDOC Friday 21 May 1999
WAVECOM confidential © 19
3.1.2 Answer syntax
There are 2 types of answers: information text and result codes.
The answer of a command may be build of both an information text
and a result code.
The answer may be transmitted in numeric form or alphabetic
(verbose) form depending upon the setting of the V parameter.
The response, either in numeric form or in alphabetic form, consists
of a header, a body and a trailer.
The header and the trailer are the same, there are build with 2
characters <CR> <LF> (Carriage return and Line Feed).
This applies for all commands except the V0 and the Q1
commands.
When the command syntax is wrong, the modem responds ERROR.
When the command syntax is correct but with incomplete or
incorrect parameters, the modem responds +CME ERROR: <Err> or
+CMS ERROR: <CMSErr> with the corresponding error code (<Err>
respectively <CMSErr>).
If the command syntax is correct and all parameters are valid but
the network refuses the command whatever the reason, the modem
responds +CMS ERROR: <CMSErr>, where <CMSErr> is the
reason (if any) given by the network.
The modem responds OK when the network accepted the
command and both the syntax and the parameters where correct.
For some commands such as "AT+CPIN?" or "AT+EXPKEY?" or
"ATQ1", the modem will not give the OK string at the end of the
command execution.
Moreover there are 3 sub-types of answers. These sub-types
describe answers that are return at different states of the modem.
Final result type : indicates the full completion of an AT
command and can be considered as a
willingness to accept new commands
from the TE. Example: "OK" or "ERROR".
Intermediate result type : is a report of the execution progress of
the currently being treated AT
command. Example
"CONNECT <speed>".
Unsolicited result type : indicates the happening of an event
not directly ensuing from a previous AT
command. Example "RING".