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

Advertising
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 <memw> memory storage. 

Test command returns the OK result code. 

Syntax 

Command 

Command type 

AT#CMGW=<length>,<pdu> 

Execute, PDU mode 

AT#CMGW=<da>,<text> 

Execute, Text mode 

AT#CMGW=? 

Test 

Parameters and Values for PDU Mode 

<length> 

length in bytes of the PDU to be written.

 

7‐164 

 

<pdu> 

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:  <index> 
where: 
<index> ‐ message location index in the memory <memw>. 
If message storing fails for some reason, an error code is reported. 

Parameters and Values for Text Mode 

<da> 

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

 

7‐164 

 

<text> 

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

„

If current <dcs> indicates that GSM03.38 default alphabet is used 
and current <fo> 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 <dcs> and <fo>, see +CSMP. 

„

If current <dcs> indicates that 8‐bit or UCS2 data coding scheme is 
used or current <fo> indicates that 3GPP TS 23.040 TP‐User‐Data‐
Header‐Indication is set. For more information about <dcs> and 
<fo>, 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: <index> 
where: 
<index> ‐ message location index in the memory <memw>. 
If message storing fails for some reason, an error code is reported. 

Advertising