Post by h***@gmail.comcan u show me format of your pdu, i dont understand 190A22080B912143658709F180B2CBE17919242FC3D979
Handset manufacturers seem to have ignored the reply address
facility completely to date. But the encoding of a UDH follows
standard procedure.
19 UDL (UD length in septets, 25 decimal)
0A UDHL (UDH length in octets, 10 decimal)
22 IEI (reply address element)
08 length of reply address element
0B address length excluding "F" fill digit (semi-octets,
11decimal)
91 type-of-address (international format)
2143658709F1 address (12345678901)
Note the different units of length in the standards for different
situations - septets, octets, and semi-octets.
Let's talk in decimal now unless we need to do otherwise.
The UDHL value was 10 octets, which is 80 bits. Add the 8
bits for the UDHL octet itself gives us 88 bits total consumed by
using a UDH in our case. The UDH needs to be padded to a septet
boundary, and the next septet boundary is at 13 septets (91
bits) used.
This means that the first 13 septets positions of the UD are
taken. The reason for the requirement to pad to a septet
boundary is for compatability with early handsets which do not
undertand the UDH mechanism. These handsets must display the
text after the UDH correctly, as if the UDH was ordinary text.
So these devices will display the UDH as gibberish in front of
the actual text. If the leading 13 septets were all zero fill
bits, that could be achieved by using 13 leading "@"
characters ("@" is 7 all-zero bits in the 7-bit default
alphabet).
If we enode the standard (no UDH) 25-septet text
message "@@@@@@@@@@@@@Please reply" we get a UDL-UD field of
19000000000000000000000080B2CBE17919242FC3D979.
So I hope you see exactly how the remainder of the UD
(80B2CBE17919242FC3D979) is derived.