User Manual

Table Of Contents
SARA-R4/N4 series-AT Commands Manual
UBX-17003787 - R11
9Short Messages Service
Page 80 of 308
Parameter Type Description
of the currently selected TE character set (see the +CSCS AT command); type of
address given by <tooa>
<tooa> Number TP-Originating-Address Type-of-Address octet (see the 3GPP TS 24.011 [13]); see the
<toda> parameter for the default value
<toda> Number TP-Destination-Address Type-of-Address octet (see the 3GPP TS 24.011 [13]); when
the first character of <da> is + (IRA 43) the default value is 145, otherwise it is 129)
<stat> Number or
String
Number type in PDU mode (default value: 2), or string type in text mode (default
value: "STO UNSENT"); it indicates the message status in memory:
0: in PDU mode or "REC UNREAD" in text mode: received unread SMS messages
1: in PDU mode or "REC READ" in text mode: received read SMS messages
2: in PDU mode or "STO UNSENT" in text mode: stored unsent SMS messages
3: in PDU mode or "STO SENT" in text mode: stored sent SMS messages
<text> String SMS string
<index> Number Storage position
<length> Number The parameter meaning depends on the message format:
In text mode: number of characters
In PDU mode: PDU's length in octets without the Service Center's address. In
example: 039121430100038166F6000004E374F80D is a PDU with Service Center's
number +1234, that generates the address 03912143 (4 octets). Thus in this case
<length>=13.
<PDU> String Protocol Data Unit: each 8-bit octet of the PDU must be written as two IRA character
long hexadecimal numbers, e.g. an octet with integer value 42 must be written as two
characters 2A (IRA 50 and 65)
9.13Send message from storage +CMSS
+CMSS
SARA-R404M SARA-R410M-01B SARA-R410M-02B SARA-R410M-52B SARA-R412MModules
SARA-N4
Syntax PIN required Settings saved Can be aborted Response time Error referenceAttributes
full Yes No No Up to 3 min +CMS Error
9.13.1Description
Sends message with location value <index> from the preferred message storage <mem2> to the network
(SMS-SUBMIT or SMS-COMMAND). If a new recipient address <da> is given for SMS-SUBMIT, it will be used
instead of the one stored with the message. Reference value <mr> is returned to the DTE on successful
message delivery.
9.13.2Syntax
Type Syntax Response Example
Text mode (+CMGF=1):
AT+CMSS=<index>[,<da>[,<toda>]]
+CMSS: <mr>
OK
AT+CMSS=302
+CMSS: 3
OK
Set
PDU mode (+CMGF=0):
AT+CMSS=<index>
+CMSS: <mr>
OK
AT+CMSS=302
+CMSS: 4
OK
Test AT+CMSS=? OK
9.13.3Defined values
Parameter Type Description
<index> Number Storage position
<da> String Destination address
<toda> Number Type of address of <da> - octet
<mr> Number Message reference