C-functions for converting between ASCII and PDU
Description
This package contains two callable C-functions. The first converts from a
plain ASCII string into a array of PDU bytes suitable for sending SMS via
a cell phone. The second takes an PDU array and converts it back into a plain
ASCII string again.
The ASCII-to-PDU function first maps the 8-bit ISO-8859-1 ASCII into the SMS
"7 bit default alphabet", replacing characters that only have a
near match into the most similair character. For instance the character "î"
that can't be sent in a SMS message is translated into a plain "i".
Characters with no resonable replacement is simply replaced with a "?".
These 7-bit entities are that packet into an array. Since each member in the
array is 8-bits there are actually room for 8 ASCII characters in a 7 byte
long PDU-array.
As an example the 16 byte ASCII string "ABCDEFGHIJKLMNOP" is converted
into the 14 byte PDU array "41 E1 90 58 34 1E 91 49 E5 92 D9 74 3E A1".
Download
2003-09-01 Version 0.1 pduconv-0.1.tar.gz
2003-09-01 Version 0.1 pduconv-0.1.zip
History
2003-09-01 Version 0.1
Initial public domain release