Specifications
SIM900 AT Command Manual       
SIM900_AT Command Manual_V1.03  106  12/24/2010 
OK 
2) If PDU mode(+CMGF=0) and sending successful: 
+CMGS: <mr> 
OK 
3)If error is related to ME functionality: 
+CMS ERROR: <err> 
  Parameter 
<mr> GSM 03.40 TP-Message-Reference in integer format 
Reference 
GSM 07.05 
Note 
If TE Character Set is GSM, it supports 160-byte maximum; If TE 
Character Set is UCS2, it supports 70-word maximum. 
4.2.6 AT+CMGW Write SMS Message to Memory 
AT+CMGW Write SMS Message to Memory 
Test Command 
AT+CMGW=? 
Response 
OK 
Response 
TA transmits SMS message (either SMS-DELIVER or SMS-SUBMIT) 
from TE to memory storage <mem2>. Memory location <index> of the 
stored message is returned. By default message status will be set to 'stored 
unsent', but parameter <stat> allows also other status values to be given. 
If writing is successful: 
+CMGW: <index> 
OK 
If error is related to ME functionality: 
+CMS ERROR: <err> 
Write Command 
1) If text mode 
(+CMGF=1): 
AT+CMGW=<o
a/da>[,<tooa/tod
a>] 
<CR>  text is 
entered 
<ctrl-Z/ESC> 
<ESC> quits 
without sending 
2) If PDU mode 
(+CMGF=0): 
AT+CMGW=<le
ngth><CR> 
PDU is given 
<ctrl-Z/ESC> 
Parameters 
<oa>  GSM 03.40 TP-Originating-Address Address-Value field in 
string format(string should be included in quotation marks); 
BCD numbers (or GSM default alphabet characters) are 
converted to characters of the currently selected TE character 
set (specified by +CSCS in TS 07.07);type of address given 
by <tooa> 
<da>  GSM 03.40 TP-Destination-Address Address-Value field in 
string format(string should be included in quotation marks); 










