Retrieving SMS from GSM Modem

Retrieving SMS from GSM Modem SearchSearch
Author Message
Amirul Islam
New member
Username: Blindcat

Post Number: 1
Registered: 10-2005
Posted on Thursday, October 20, 2005 - 06:41 am:   

Hi all, I don’t know if this is the right place to port this query, but I found this forum to be most useful at times, so I thought why not.

I have been working on a ActiveX control that would be used for sending and receiving SMS using any standard AT supported GSM Modem/phone. I have finished working on the sending part, which seems to be working fine and was pretty much easy to code.

But I am stuck with the receiving part. The problem arises because I am trying to use the notification option. This option allows the terminal/software to know that an SMS waits as soon as one arrives. The option I am using for this is:

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

As I am using TEXT mode so when ever an SMS arrives an output similar to the following is pushed in:

+CMT: "+880191312096",,"05/10/20,11:26:46+08"
Hello World!

Now the problem number 1 would be how to determine the end of such output, as there is no end marker to such message.

Problem number 2 would the behavior of such inputs; there is no queue so that events are pulled after completion of current job at hand. Let me explain with an example:

AT+CMGS="0191312096"
>
+CMT: "+880191312096",,"05/10/20,11:34:29+08"
Hello World!
This is MSG two
+CMGS: 162

OK

See, an SMS arrival notice in the middle of sending one. So there you go, what do you suggest I do? I really appreciate your help. Thanks in advance.
Anonymous
 
Posted on Monday, March 06, 2006 - 11:39 pm:   

deleted by admin 487