Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AT Command for receiving automatic SMS notification

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.

like image 764
abduls85 Avatar asked Oct 11 '22 01:10

abduls85


1 Answers

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.

like image 158
Brad Avatar answered Oct 19 '22 22:10

Brad