//------------------------------------------------------------------------------------------
// 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) |