25.6. Format of the
Information Response of the +CMGS AT Command in SMS PDU Mode
If
the GSM/GPRS modem or mobile phone sends the SMS message
successfully, it will return an information response to the computer
/ PC. In SMS PDU mode, the information response of the +CMGS AT
command has the following format: (Optional fields are enclosed in
square brackets.)
+CMGS:
message_reference[,SMS-SUBMIT-REPORT_TPDU]
The
message_reference Field
The
first field of the information response of the +CMGS AT command,
message_reference, contains an integer in the range
from 0 to 255. This field tells you
the reference number that was allocated to your SMS message.
The
SMS-SUBMIT-REPORT_TPDU Field
The
second field of the information response of the +CMGS AT command,
SMS-SUBMIT-REPORT_TPDU,
contains a TPDU of the type SMS-SUBMIT-REPORT in hexadecimal format.
It carries a positive submission report returned from the SMSC. It
acknowledges the GSM/GPRS modem or mobile phone that the submission
of the SMS message to the SMSC was successful. The value of
the SMS-SUBMIT-REPORT_TPDU field is a string and so it is
always enclosed in quotes.
Note
that SMS-SUBMIT-REPORT_TPDU is an optional field. A GSM/GPRS
modem or mobile phone includes this field in the information response
only if the messaging service value set by the AT command +CSMS
(command name in text: Select Message Service) is 1 and the mobile
network supports the use of this messaging service value. By default
the messaging service value is 0. Usually this is the value to be
used and the SMS-SUBMIT-REPORT_TPDU
field is not shown.
Feedback Form (ExpandCollapse)
|
|