Motorola G24 用户手册

下载
页码 642
SMS
4-10
 AT Commands Reference Manual
December  31, 2007
SMS
Managing Stored Messages in the G24 Memory
AT+CPMS="me" 
//Select NVM as preferred memory storage using the +CPMS 
command
+CPMS: 11,61,11,61,2,20
OK
AT+CMGF=1
// move to TEXT mode
OK
AT+CMGL="ALL" 
//List all messages in memory storage
+CMGL: 225,"STO UNSENT","054565132"
<Message body>
+CMGL: 223,"STO UNSENT","4565029" //Example of G24 response
<Message body>
+CMGL: 222,"STO SENT","054565029"
<Message body>
+CMGL: 221,"STO SENT","054565132"
<Message body>
+CMGL: 220,"STO UNSENT",""
<Message body>
OK
AT+CMGL="STO UNSENT" 
//List all messages of a certain type (for example, stored
unsent messages)
+CMGL: 225,"STO UNSENT","054565132"
<Message body>
+CMGL: 223,"STO UNSENT","4565029"
<Message body>
+CMGL: 220,"STO UNSENT",""
<Message body>
OK
AT+CMGR=225 
//Read any message from the list using its index
+CMGR: "STO UNSENT","054565132"
<Message body>
OK
AT+CMGR=9
+CMS ERROR: invalid index
AT+CPMS="sm"
+CPMS: 2,20,11,61,2,20
OK
AT+CMGR=9
+CMGR: "REC UNREAD","+97254565132",,"05/02/18,"21:22:23+08"
<Message body>
OK
AT+CSDH=1
OK
AT+CMGR=9
+CMGR: "REC UNREAD","+97254565132",,"05/02/18,"21:22:23+08",145,4,0,0,"+ 
97254120032",145,<messsage length>
<Message body>
OK