-
June 30th, 2005, 04:09 AM
#1
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!
Last edited by byang; June 30th, 2005 at 07:31 PM.
_byang®_
blast_rj03@yahoo.com
-
June 30th, 2005, 09:27 AM
#2
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.
Hasan ÇINAR
-
June 30th, 2005, 07:30 PM
#3
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!
_byang®_
blast_rj03@yahoo.com
-
July 1st, 2005, 07:46 AM
#4
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...
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.
-
July 8th, 2005, 01:14 AM
#5
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..
_byang®_
blast_rj03@yahoo.com
-
July 8th, 2005, 03:17 AM
#6
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...
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.
-
July 8th, 2005, 03:35 AM
#7
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!
_byang®_
blast_rj03@yahoo.com
-
January 8th, 2008, 09:57 AM
#8
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...
-
August 14th, 2011, 07:21 AM
#9
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
-
August 14th, 2011, 02:16 PM
#10
Re: using AT Command to receive and display SMS
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.
-
November 10th, 2011, 06:22 AM
#11
Re: using AT Command to receive and display SMS
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 ^_^
-
November 10th, 2011, 06:25 AM
#12
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 . . . . rcatly@yahoo.com . . . thank you . . .
-
November 11th, 2011, 01:38 AM
#13
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.
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|