siemens a35 commands
In theory it works like this:
You start having the complete PDU in a buffer (the pdu must already be in binary format that means "AABBCCDDEE" must equal to 0xAA, 0xBB, 0xCC, 0xDD, 0xEE).
Start by reading the first byte in the buffer (which is actually length of adress of SMSC) you add 2 to this value and use it as a pointer into the buffer (I assume the buffer starts at offset 0 as is usual in C).
Now the pointer points at lenght of destination adress.
You again read this byte add it to the pointer and finally add 9 (this skips protocol identifier, data coding scheme and timestamp.
Now the pointer must point to the lenght of userdata (which is counted in septets) when reading this value you should have your message lenght.
Please verify if everything is correct, I have only extracted this from my program ...
best regards