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.


Previous Page Page 49 of 65 Next Page

Contents at a Glance (Click Here for Full Table of Contents)

Feedback Form (ExpandCollapse)

What do you think about this web page?






(Optional) Please provide us more details. For example, suppose you select option 2 above, can you tell us specifically what information is missing? You can also suggest anything that can help us improve this web page.

(Optional) Your name:

(Optional) Your email address:

Please enter again to confirm:

Due to the amount of messages we received, we may not be able to reply to all messages.