博客首页 注册 建议与交流 排行榜 加入友情链接
推荐 投诉 搜索: 帮助

好好学习

  bilbo.cublog.cn

关于作者
姓名:你知道
职业:IT
年龄:每年大一岁
位置:地球
个性介绍:挺笨
Email: bilbo0214@163.com
|| << >> ||
我的分类


Examples for AT commands to mobile phones
//------------------------------------------------------------------------------------------
// read some information from the mobile phone
//------------------------------------------------------------------------------------------

//----- get attension
at
ok

//----- get signal quality
at+csq
+CSQ: 31,99

//----- get battery charge
at+cbc
+CBC: 0,90

//----- check if PIN is verified
at+cpin?
+CPIN: READY

//----- check network registration
at+creg?
+CREG: 0,1

//----- request model identification
at+cgmm
Nokia 6210

//----- request model identification
at+cgmm
SL55

//----- request international mobile subscriber identity
at+cimi
262017130021182

//----- get message format
at+cmgf=?
+CMGF: (0)

//----- get phone activity status
at+cpas
+CPAS: 0

//------------------------------------------------------------------------------------------
// list and delete SMS in mobile phone
//------------------------------------------------------------------------------------------

//----- 1 SMS is stored (index=2) and could be read with "+CMGL"
at+cmgl
+CMGL: 2,1,,43
0791947101670000040485080039004010313131604020D737DB7C0EBBCF2E69D8BD6603C865D739
DD22975DE3771B442DCFE9
OK

//----- 2 SMS are stored (index=1, 2)and could be read with "+CMGL"
at+cmgl
+CMGL: 1,0,,51
0791947101670000040485080039004010411171334029D737DB7C0EBBCF2E69D8BD6603C865D739
DD22975DE3771B747DB3CDE7B0FB0CA296E774
+CMGL: 2,1,,43
0791947101670000040485080039004010313131604020D737DB7C0EBBCF2E69D8BD6603C865D739
DD22975DE3771B442DCFE9
OK

//----- 1 SMS (index=1) will be deleted by "+CMGD=1"
at+cmgd=1
OK

//----- 1 SMS is stored (index=2) and could be read with "+CMGL"
at+cmgl
+CMGL: 2,1,,43
0791947101670000040485080039004010313131604020D737DB7C0EBBCF2E69D8BD6603C865D739
DD22975DE3771B442DCFE9
OK

//----- 1 SMS (index=2) will be deleted by "+CMGD=2"
at+cmgd=2
OK

//----- 0 SMS are stored and could be read with "+CMGL"
at+cmgl
OK

发表于: 2008-07-02,修改于: 2008-07-02 22:18,已浏览120次,有评论3条 推荐 投诉


网友评论
网友: heixia108 时间:2008-07-13 01:40:10 IP地址:58.19.126.★
请问一下,你写过处理AT命令的自动机程序没?3Q

网友: bilbo0214 时间:2008-07-13 10:18:55 IP地址:123.118.17.★
No. I lack of experience of this field. 

网友: heixia108 时间:2008-07-13 23:32:22 IP地址:58.19.126.★
哦...
3Q all the same.

 发表评论