ASCII To PDU Converter (Convert ASCII to PDU and vice versa)

Posted by Daniel - 12,325 Views

external_pduconv.gifPDUCONV is a C source code package designed to convert the ISO-8859-1 ASCII string into a PDU-coded array as described in ETSI GSM 03.38 and ETSI GSM 03.40 and vice versa.

These functions was released to the public domain in 2003 by Mats Engstrom, Nerdlabs Consulting. Contains two callable function: ascii_to_pdu and pdu_to_ascii. From the names I guess you know what each function does.

If you would like the Delphi version of SMS-PDU encoder/decoder, you may consider the SMSCODEC - my own version of SMS processor packed as a Delphi component.

Know nothing about Delphi or C, but comfortable with Visual Basic? You can try the Visual Basic version of PDU Converter module.

Available download

Related Resources

share this article

Digg del.icio.us Netscape StumbleUpon Yahoo! MyWeb reddit Furl Magnolia Newsvine Technorati SlashDot Blinklist Simpy Google
This post as PDFPosted in: Tested Software - January 2008

10 Responses to “ASCII To PDU Converter (Convert ASCII to PDU and vice versa)”

  1. Asari Says:

    Using your “PDUASCII CODEC DEMO” to convert How are you?, I got hexa C8F71D14969741F977FD0700 but using http://twit88.com/home/utility/sms-pdu-encode-decode , I have got C8F71D14969741F977FD07 also when I manually covert the answer is C8F71D14969741F977FD07

  2. Daniel Says:

    Hi Asari, if you enter “..C8F71D14969741F977FD0700″ or “..C8F71D14969741F977FD07000000″ in the Hexadecimal PDU Message Textarea on twit88.com, you will get the same result. I have been using the PDU generated by PDUASCII CODEC to send sms and it’s working fine, but thanks for the info, it maybe not affecting the sms-send but may affecting the other process, will check this out…
    ___________

    Daniel

  3. Lambert Says:

    Hi Daniel,

    was wondering if you have any code for decoding EMS… the one from twit88.com doesn’t decode correctly when receiving EMS…

    thanks

  4. Daniel Says:

    @Lambert: No, I don’t have the code to handle EMS, but I think hesicong has what you need. You can check his work on one of his CodeProject.Com article titled: Using VB.NET to Encode SMS and EMS. It’s a good one…
    __________

    Daniel

  5. Max the Micro Niche Finder Says:

    Hiya, i have seen your site when searching a few weeks ago and i really love the design! I just bought a new 3 character domain (cost me a packet) for a niche review blog, and i was wondering if your design is a free or paid one? I’m new to Wordpress and about to set it up, and i would really like to get something with a similar look to yours. Any ideas where i could download or buy something similar? Thanks for your help! :)

  6. Daniel Says:

    @Max: It’s a free one with some modifications, but mostly by installing plugins. The original theme came from seobligi, the link is at the footer of this page, you can start there…

  7. Tavio Says:

    Hello!
    I’m testing this code and with test.c I get these results:
    Original ASCII =hellohello
    PDU=e8 32 9b fd 46 97 d9 ec 77

    The last byte is “77″, it shoul dnot be “37″??
    Thank you!

  8. Liza Says:

    Hey, nice tips. Perhaps I’ll buy a glass of beer to the person from that chat who told me to go to your blog :)

    Liza’s last blog post: Laser quit smoking

  9. Michael Lindborg Says:

    Looking for a PDU converter brought me to this site. It looks like the PDUCONV would suit my needs, but the link to nerdlabs is broken and there doesn’t seem to be a mirror anywhere. Do you have it by any chance? Would really help me out.

    Cheers,
    Michael

  10. Daniel Says:

    @Michael: Yes, I just updated the link and sorry for late reply, kinda lazy ^^



Leave a Reply


Options for your comment:





Hi, my name is Daniel Nugraha, a single male live on an island called Java, Indonesia. This is the place for me to share my interest in computer programming.

Coffee Break

Comments - Thanks Guys :)

  • Rangga Kusuma: Gan, Tengkiu buat postingan yang sangat berguna. Kebetulan ada project utk bikin sms gateway, dan converter Agan sangat berguna utk...
  • Chuck Norton: I actually went ahead & bolted over to Justin’s Get The Image plugin here: http://justintadlock.com/ar...
  • Chuck Norton: Question: is it possible to insert something like [custfieldimg=”joice1.jpg,15 0,1:1″] into the actual templates instead of...
  • Therese Lachance: Hi, Any idea how to have ContuttoPDF fetch the correct page language?
  • tresloukadu: yo how did u fixed when the tags shows <? and it shows < “& l t ; ” ?? please send me an email.