User Manual

Table Of Contents
SARA-R4/N4 series-AT Commands Manual
UBX-17003787 - R11
9Short Messages Service
Page 78 of 308
Parameter Type Description
<fo> Number First octet of the SMS TPDU (see 3GPP TS 23.040 [8])
<mr> Number Message reference
<ra> String Recipient address field
<tora> Number Type of address of <ra> - octet
<dt> String Discharge time in format "yy/MM/dd,hh:mm:ss+zz"; the time zone is expressed in
steps of 15 minutes. The range goes from -48 to +56
<st> Number Status of an SMS STATUS-REPORT
<ct> Number TP-Command-Type (default 0)
<sn> Number CBM serial number
<mid> Number CBM message identifier
<page> Number 3GPP TS 23.041 [9] CBM Page Parameter bits 4-7 in integer format
<pages> Number 3GPP TS 23.041 [9] CBM Page Parameter bits 0-3 in integer format
<pdu> String Protocol data unit: each 8-bit octet is presented as two IRA character long
hexadecimal numbers, e.g. octet with integer value 42 is presented to TE as two
characters 2A (IRA 50 and 65)
<dcs> Number Data Coding Scheme
9.11Send message +CMGS
+CMGS
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 (<1
s for prompt ">"
when present)
+CMS Error
9.11.1Description
Sends a message from a DTE to the network (SMS-SUBMIT). The message reference value <mr> is returned to
the DTE for a successful message delivery. Optionally (when enabled by +CSMS AT command and the network
supports) <ackpdu> is returned. Values can be used to identify message upon unsolicited delivery status report
result code. <Ctrl-Z> indicates that the SMS shall be sent, while <ESC> indicates aborting of the edited SMS.
The entered text/PDU is preceded by a ">" (Greater-Than sign) character, and this indicates that the
interface is in "text/PDU enter" mode. The DCD signal shall be in ON state while the text/PDU is entered.
9.11.2Syntax
Type Syntax Response Example
Text mode (+CMGF=1):
AT+CMGS=<da>[,<toda>]<CR>
> text is entered<Ctrl-Z/ESC>
+CMGS: <mr>
OK
AT+CMGS="0171112233"<CR>
> This is the text<Ctrl-Z>
+CMGS: 2
OK
Set
PDU mode (+CMGF=0):
AT+CMGS=<length><CR>
> PDU is given<Ctrl-Z/ESC>
+CMGS: <mr>[,<ackpdu>]
OK
AT+CMGS=13<CR>
> 039121430100038166F600000
4E374F80D<Ctrl-Z>
+CMGS: 2
OK
Test AT+CMGS=? OK
9.11.3Defined values
Parameter Type Description
<da> String Destination address
<toda> Number Type of address of <da> - octet
<text> String SMS String