AT命令用于接收自动短信通知
我现在有 2 个 gprs/gsm 调制解调器,其中一个是华为,另一个是 prolink 调制解调器。我通过 AT 命令发送或接收短信没有问题。但是,我尝试使用此命令 AT+CNMI 接收自动通知,但无法使其工作,但当我尝试此命令时,调制解调器会回复 ok,没有错误。
到目前为止我已执行的程序
尝试了 AT+CNMI 命令 2,1,0,0,0, 2,2,0,0,0 等的多种组合,但无济于事
我已将首选消息存储设置为 SIM 卡,我能够接收消息并使用各种 AT 命令提取它。
我尝试在超级终端以及使用 C Sharp 但没有成功。调制解调器附带的内置软件能够接收通知。有人可以指导我吗?
I have 2 gprs/gsm modems with me at the moment one of them is huawei and the other is a prolink modem. I have no problem sending or receiving SMSes via AT Commands. However I am trying to receive automatic notification using this command AT+CNMI and I am not able to get it to work but when I try this command the modem replies with ok with no errors.
Procedures that I have performed so far
Tried numerous combination for the AT+CNMI commands 2,1,0,0,0, 2,2,0,0,0 and etc but to no avail
I have set the preferred message storage to sim card and I am able to receive message and extract it as well using various AT commands.
I tried in hyperterminal as well as using C sharp but to no avail. The built software that comes with the modem are able to receive the notification. Can someone guide me on this.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
许多此类设备使用不同的命令。有些使用专有命令。由于它与附带的软件配合得很好,我建议您弄清楚它是如何工作的。
最简单的方法是启动一些免费串口监控软件。设置完成后,启动设备附带的软件并查看它发送的命令。然后,您可以自己使用这些相同的命令。
Many of these types of devices use different commands. Some use proprietary commands. Since it works fine with the included software, I would recommend figuring out how that works.
The easiest way to do this is to fire up some free serial port monitoring software. Once you get it set up, start up the software the device came with and see what commands it sends. Then, you can use those same commands yourself.
我已经设法找出问题了:)。基本上,我使用的调制解调器使用多个不同的端口,新消息通知将由另一个端口接收。问题解决了。
I managed to figure out the problem already :) . Basically the modem that i used makes use of several different ports and the new message notification will be received by another port. Problem solved.