AT+ Command (CMGS in pdu mode) -SMS using Hyper Terminal
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: AT+ Command (CMGS in pdu mode) -SMS using Hyper Terminal

  1. #1
    Join Date
    May 2007
    Posts
    3

    Question AT+ Command (CMGS in pdu mode) -SMS using Hyper Terminal

    I am trying to send an SMS using hyper terminal in windows XP pro. I am connecting my Satellite Phone (Motorola Iridium 9505A) to my notebook via serial cable (RS232) .

    Below are the sample commands which I use to send an SMS to my email via Motorola 9505A. An error occurred after I press <Ctrl+Z> to execute the SMS.

    The message that I want to sent is: -

    "megat@geoid.biz testing from 9505A"

    Header of the message (pdu format) is: -

    00110002912a0000AA

    Octet(s) Description Example:-

    00 Length of SMSC information 00 Information is set by phone

    11 First SMSSUBMIT octet PDU Format indicator (layout)

    00 Message Reference (00 =Reference number is set by phone)

    02 Length of phone number (2)

    91 Format of phone number (91=International)

    2a Phone number (*2 = Uses number stored in phone)

    00 Protocol identifier (Type 0)

    00 Data coding scheme (7bit)

    AA Validity period (AA Means 4 days)

    length of the pdu is: -

    38

    length of the message is: -

    22

    Sample AT+ commands used in hyper terminal are as follows: -

    at

    OK

    at+cmgf=0

    OK

    at+cmgs=38

    > 00110002912a0000AA

    > 22

    >DF2394C079ECBEF34D9254EEB41F4F29C9E769F4166F9BB0DCAD560B520

    +CMS ERROR:003


    Probably I have missed something or the way I do testing is not correct. I hope somebody can assist me on this matter.

  2. #2
    Join Date
    Apr 2011
    Location
    Silver Spring, MD
    Posts
    1

    Re: AT+ Command (CMGS in pdu mode) -SMS using Hyper Terminal

    Same here McGuard i hate this same error, i hope someone could help us.

    Thank you in advance,

  3. #3
    Join Date
    Oct 2006
    Location
    Sweden
    Posts
    3,642

    Re: AT+ Command (CMGS in pdu mode) -SMS using Hyper Terminal

    It's been so many years since I created code for this so I don't remember enough to help you with details. These days however there are so many libraries and applications that do the same thing so take advantage of them instead of struggling yourself.

    Even if you decide to struggle on cross-referencing with the PDU output of another application will be very useful. Here's one google hit http://twit88.com/home/opensource/sms
    Debugging is twice as hard as writing the code in the first place.
    Therefore, if you write the code as cleverly as possible, you are, by
    definition, not smart enough to debug it.
    - Brian W. Kernighan

    To enhance your chance's of getting an answer be sure to read
    http://www.codeguru.com/forum/announ...nouncementid=6
    and http://www.codeguru.com/forum/showthread.php?t=366302 before posting

    Refresh your memory on formatting tags here
    http://www.codeguru.com/forum/misc.php?do=bbcode

    Get your free MS compiler here
    http://www.microsoft.com/visualstudio/eng/downloads

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