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: -
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
Bookmarks