Visual Basic Version of ASCII-to-PDU and PDU-to-ASCII Converter Functions
Posted by Daniel - 8,067 Views
I had posted related article about ASCII to PDU Conversion but that was written in C language. I got nothing to do today and when I explored my old archives, I found this one. A bundle of Visual Basic Functions to convert ASCII to PDU and vice versa.
I have no idea who is the original coder but as long as I can remember, a friend gave it to me. Never mind that, I’ve search the net and found nothing similar to it so I guess it can be treated as belong to public, or at least I want it that way :D You can let me know if I am wrong. I am not putting it under Software Collections - Free In House category since I am not the original coder.
Same as the C version, this bundle of functions contains two major functions: ASCII2PDU and PDU2ASCII. The first one is to convert ASCII to PDU and I think you can guess what the second one does.
Compared to SMSCodec Delphi Component code, this one has different method even both are using high-layer character manipulations.
The demo project is also included with this post and as usual, if you find anything weird in its behaviors, don’t hesitate to let me know. Open the VB6 demo project - the functions bundle is under the [Modules] treeview.
An adaptation from the original VB6 code into VB.Net code is also available along with the demo project for VB.Net.
Available Downloads
- Download the Classic VB6 Demo Project (11 KB)
- Download the VB.Net Demo Project (103 KB)
Related resources
- Using CPort Delphi Component to read data from your cellphone
- SMS and the PDU format
- The C version of ASCII to PDU Converter
- CodeProject: Using VB.NET to Decode PDU string
The following posts are programmatically considered as related to the current post by YARPP Plugin:
- ASCII To PDU Converter (Convert ASCII to PDU and vice versa)
- Visual Basic.NET, an example of using HTTPWebRequest object
- Replacing and filtering text with regular expression using Delphi, Visual Basic and ASP
- Downloading file and extracting ZIP compressed file with Visual Basic.NET
- PDUSpy (A good tool to deal with GSM SMS PDU)
3 Responses to “Visual Basic Version of ASCII-to-PDU and PDU-to-ASCII Converter Functions”
Leave a Reply
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.
-
Get my Full Feed Here
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.














March 13th, 2008 at 10:33 pm
M…It’ll be nice if I can implement it into my brand new SMS Gateway.
Btw, where did you get the info?
eenx’s last blog post: Wow, I can make an FLV file and FLV player!
March 14th, 2008 at 1:57 am
Hi Enx, good to see you here :) If you mean the info on how the GSM-SMS works, the underlying format and the SMS-PDU info, below is the link to - in my opinion - the only web resource which can describes this matter in a very clear way:
http://www.dreamfabric.com/sms/
___________
Daniel
March 18th, 2008 at 1:09 am
Thank’s brow, clean explanations and clean words to read.
eenx’s last blog post: Wow, I can make an FLV file and FLV player!