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!
Last edited by byang; June 30th, 2005 at 07:31 PM.
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.
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.
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...
If you think you CAN, you can, If you think you CAN'T, you are probably right.
Have some nice Idea to share? Write an Article Online or Email to us and You may WIN a Technical Book from CG.
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...
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...
BioPhysEngr http://blog.biophysengr.net
--
All advice is offered in good faith only. You are ultimately responsible for effects of your programs and the integrity of the machines they run on.
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 ^_^
Well, first, stop writing in VB6; use VB.NET. Second, see my earlier tutorial link (above); it contains information on receiving.
Best Regards,
BioPhysEngr http://blog.biophysengr.net
--
All advice is offered in good faith only. You are ultimately responsible for effects of your programs and the integrity of the machines they run on.
Bookmarks