Hi @alexyosifov ,

a little comment regarding the fill bits, it's just for information.
There is a more easy way to perform decoding and encoding of 7bit concatenated sms.

Let me explain

3GPP has added the fill bits for retro compatibility with old devices that doesn't support the concatenated sms and then the UDH header.
With this assumption the decoding of entire PDU may be done with the effect of first N ASCII characters (due to udh header) are not valid but the rest is ok. So it's possible to decode the entire user-data pdu as a normal non udh pdu discarding the first N decoded ASCII string.
N is equal to the septet of udh header + 1

In encoding the concept is the same, just add N preamble (3GPP recommends N '\n') characters to the ASCII string, encode as 7bit and overwrite the initial octets with the UDH header.

Hope my comment was useful
Regards


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.