Multi-Tech Systems GPRS (MTMMC-G) ユーザーズマニュアル

ページ / 203
Chapter 9 – Short Messages Commands  
Multi-Tech Systems, Inc. Wireless GSM/GPRS AT Commands (Document Number S000293I) 
63 
 
Preferred Message Storage   +CPMS 
Description: 
This command allows the message storage area to be selected (for reading, writing, etc). 
Values: 
<mem1>:   Memory used to list, read and delete messages. It can be: 
SM  
SMS message storage in SIM 
(default) 
ME 
SMS message storage in Flash
   
BM  
CBM message storage (in volatile memory). 
SR  
Status Report message storage (in SIM if the EF-SMR file exists, otherwise in the ME non 
volatile memory) 
 Note: 
SR ME non-volatile memory is cleared when another SIM card is inserted. It is kept, 
even after a reset, while the same SIM card is used. 
 <mem2>:   Memory used to write and send messages  
 SM   
SMS message storage in SIM 
(default) 
ME 
SMS message storage in Flash 
 <mem3>:   Memory to which received SMS are preferred to be stored  
 SM   
SMS message storage in SIM 
(default) 
ME 
SMS message storage in Flash
   
If the command is correct, the following message indication is sent: 
 
 
+CPMS: <used1>,<total1>,<used2>,<total2>,<used3>,<total3>  
 
When <mem1> is selected, all following +CMGL, +CMGR and +CMGD commands are related to the 
type of SMS stored in this memory. 
The maximum number of SMS is Flash is 99. 
When the modem is switched on, <mem1>,<mem2>, and <mem3> are initialized to SM.  
Syntax:    
Command Syntax: AT+CPMS=<mem1>,[<mem2>],[<mem3>] 
Command 
Possible responses
AT+CPMS=? 
 
Note: Possible message storages 
+CPMS: ((“SM”,”ME”,”BM”,”SR”),(“SM”,”ME”),(“SM”,”ME”)) 
OK 
Note: Read, list, delete: SMS or SMS Status Report 
Write, send: SMS 
AT+CPMS? 
 
Note: Read 
+CPMS: “SM”,3, 10,”SM”,3,10,”SM”,3,10 
OK 
Note: Read, write…SMS from/to SIM  
3 SMS are stored in SIM. 10 is the total memory available in SIM 
AT+CPMS= “SM”,”ME”,“SM” 
Note: Select SM for reading, ME 
for writing and SM for storing 
+CPMS: 3,10,3,99,3,10 
OK 
 
AT+CPMS=”AM” 
Note: Select false message storage
+CMS ERROR: 302 
 
AT+CPMS=”BM” 
 
Note: Select CBM message storage
+CPMS: 2,20,3,10 
OK 
Note: Read, list, delete CBM from RAM 2 CBM are stored in RAM
AT+CPMS? 
 
Note: Read 
+CPMS: “SM”,3,10,”ME”,3,99,“SM”,3,10, 
OK 
Note: Read, store...SMS from/to flash, write SMS to flash. 3SMS 
are stored in flash. 99 is the total memory available in flash 
 CMTI: 
“SM”,4 
AT+CPMS= “ME”,”ME”,“ME” 
Note: Select ME for reading, ME 
for writing and ME for storing 
+CPMS: 3,99,3,99,3,99 
OK 
AT+CPMS? 
 
Note: Read 
+CPMS: “ME”,3,99,”ME”,3,99,”ME”,3,99 
OK 
Note: Read, write, store SMS from/to flash. 3 SMS are stored in 
flash. 99 is the total memory available in flash  
 CMTI: 
“ME”,4 
Note: Receive an SMS stored in flash at location 4   
 
AT+CPMS= “AM” 
Note: Select wrong message 
storage 
+CMS ERROR: 302