为什么我不能使用AT命令接收短信? [英] Why I am not able to receive sms using AT commands?

查看:473
本文介绍了为什么我不能使用AT命令接收短信?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用AT指令从我的电脑传送/接收短讯至我的手机。我使用USB端口将我的手机连接到我的计算机。我的电脑检测调制解调器,我可以从电脑发送短信到手机。但是,我无法在我的电脑上收到短信。



我正在展示我从AT编辑器获得的样例



AT + CMGF = 1
OK



AT + CNMI = 1,2,0,0,0
错误



我可以怎么做才能发送此问题,以及为什么会收到此错误?

解决方案

每部手机都有不同的功能,因此您应该检查每个参数的哪些值对您的手机有效,方法是发送


AT + CNMI =?


例如,我的手机不支持您的示例,因为不支持模式1。有关+ CNMI的完整语法,您可以参考制造商的AT手册或ETSI标准,或阅读本简要教程 http:/ /www.cellular.co.za/at_etsi.htm



AT + CNMI无论如何只是为了在短信到达时收到通知,以便读取存储的短信的内容您必须使用AT + CMGL =或AT + CMGR =。



简要地说:
AT + CMGF = 1;文本模式



AT + CMGL =? ;告诉你哪些记忆是可用的



AT + CSCS =? ;告诉你哪些字符集可用



AT + CSCS =8859-1;将Latin1设置为字符集,

AT + CMGL =ALL;打印存储在手机中的每条短信


I want to send / receive sms using AT commands from my computer to my mobile phone. I connected my phone to my computer using a USB port. My computer detects the modem and I am able to send sms from the computer to mobile phone. However, I am not able to receive sms in my computer..

I am presenting a sample of what I get from AT editor

AT+CMGF=1 OK

AT+CNMI=1,2,0,0,0 Error

What can I do to send this prob and why am I getting this Error?

解决方案

Every phone has different capabilities so you should check which values for each parameter are valid for your phone by sending it a

AT+CNMI=?

For example my phone doesn't support your example because mode 1 is not supported. For the full syntax of +CNMI you can consult the AT Manual of your manufacturer or the ETSI standard or read this brief tutorial http://www.cellular.co.za/at_etsi.htm

AT+CNMI is used anyway just to get a notification when a SMS arrives, in order to read the content of the stored SMS you have to use AT+CMGL= or AT+CMGR=.

Briefly: AT+CMGF=1 ;sets the text mode

AT+CMGL=? ;tells you which memories are available

AT+CSCS=? ;tells you which character sets are available

AT+CSCS="8859-1" ;sets Latin1 as the charset so that you can see eventually accented letters

AT+CMGL="ALL" ;prints every text message you have stored in your phone

这篇关于为什么我不能使用AT命令接收短信?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆