赞
踩
1.查询存储容量
AT+CPMS="SM","SM","SM"
返回
+CPMS: 1,50,1,50,1,50//已有一条,总存储量50条
2.查询短信内容
收到短信时
+CMTI: "SM",3//3:有3+1条短信,因为从0编号
输入
AT+CMGR=3//查询第3+1条短信
返回
+CMGR: "REC UNREAD","+8615111111111","","16/11/29,21:17:57+32"
AT+CMGS="15111111111"
OK
3.查询所有短信
注:查询短信前请选择短信发送方式。
AT+CMGL="ALL"
返回
+CMGL: 0,"RECREAD","+8618817828017","","16/11/10,22:12:42+32"
Fgghhhj
+CMGL: 1,"RECREAD","+8615111111111","","16/11/29,20:51:10+32"
ATasdasdasdasdas
+CMGL: 2,"RECREAD","+8615111111111","","16/11/29,21:07:31+32"
HELLO
+CMGL:3,"REC READ","+8615111111111","","16/11/29,21:17:57+32"
AT+CMGS="15111111111"
OK
4.删除短信
AT+CMGD=3
返回
OK
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。