User Manual

Table Of Contents
SARA-R4/N4 series-AT Commands Manual
UBX-17003787 - R11
9Short Messages Service
Page 79 of 308
Parameter Type Description
<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
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. octet with integer value 42 must be written as two
characters 2A (IRA 50 and 65)
<ackpdu> String See the 3GPP TS 23.040 [8] 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.
9.12Write message to memory +CMGW
+CMGW
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 <10 s +CMS Error
9.12.1Description
Stores a message (SMS-DELIVER or SMS-SUBMIT) to memory storage <mem2> and returns the memory
location <index> of the stored message. <Ctrl-Z> indicates that the SMS shall be stored, 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.12.2Syntax
Type Syntax Response Example
Text mode (+CMGF=1):
AT+CMGW[=<oa/da>[,<tooa/toda>[,
<stat>]]]<CR>
text is entered<Ctrl-Z/ESC>
+CMGW: <index>
OK
AT+CMGW="091137880"<CR>
> This is the text<Ctrl-Z>
+CMGW: 303
OK
Set
PDU mode (+CMGF=0):
AT+CMGW=<length>[,<stat>]<CR>
PDU is given<Ctrl-Z/ESC>
+CMGW: <index>
OK
AT+CMGW=13<CR>
> 039121430100038166F600000
4E374F80D<Ctrl-Z>
+CMGW: 303
OK
Test AT+CMGW=? OK
9.12.3Defined values
Parameter Type Description
<da> String TP-Destination-Address Address-Value field (see the 3GPP TS 23.040 [8]); BCD
numbers (or GSM 7 bit default alphabet characters) are converted to characters
of the currently selected TE character set (see the +CSCS AT command); type of
address given by <toda>
<oa> String TP-Originating-Address Address-Value field (see the 3GPP TS 23.040 [8]); BCD
numbers (or GSM 7 bit default alphabet characters) are converted to characters