
SARA-R4/N4 series - AT Commands Manual
UBX-17003787 - R09
9 Short Messages Service
Page 79 of 307
9.11 Send mCMGS
+CMGS
SARA-R404M SARA-R410M-01B SARA-R410M-02B SARA-R410M-52B SARA-R412M
Modules
SARA-N4
Syntax
PIN required
Settings saved Can be aborted
Response time Error reference
Attributes
full
Yes
No
No
Up to 3 min (<1
s for prompt ">"
when present)
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
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
<mr>
Number
Message reference
<length>
Number
Two meanings:
•
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
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. octet with integer value 42 must be written as two
characters 2A (IRA 50 and 65)
<ackpdu>
String
] RP-User-Data element of RP-ACK PDU; the format is
same as for <PDU> in case of SMS
9.11.4 Notes
SARA-R4 / SARA-N4
• The <ackpdu> parameter is not supported.