Encoding and decoding text into PDU

I need to encode text into PDU so I can send a SMS from a phone.

It would be nice to be able to use it as a function such as:

smsSend(phone_number, text_to_send();

Anyway, baby steps. First I need to figure out how to encode text into PDU format. I have done alot of research, and alot of people have done it and posted code, thought it is all in assembly language and I dont understand it.

A page on how PDU works: dreamfabric.com

A PDF from Atmel, on PDU encoding / decoding, alot easier to understand: Smart | Connected | Secure | Microchip Technology

Some C code for decoding / encoding text to PDU: http://www.nerdlabs.org/projects/pduconv.php
I thought this would be quite helpful as language is similar to arduino, though I think the way it is done here, arduino would run out of RAM?

Reading the PDF from Atmel, it seems that the first 3 octets would always be the same, also some other octects would be the same (number type, protocol indentifyer, data coding scheme, and expire time).

So that just leaves the address length, address of receiver, septet count, and user message to be encoded.

Im going to muck around and try and convert some text into PDU my self, so I can figure out how it works.

Does anyone have any experiance with this or can point me in the right direction?

;D

Any luck on converting pdu ?

No, not yet. At the moment I dont have time.