SARA-R4/N4 series - AT Commands ManualUBX-17003787 - R09 9 Short Messages ServicePage 80 of 3079.12 Write message to memory +CMGW+CMGWSARA-R404M SARA-R410M-01B SARA-R410M-02B SARA-R410M-52B SARA-R412MModulesSARA-N4Syntax PIN required Settings saved Can be aborted Response time Error referenceAttributesfull Yes No No <10 s +CMS Error9.12.1 DescriptionStores a message (SMS-DELIVER or SMS-SUBMIT) to memory storage and returns the memorylocation of the stored message. indicates that the SMS shall be stored, while indicatesaborting of the edited SMS.The entered text/PDU is preceded by a ">" (Greater-Than sign) character, and this indicates that theinterface is in "text/PDU enter" mode. The DCD signal shall be in ON state while the text/PDU is entered.9.12.2 SyntaxType Syntax Response ExampleText mode (+CMGF=1):AT+CMGW[=[,[,]]]text is entered+CMGW: OKAT+CMGW="091137880"> This is the text+CMGW: 303OKSetPDU mode (+CMGF=0):AT+CMGW=[,]PDU is given+CMGW: OKAT+CMGW=13> 039121430100038166F6000004E374F80D+CMGW: 303OKTest AT+CMGW=? OK9.12.3 Defined valuesParameter Type Description String TP-Destination-Address Address-Value field (see the 3GPP TS 23.040 [8]); BCDnumbers (or GSM 7 bit default alphabet characters) are converted to charactersof the currently selected TE character set (see the +CSCS AT command); type ofaddress given by String TP-Originating-Address Address-Value field (see the 3GPP TS 23.040 [8]); BCDnumbers (or GSM 7 bit default alphabet characters) are converted to charactersof the currently selected TE character set (see the +CSCS AT command); type ofaddress given by Number TP-Originating-Address Type-of-Address octet (see the 3GPP TS 24.011 [13]); see the parameter for the default value Number TP-Destination-Address Type-of-Address octet (see the 3GPP TS 24.011 [13]); whenthe first character of is + (IRA 43) the default value is 145, otherwise it is 129) Number orStringNumber type in PDU mode (default value: 2), or string type in text mode (defaultvalue: "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 String SMS string Number Storage position 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. Inexample: 039121430100038166F6000004E374F80D is a PDU with Service Center's