beautypg.com

Write message to memory #cmgw, Syntax, Parameters and values for pdu mode – Synaccess Networks NP-0801DTM User Manual

Page 211: Parameters and values for text mode

background image

CUSTOM AT COMMANDS 

 

 

211 

HSPA+ AT Commands Reference Guide

 

Write Message to Memory   #CMGW 

For both PDU mode and text mode, Execute command writes a new message in the  memory storage. 

Test command returns the OK result code. 

Syntax 

Command 

Command type 

AT#CMGW=, 

Execute, PDU mode 

AT#CMGW=, 

Execute, Text mode 

AT#CMGW=? 

Test 

Parameters and Values for PDU Mode 

 

length in bytes of the PDU to be written.

 

7‐164 

 

 

PDU in hexadecimal format (each octet of the PDU is given as two IRA character 
long hexadecimal number) and given in one line. 
If message is successfully written in the memory, then the result is sent in the 
format: 
#CMGW:   
where: 
 ‐ message location index in the memory 
If message storing fails for some reason, an error code is reported. 

Parameters and Values for Text Mode 

 

String type, destination address represented in the currently selected character 
set. See +CSCS.

 

7‐164 

 

 

Text to write. Enclose entered text between double quotes. Format text as 
follows: 

„

If current  indicates that GSM03.38 default alphabet is used 
and current  indicates that 3GPP TS 23.040 TP‐User‐Data‐
Header‐Indication is not set, then ME/TA converts the entered 
text into GSM alphabet, according to GSM 27.005, Annex A. For 
more information about  and , see +CSMP. 

„

If current  indicates that 8‐bit or UCS2 data coding scheme is 
used or current  indicates that 3GPP TS 23.040 TP‐User‐Data‐
Header‐Indication is set. For more information about  and 
, see +CSMP. 

Entered text consists of two IRA character long hexadecimal 
numbers which ME/TA converts into 8‐bit octet. For example 
the ‘asterisk’ is entered as 2A (IRA50 and IRA65) and this is 
converted to an octet with integer value 0x2A. 

If message is successfully written in memory, the result is sent in the format: 
#CMGW:  
where: 
 ‐ message location index in the memory 
If message storing fails for some reason, an error code is reported.