惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

B
Blog RSS Feed
量子位
Y
Y Combinator Blog
大猫的无限游戏
大猫的无限游戏
B
Blog
U
Unit 42
C
Check Point Blog
I
InfoQ
aimingoo的专栏
aimingoo的专栏
雷峰网
雷峰网
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
博客园 - 【当耐特】
人人都是产品经理
人人都是产品经理
The Cloudflare Blog
H
Help Net Security
MongoDB | Blog
MongoDB | Blog
博客园 - Franky
H
Hackread – Cybersecurity News, Data Breaches, AI and More
J
Java Code Geeks
Microsoft Azure Blog
Microsoft Azure Blog
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
云风的 BLOG
云风的 BLOG
宝玉的分享
宝玉的分享
爱范儿
爱范儿

博客园 - qevan

QCanvasTextWriter 把字体保存到注册表或流中 structures显示的模块的bpl - qevan - 博客园 delphi跟踪调试vcl代码的方法 QTrayIcon v1.0B 根据delphi版本进行编译 在气泡式提示窗口中显示关闭按钮 zz 中国共享软件注册提供商的比较 Delphi中资源文件使用详解 zz ShowBalloonTips @ TrayIcon 如何在DELPHI程序中顯示Balloon工具提示﹖ zz 分割人名的代码 电话薄的AT指令 zz 读取中文电话簿 一篇短信at指令介绍的文章, 摘过来 短信相关文章的连接 16进制字符转换为10进制 delphi c#的PDU-SMS编程代码 zz Delphi 2005纯WIN32开发环境
AT+CPMS指令的意义以及AT+CNMI自动接收短信时的方法
qevan · 2005-03-17 · via 博客园 - qevan

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>