Chapter 9 – Short Messages Commands
Multi-Tech Systems, Inc. Wireless GSM/GPRS AT Commands (Document Number S000293I) 78
Copy Messages +WMCP
Description: This command copies the SMS from the SIM to the Flash or from the Flash to the SIM.
Values: <mode>
0 From SIM to the Flash
1 From the Flash to the SIM
<loc>
Location of the SMS to copy (mandatory for <mode>=1)
If this location is not defined, all the SMS will be copied
Note: The SMS copied will be placed in the first free location
Syntax: Command Syntx: AT+WMCP=<mode>[,<loc>]
Command Possible responses
AT+WMCP=?
+WMCP: 0,(1-12)
+WMCP: 1,(1-99)
OK
Note: The location of the SMS that can be copied from the
SIM to the Flash is 1 to 12 (maximum available in the SIM).
The location of the SMS that can be copied from the Flash to
the SIM is 1 to 99 (the maximum available in the Flash).
AT+CPMS?
Note: Read the SMS storage
+CPMS: “SM”,3,10,”ME”,0,99,”SM”,3,10
OK
Note: Read, write...SMS from/to SIM. 3 SMS are stored in the
SIM. 10 is the total memory available in SIM. No SMS in
Flash.
AT+CMGR=1
Note: Read the first SMS from the
SIM
+CMGR: “REC UNREAD”,”0146290800”,
“98/10/01,18:22:11+00”, <CR><LF>
My test message: SMS in the SIM at location 1
OK
AT+WMCP=0,1
Note: Copy the SMS at location 1 in
the SIM to the Flash
OK
AT+CPMS?
Note: Read the SMS storage
+CPMS: “SM”,3,10,”ME”,0,99,”SM”,3,10
OK
Note: Read, write...SMS from/to SIM. 3 SMS are stored in the
SIM. 10 is the total memory available in SIM. No SMS in
Flash.
AT+CPMS=“ME”,”ME”,“ME”
Note: Select ME for reading, ME for
writing and ME for storing
+CPMS: 1,99,1,99,1,99
OK
AT+CMGR=1
Note: Read the first SMS from the
Flash
+CMGR: “REC READ”,”0146290800”,
“98/10/01,18:22:11+00”, <CR><LF>
My test message: SMS in the SIM at location 1
OK
AT+CMGW=”+33146290800”<CR>
Other test message: SMS in
the Flash at location 2
<ctrl-Z>
Note: Write a message in text mode
+CMGW: 2
OK
Note: Message stored in index 2in the Flash
AT+CPMS?
Note: Read the SMS storage
+CPMS: “ME”,2,99,”ME”,2,99,”ME”,2,99
OK
Note: Read, write...SMS from/to the Flash. 2 SMS are stored
in the Flash.
AT+WMCP=1,2
Note: Copy the SMS at location 2 in
the Flash to the SIM
OK
AT+CPMS=“SM”,”ME”,“SM”
Note: Select SM for reading, ME for
writing and SM for storing
+CPMS: 4,10,2,99,4,10
OK
AT+CMGR=4
Note: Read the first SMS from the
SIM
+CMGR: “REC UNREAD”,”+33146290800”,
“98/10/01,8:22:11+00”,<CR><LF>
Other test message: SMS in the Flash at
location 2
OK
Continued on the next page.