Hi all,
Currently i'm working on a project send/receive SMS with MSCOMM.OCX control.
I'm using PDU mode and so far is working fine but now i want to combining 2 SMS into 1.
But i just don't get it, with a message of "hello world"HTML Code:How do you add a UDH? There are 2 things you need to do: Set the UDH bit in the first octet of the PDU. For an SMS-SUBMIT PDU (the only one we’ve been using so far) the value is normally 0×01. To indicate that a UDH is present we need to set bit 6 (0×40). So for an SMS-SUBMIT with UDH present we set the PDU type to 0×41. With the UDH bit set, this first octet of the payload (or User Data = UD) needs to indicate the length of the UDH in octets. This field is known as UDHL. [I]Based on this acticle ( http://mobiletidings.com/2009/02/18/combining-sms-messages/ )[/I]
E8 32 9B FD 06 DD DF 72 36 19
How to encode to become? With (UDH)
D0 65 36 FB 0D BA BF E5 6C 32
Please show me the algorithm to convert PDU above, if posible please provide me the sample of Encode PDU UDH. Thank you very much.![]()


Reply With Quote

