Results 1 to 2 of 2

Thread: SMS, with PDU format

  1. #1
    Addicted Member
    Join Date
    Mar 08
    Posts
    136

    SMS, with PDU format

    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.

    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]
    But i just don't get it, with a message of "hello world"
    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.

  2. #2
    Web developer Nightwalker83's Avatar
    Join Date
    Dec 01
    Location
    Adelaide, Australia
    Posts
    9,734

    Re: SMS, with PDU format

    Are you saying the original message is in PDU format and you want to convert it to UDH format?
    If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu.
    Please consider giving me some rep points if I help you a lot.
    DON'T BUMP YOUR POSTS!!! Links to my code examples can now be found on my website: My websites
    Please rate my post if you find it helpful!
    Technology is a dangerous thing in the hands of an idiot! I am that idiot.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •