为什么我无法使用 AT 命令接收短信?

发布于 2024-10-03 04:43:08 字数 213 浏览 0 评论 0原文

我想使用 AT 命令从我的电脑向我的手机发送/接收短信。我使用 USB 端口将手机连接到电脑。我的计算机检测到调制解调器,并且我能够从计算机向手机发送短信。但是,我无法在计算机中接收短信。

获得的示例

我正在展示从 AT 编辑器AT+CMGF=1 OK

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

我可以做什么来发送此问题以及为什么会收到此错误?

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?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

想你的星星会说话 2024-10-10 04:43:08

每部手机都有不同的功能,因此您应该通过向您的手机发送一个消息来检查每个参数的哪些值对您的手机有效。

AT+CNMI=?

例如,我的手机不支持您的示例,因为不支持模式 1。有关 +CNMI 的完整语法,您可以查阅制造商的 AT 手册或 ETSI 标准或阅读此简短教程 http://www.cellular.co.za/at_etsi.htm">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" ;打印您存储在手机中的每条短信

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

薄凉少年不暖心 2024-10-10 04:43:08

大多数手机在发送某些特殊 AT 命令时都会返回错误,+CNMI 就是其中之一。发送 AT+CNMI=? 时也会返回错误。

因此,忘记电话购买基于 RS232 或 USB 的 GSM 调制解调器,然后再试一次。

Most of the phones returns Error when some special AT command sent to them and +CNMI is one of that command. It will return error also when send AT+CNMI=?.

So forget Phones buy a GSM Modem based on RS232 or USB and then try it again.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文