using AT Command to receive and display SMS
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 13 of 13

Thread: using AT Command to receive and display SMS

  1. #1
    Join Date
    Jun 2005
    Location
    Davao City, Philippines
    Posts
    28

    Exclamation 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

  2. #2
    Join Date
    Feb 2005
    Posts
    24

    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

  3. #3
    Join Date
    Jun 2005
    Location
    Davao City, Philippines
    Posts
    28

    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

  4. #4
    Andy Tacker is offline More than "Just Another Member"
    Join Date
    Jun 2001
    Location
    55°50' N 37°39' E
    Posts
    1,503

    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.

  5. #5
    Join Date
    Jun 2005
    Location
    Davao City, Philippines
    Posts
    28

    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

  6. #6
    Andy Tacker is offline More than "Just Another Member"
    Join Date
    Jun 2001
    Location
    55°50' N 37°39' E
    Posts
    1,503

    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.

  7. #7
    Join Date
    Jun 2005
    Location
    Davao City, Philippines
    Posts
    28

    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

  8. #8
    Join Date
    Jan 2008
    Posts
    1

    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...

  9. #9
    Join Date
    Aug 2011
    Posts
    1

    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

  10. #10
    Join Date
    Feb 2011
    Location
    United States
    Posts
    1,006

    Re: using AT Command to receive and display SMS

    Possibly relevant tutorial: http://www.codeproject.com/KB/cs/SMS.aspx
    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.

  11. #11
    Join Date
    Nov 2011
    Posts
    2

    Re: using AT Command to receive and display SMS

    Quote Originally Posted by acinarab View Post
    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 ^_^

  12. #12
    Join Date
    Nov 2011
    Posts
    2

    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 . . .

  13. #13
    Join Date
    Feb 2011
    Location
    United States
    Posts
    1,006

    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
  •  


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center