using AT Command to receive and display SMS
hi im developing a c# console application to send and receive sms via nokia 30 gsm modem.
i finished the sending part. my problem now is the receiving part. i use the AT Command "AT+CNMI=1,2,0,0" to receive new messages. however, when a new message arrived, the new message is not shown or displayed in the console.
i tried issuing the same command in Hyperterminal and it works. after issuing a command, i send a message to my gsm modem and the hyperterminal showed or displayed the message i sent.
how can i make my console application work like a hyperterminal? please help me...
thank you so much!
Re: using AT Command to receive and display SMS
I 've done a similar project for a nokia telephone which sends sms messages from telephone and receives sms messages which comes to telephone.
I can't remember now how to do it, but I guess your problem is because of it. you should add the event handler which runs, when a message comes to telephone. I can send you the exact solution tonight I think when I look at the project.
Re: using AT Command to receive and display SMS
hope u could help me with this. i'm doing this part for almost 2 days now and i still don't have any idea how to do it..
please please i really need ur help!
Re: using AT Command to receive and display SMS
basically, you will need a separate thread which will send... AT+CMGL=4 command to modem and read the reply... try it...
Re: using AT Command to receive and display SMS
thanks a lot for that...
i followed what u said.. i created a separate thread for that but i used the "AT+CMGL" command only instead of using "AT+CMGL=4". i tried using the command "AT+CMGL=4", but i keep on getting an ERROR response. that is why i tried the "AT+CMGL" and it works great.
oh well.. thanks andy..
Re: using AT Command to receive and display SMS
it depends on which mode of SMS you are using... If you are using PDU format... you got to set AT+CMGF=1... and then AT+CMGL=4, will show you all the messages.
in other case, AT+CMGL or AT+CMGL=all works just perfect...
That's nice that you got it working...
Re: using AT Command to receive and display SMS
i have tried issuing the command AT+CMGF = 1 in my console application followed by AT+CMGL="ALL" and its works great! it displayed all messages in my sim .. maybe my modem does not accept a number value that why AT+CMGL=4 does not work...
thanks again andy!
Re: using AT Command to receive and display SMS
hello to all.. i read about this tread.. can you post a code for recieving SMS? i also have problems in recieving.. i already have sending but i dont know how to recieve sms... pls help me sir...
Re: using AT Command to receive and display SMS
im facing the same problem ,would any1 plz send me the code used to receive SMS, thank you
Re: using AT Command to receive and display SMS
Re: using AT Command to receive and display SMS
Quote:
Originally Posted by
acinarab
I 've done a similar project for a nokia telephone which sends sms messages from telephone and receives sms messages which comes to telephone.
I can't remember now how to do it, but I guess your problem is because of it. you should add the event handler which runs, when a message comes to telephone. I can send you the exact solution tonight I think when I look at the project.
d
can you also teach me how to show receive message using at command . . . .thank you ^_^
Re: using AT Command to receive and display SMS
can someone help me . . . on how to show receive message using AT command in VB6 . . . here's my email . . . . [email protected] . . . thank you . . .
Re: using AT Command to receive and display SMS
Well, first, stop writing in VB6; use VB.NET. Second, see my earlier tutorial link (above); it contains information on receiving.