Click here to Skip to main content
15,897,704 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi all

Currently I have a LEON-G100 quad-band GSM/GPRS Data and Voice Module. This has been integrated into a 'Serial Bridge' that allows me to simply pump through and receive text from the modem. The modem handles all of its own operations, I simply control it using AT commands.

It was originally intended to only send SMS's to users, and I was able to do this with ease. Now I need it to receive SMS's and alert a C# program, that runs in the background of the message.

The hardware is not the problem, the communication is still working as usual however the modem does not seem to receive SMS's anymore, but it can still send them. :confused:

There must be an AT command to set the locations to which the SMS's are stored and to turn the alert function on. I don't know what it is but I believe it to be the AT+CNMI command, which after changing this setting, the 'fit hit the shan' :omg: and the modem stopped receiving SMS's and alerting me to their receipt. [NOTE: IT DID WORK:confused:]

I would like to know if anyone knows of the settings to get this to work, there was no AT command group and the project is in C#:cool:.

I know it must be this part of the modem as all other functionality within the modem and program have remained untouched.:mad:

I need help on this topic and I need it soon, my deadline is fast approaching and this is the last piece of functionality needed.

Note: C# code examples can be provided on request.

Note: C# 2.0 is used in order to full functionality with older XP machines without having to install anything. This program is to run in conjungtion with a real-time control system, that is very sensitive to new installations.

Thanks :)
Posted
Updated 31-Jul-10 3:17am
v2

1 solution

jazzalange wrote:

There must be an AT command to set the locations to which the SMS's are stored

It's AT+CPMS - Preferred Message Store.
The options are: SM, ME, MT
jazzalange wrote:

I don't know what it is but I believe it to be the AT+CNMI command, which after changing this setting, the 'fit hit the shan' OMG and the modem stopped receiving SMS's and alerting me to their receipt.

This command is for sending new message indication to TE (computer).

You must have done some changes in this command which have stopped the alert to the system.
I have implemented a similar application using C# without using any third party library. I think I can help you with this. You need to check different configuration of AT+CNMI command.

This website should also help you in understanding AT Commands: http://www.developershome.com/sms/atCommandsIntro.asp[^]

Try the suggestions and let me know if you are able to solve it.
I would be happy to help you with this.

PS: I am going out on a drive and will be back after an hour or so.
 
Share this answer
 
Comments
ramvara 17-May-11 0:27am    
Hello,
I am using HSUPA Wireless 3G Modem and the problem i am facing is even if i set the modem to text mode (AT+CMGF=1). It is still showing results in PDU mode only(even if modem supports both text and PDU Modes).
Here are the list of commands i executed in Hyperterminal.
AT
OK
AT+CREG?
+CREG: 0,1

OK
AT+CSQ
+CSQ: 31,99

OK
AT+CMGF=1
OK
AT+CPMS=”ME”,”SM”,”MT”
+CPMS: 1,23,0,25,1,23

OK
AT+CNMI=1,1,0,0
OK
AT+CMGL=”ALL”
+CMGL: 0,”REC READ”,”+919676444741″,,”11/05/17,01:49:31+22″,145,27
0031003A00340038000A002D000A00530065006E0074002000760069006100200057004100590032
0053004D0053002E0043004F004D

OK

Any idea why it is not displaying in text mode?

Thanks in advance
Ankur\m/ 17-May-11 0:38am    
I did SMS programming long back. I do not remember things that well now.
Still the program seems fine to me. Since the modem accepted AT+CMF=1, it means it supports "Text" mode. Now the only issue that I can think of is - when you saved the message, the modem was in PDU mode (which is the default mode). Try sending a message from another mobile after setting the mode to text and check if it still shows up in PDU mode. Let me know.
Member 10039722 9-May-13 8:15am    
After a couple of years, I have the same problem, was wondering dis you ever solved this??

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900