Sending out an SMS in PDU mode
This post was written by Jeroen on January 12, 2009
Posted Under: SMS
Posted Under: SMS
- Sending out an SMS in text mode
- Sending out an SMS in PDU mode
- More on the SMS PDU
- Sending a flash SMS message
- What are EMS messages?
- Combining SMS messages
- WAP Push over SMS
- WAP Push SMS encoding
- EMS and WAP Push support
- Another WAP Push over SMS encoding
- SMS based applications
- Text formatting with EMS
- GSM-7 Encoding with the GNU iconv library
- How to pack GSM-7 characters into septets
- References
- Setting Voicemail Waiting Indication via SMS
- SMS via Email
PDU mode is a lot more interesting than text mode. There are all kinds of things that can be done with SMS messages, all leveraging special formatting that is only available if you use PDU mode:
- Send flash SMS messages
- Send a bookmark
- Configure the phone
- Send EMS messages
- Send a WAP push
- Send ringtones and wallpapers
- Set or remove the voicemail waiting indicator
The formatting of these PDU’s is a little more complicated and requires some bit manipulations that are hard to do by hand.
The GSM modem is put into PDU mode with the command ‘AT+CMGF=0’. Once in PDU mode a PDU can be sent using the ‘AT+CMGS’ command:
AT+CMGS=<length><CR> > <here goes your PDU><Crtl-Z>
The actual PDU consists of a number of octets (bytes). In the command the <length> field represents the number of octets and the PDU is given in the hexadecimal representation of those octets. The ‘> ‘ on the second line is a prompt that is written by the GSM modem to indicate that it is ready to accept your PDU.
Of course the interesting part is what the PDU looks like…. more on this in the post “More on the SMS PDU“.







Reader Comments
Jeroen:
When you say Configure the Phone, Do you mean
configuring the remote phone or phone that holds the destination number ( Phone number)
Or my local phone or Modem?
Regards
Franco
I mean you can send configuration to a remote phone. E.g. you can send GPRS network configuration, setup WAP gateways and such.
how to convert our messages to pdu mode???
Umesh,
See my answer under “More on the SMS PDU”.
Jeroen
With regards to PDU or Plain Text or CDMA or GSM, is the SMS “Header Data” such as “OA” and “DA” and/or “SCTC”. In other words, are the originating and destination phone numbers as well as “Mobile Station” time stamp in plain text or are they secured or encrypted. I understand the core message being somewhat secure but I can’t see how they could encrypted or secured and have towers from LA to London to Egypt understand the “Header Data”.
Much Thanks – Cheers
I look forward to your knowledgeable responses.
can we create an application which will keep a log of the flash messages we recieve..similar to a call log..in a GSM phone..
Hi all,
When sending long SMSs with alpha-numeric source address for phones using Etisalat service provider in UAE, in some cases the receiver complained that the message is scrambled and can’t read. In some other cases, it is complained that the source address is shown as a numeric one ( For the source address “TEST” receiver said “3005″ is shown). Any idea on this issue??????????