这篇文章主要介绍“AT指令中AT+CPMS有什么用”,在日常操作中,相信很多人在AT指令中AT+CPMS有什么用问题上存在疑惑,小编查阅了各式资料,整理出简单好用的操作方法,希望对大家解答”AT指令中AT+CPMS有什么用”的疑惑有所帮助!接下来,请跟着小编一起来学习吧!
这是我在SIEMENS AT COMMAND SET里面摘录的一段:
AT+CPMS Preferred SMS message storage
Revision according to GSM 07.05 Version 4.7.0
Test command
AT+CPMS=?
Response
+CPMS: (list of supported s),( list of supported s) ,(list +of
supported s)
Parameter
Memory from which messages are read and deleted
SM SIM message storage
ME Mobile Equipment message storage
MT combination of “ME” and “SM” storages
Messages will be written and sent to this memory storage:
SM SIM message storage
ME Mobile Equipment message storage
MT combination of “ME” and “SM” storages
Memory in which received messages are preferred to be stored, if
routing to TE is not set (see AT+CNMI command with parameter
=2)
SM SIM message storage
ME Mobile Equipment message storage
MT combination of “ME” and “SM” storages
Read command
AT+CPMS?
Response
+CPMS:
, , , , , , , ,<total3
Parameter
Memory from which messages are read and deleted
Number of messages currently in
Total number of messages that can be stored in
Write command
AT+CPMS= [, [, ]]
Parameter
See Test command
See Test command
See Test command
+CPMS: , , , , ,
OK/ERROR/+CMS ERROR
Notes 1) The Mobil Equipment storage “ME” has capacity for 25 short messages
The storage “MT” is a combination of “ME” and “SM” storage. If “MT” is
chosen indices < 26 refer to ME" storage while indices 26 or higher are
associated with the “SM” storage
Incoming short messages with message class 2 (see GSM 03.38) will be
stored in the “SM” storage only. Therefore, the AT^SMGO:2 indication (see
AT^SMGO command) can occur without a preceding AT^SMGO:1 indication.
一些概念:
MEM1:读取和删除短信所在的内存空间。 MEM2:写入短信和发送短信所在的内存空间。 MEM3:接收到的短信的储存位置。
具体用法:
. 语句: AT+CPMS=? 作用:
测试命令。用于得到手机所支持的储存位置的列表。在我的SIEMENS M55手机上返回: AT+CPMS=? +CPMS: (“MT”,“SM”,“ME”),(“MT”,“SM”,“ME”),(“MT”,“SM”,“ME”)
表示手机支持MT(手机终端),SM(SIM卡),ME(手机设备)
. 语句: AT+CPMS=”MT”,”ME”,”SIM” 设置MEM1为MT,MEM2为ME,MEM3为SIM
. 语句: AT+CPMS?
作用: 得到当前的设置。 例如通过第二条语句的设置以后返回:
AT+CPMS? +CPMS: “MT”,7,150,“ME”,7,100,“SM”,0,50
表示MT里面有7条短信,总共可以储存150条。ME里面有7条,共可以储存150条。SIM卡上可以储存50条。
到此,关于“AT指令中AT+CPMS有什么用”的学习就结束了,希望能够解决大家的疑惑。理论与实践的搭配能更好的帮助大家学习,快去试试吧!若想继续学习更多相关知识,请继续关注亿速云网站,小编会继续努力为大家带来更多实用的文章!
免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。