<length>
Message Length
Integer type value indicating in the text mode (AT+CMGF=1) the length of the message body <data> (or
<cdata>) in characters; or in PDU mode (AT+CMGF=0), the length of the actual TP data unit in octets (i.e., the
RP layer SMSC address octets are not counted in the length) In text mode, the maximum length of an SMS
depends on the used coding scheme: It is 160 characters if the 7 bit GSM coding scheme is used, and 140
characters according to the 8 bit GSM coding scheme.
If the SMS message format is "text mode" (AT+CMGF=1) and the character set is set to "UCS2" with AT+CSCS
and the SMS is also coded as "UCS2" (see <dcs> of AT+CSMP), then the length is in octets instead of
characters.
For concatenated SMS messages the maximum length will be reduced by the length of the user data header with
respect to <ieia> (6 bytes for <ieia>=8 and 7 bytes for <ieia>=16). In the case of 8-bit data, the maximum length
of the short message field is: 140 octets - (6 or 7) = 134 or 133. In the case of GSM 7 bit default alphabet data,
the maximum length of the short message is (140 - (6 or 7))*8/7 = 153 or 152 characters. In the case of 16 bit
UC2 data, the maximum length of the short message is: (140 - (6 or 7))/2)= 67 or 66 characters.
<max>
Maximum number of all segments to be concatenated into one SMS, beginning with 1.
<max>=0 means: ignore the value. This will result in a non-concatenated SMS.
0...255
<mem1>
Memory to be used when listing, reading and deleting messages:
"SM"
SIM message storage
"ME"
Mobile Equipment message storage
"MT"
Sum of "SM" and "ME" storages. Default.
<mem2>
Memory to be used when writing and sending messages:
"SM"
SIM message storage
"ME"
Mobile Equipment message storage
"MT"
Sum of "SM" and "ME" storages. Default.
<mem3>
Received messages will be placed in this memory storage if routing to TE is not set. See command AT+CNMI
with parameter <mt>=2.
"SM"
SIM message storage
"MT"
Sum of "SM" and "ME" storages. Default.
<mid>
Message Identifier
GSM 03.41 CBM Message Identifier in integer format.
<mn>
Message Number
GSM 03.40 TP-Message-Number in integer format.
<mr>
Message Reference
GSM 03.40 TP-Message-Reference in integer format.
<oa>
Originating Address
GSM 03.40 TP-Originating-Address Address-Value field in string format; BCD numbers (or GSM default alphabet
characters) are converted into characters; type of address given by <tooa>.
<page>
Page Parameter
GSM 03.41 CBM Page Parameter bits 4-7 in integer format.
<pages>
Page Parameter
GSM 03.41 CBM Page Parameter bits 0-3 in integer format.
<pdu>
In the case of SMS: GSM 04.11 SC address followed by GSM 03.40 TPDU in hexadecimal format: ME/TA
converts each octet of TP data unit into hexadecimal numbers containing two IRA characters (e.g., octet with
integer value 42 is presented to TE as two characters 2A: IRA 50 and 65). In the case of CBS: <ra> GSM 03.40
TP-Recipient-Address Ad-dress-Value field in string format; BCD numbers (or GSM default alphabet characters)
are converted into characters; type of address given by <tora>.
Multi-Tech Systems, Inc. AT Commands for EDGE Modems (S000371G)
Chapter 12 – Short Message Service (SMS) Commands
197
Need help?
Do you have a question about the MultiModem EDGE and is the answer not in the manual?