AT Command for receiving automatic SMS notification

左心房为你撑大大i 提交于 2020-01-14 13:59:30

问题


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

  1. Tried numerous combination for the AT+CNMI commands 2,1,0,0,0, 2,2,0,0,0 and etc but to no avail

  2. 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.


回答1:


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.




回答2:


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.



来源:https://stackoverflow.com/questions/5980625/at-command-for-receiving-automatic-sms-notification

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!