为什么我无法使用 AT 命令接收短信? [英] Why I am not able to receive sms using AT commands?
问题描述
我想使用 AT 命令从我的电脑向我的手机发送/接收短信.我使用 USB 端口将手机连接到计算机.我的电脑检测到调制解调器,我可以从电脑向手机发送短信.但是,我的电脑无法接收短信..
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..
我正在展示我从 AT 编辑器中获得的示例
I am presenting a sample of what I get from AT editor
AT+CMGF=1好的
AT+CMGF=1 OK
AT+CNMI=1,2,0,0,0错误
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=?
例如,我的手机不支持您的示例,因为不支持模式 1.有关 +CNMI 的完整语法,您可以查阅制造商的 AT 手册或 ETSI 标准或阅读此简短教程 http://www.cellular.co.za/at_etsi.htm
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 反正只是为了在短信到达时收到通知,为了读取存储的短信内容,您必须使用 AT+CMGL= 或 AT+CMGR=.
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=.
简而言之:AT+CMGF=1 ;设置文本模式
Briefly: AT+CMGF=1 ;sets the text mode
AT+CMGL=?;告诉你哪些记忆是可用的
AT+CMGL=? ;tells you which memories are available
AT+CSCS=?;告诉你哪些字符集可用
AT+CSCS=? ;tells you which character sets are available
AT+CSCS="8859-1" ;将 Latin1 设置为字符集,以便您最终可以看到带重音的字母
AT+CSCS="8859-1" ;sets Latin1 as the charset so that you can see eventually accented letters
AT+CMGL="ALL" ;打印您存储在手机中的每条短信
AT+CMGL="ALL" ;prints every text message you have stored in your phone
这篇关于为什么我无法使用 AT 命令接收短信?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!