AT+CPMS指令的意义以及AT+CNMI自动接收短信时的方法
2005-03-17 11:35
477 查看
AT+CPMS指令的意义以及AT+CNMI自动接收短信时的方法
qevan
AT+CPMS=?
+CPMS: ("ME","SM"),("ME","SM"),("MT")
first parameter means the preferred store-location when reading SMS,
2nd means sending
3rd means receiving.
so when if u use AT+CNMI=2,1 to receive SMS automatically
COM would read
+CMTI: <loc>,<index>
when new SMS arrives...
<loc> could be ME SM or MT
ME means SMS is stored on MobilePhone,
SM means on SIM card
MT means on the total store space,
here my phone (Nokia 6610) just use the dammed last MT notifying me!
following is some pseudocode worked properly on my phone
if <loc>='MT' then
if <index> > SIM capacity then
begin
<loc>='ME'
<index>=<index>-SIM capacity
end
else
<loc>='SM'
AT+CPMS="<loc>" //set reading preference only
AT+CMGR=<index>
qevan
AT+CPMS=?
+CPMS: ("ME","SM"),("ME","SM"),("MT")
first parameter means the preferred store-location when reading SMS,
2nd means sending
3rd means receiving.
so when if u use AT+CNMI=2,1 to receive SMS automatically
COM would read
+CMTI: <loc>,<index>
when new SMS arrives...
<loc> could be ME SM or MT
ME means SMS is stored on MobilePhone,
SM means on SIM card
MT means on the total store space,
here my phone (Nokia 6610) just use the dammed last MT notifying me!
following is some pseudocode worked properly on my phone
if <loc>='MT' then
if <index> > SIM capacity then
begin
<loc>='ME'
<index>=<index>-SIM capacity
end
else
<loc>='SM'
AT+CPMS="<loc>" //set reading preference only
AT+CMGR=<index>
相关文章推荐
- AT+CNMI之自动接收短信
- WAVECOM CDMA MODEM短信接收方式的细微差别,AT+CNMI指令详解
- SMS短信的接收与自动回复以及屏蔽短信提示
- 使用 ContentObserver 监听短信接收 onChange 方法调用两次
- java httpclient文件上传,springmvc作为服务器端接收文件,以及上传中文件名乱码的解决方法
- C# at命令发送&&接收短信测试程序
- C#:GridView导出Excel,以及runat=server错误处理方法
- mdev的使用方法和原理以及实现U盘或SD卡的自动挂载
- java序列化的意义以及实现方法
- Eclipse自动生成对象来接收方法的返回值的快捷键
- 压缩包版Tomcat修改端口号无效以及无法自动解压war包问题的解决方法
- java再复习——this的真正意义以及方法区的方法信息与对象的方法是如何产生关联的
- PL/SQL的自动选择bug,以及解决方法
- CSS处理文本上下、左右居中的方法,以及最右边列自动适应
- iOS上传图像到服务器,以及服务器PHP接收的几种方法
- 解决Eclipse项目有红感叹号的方法以及clean完没有自动生成R文件的方法
- 解决浏览器自动填充的问题,以及前者引起的serialize()方法序列号参数重复的问题
- android隐藏以及显示软键盘以及不自动弹出键盘的方法
- android隐藏以及显示软键盘以及不自动弹出键盘的方法
- menu-代码添加以及add方法参数意义