您的位置:首页 > 产品设计 > 产品经理

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>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: