我想使用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 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命令接收短信?
发布评论