Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1686100
  • 博文数量: 230
  • 博客积分: 10045
  • 博客等级: 上将
  • 技术积分: 3357
  • 用 户 组: 普通用户
  • 注册时间: 2006-12-30 20:40
文章分类

全部博文(230)

文章存档

2011年(7)

2010年(35)

2009年(62)

2008年(126)

我的朋友

分类:

2008-07-02 22:18:26

//------------------------------------------------------------------------------------------
// 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
阅读(975) | 评论(3) | 转发(0) |
给主人留下些什么吧!~~

heixia1082008-07-13 23:32:22

哦... 3Q all the same.

bilbo02142008-07-13 10:18:55

No. I lack of experience of this field.

heixia1082008-07-13 01:40:10

请问一下,你写过处理AT命令的自动机程序没?3Q