×

Discussion Board

Results 1 to 10 of 10
  1. #1
    Registered User
    Join Date
    Aug 2004
    Posts
    6

    Wap push + headers

    I have problem with wap push message generation in binary format.

    I have created UDH-header:
    08
    04 //size
    2EE0 // reference number (12 000)
    01 //total number of messages
    01 //this message
    05 //port adressing
    04 //size
    0B84 // dest.port: 2948
    23F0 // source.port: 9200



    WSP-header:
    25 //connection ID
    06 //push
    01 //size of header
    ae //application/vnd.wap.sic

    Actual .sic (fine):
    02056a0045c6080.....

    I think there is a problem with wsp and/or udh header but I just can't figure it out.
    Thank you for any help

  2. #2
    Super Contributor
    Join Date
    Mar 2006
    Location
    Phoenix, AZ. USA
    Posts
    556

    Re: Wap push + headers

    you might look at http://openwap.org and http://openwave.com
    Jason Glass
    http://IChiBanComputers.Com

  3. #3
    Regular Contributor
    Join Date
    Oct 2006
    Posts
    79

    Re: Wap push + headers

    how do you extract such header in an SMS? i need it in my application

  4. #4
    Super Contributor
    Join Date
    Mar 2006
    Location
    Phoenix, AZ. USA
    Posts
    556

    Re: Wap push + headers

    microdot, which type of application do you have, i.e. java, python, c++?
    Jason Glass
    http://IChiBanComputers.Com

  5. #5
    Regular Contributor
    Join Date
    Oct 2006
    Posts
    79

    Re: Wap push + headers

    the application that im using is c++

  6. #6
    Super Contributor
    Join Date
    Mar 2006
    Location
    Phoenix, AZ. USA
    Posts
    556

    Re: Wap push + headers

    sorry microdot, to get back so late, but did you figure it out?
    Jason Glass
    http://IChiBanComputers.Com

  7. #7
    Registered User
    Join Date
    May 2003
    Posts
    32

    Re: Wap push + headers

    Hi,

    I have access to a service which send SMS, Wap-push messages, etc...

    The point is that i am very new on wap-push messages and while i have an API like the one below i am not sure what these fields are exactly (udh and txt)

    http://www.someservice.com/service.p....x&oa=30693…..

    Could you please give me some basic directions on how can i produce this fields(udh & txt) through some java code...?

    I think that are in hexadecimal format and that are compined to produce the wap-push message.

    Is there any specification which describes them?

    Thank you very much!

    regards,

    \m

  8. #8
    Super Contributor
    Join Date
    Mar 2006
    Location
    Phoenix, AZ. USA
    Posts
    556

    Re: Wap push + headers

    I at one point, downloaded the java SMSLib http://sourceforge.net/project/showf...roup_id=164313, I believe it does PDU style messages, so you could look at it's source. I also use this link for referenece alot

    http://www.dreamfabric.com/sms/

    there is also one cool app/utility/tool, that lets you type text, address it to a phone number, fill in all the headers, and it creates a PDU message for you, and allows you to edit the message. combined with the above, it is easier to figure out "what the hell is going on".

    Good luck!
    Jason Glass
    http://IChiBanComputers.Com

  9. #9
    Registered User
    Join Date
    May 2003
    Posts
    32

    Re: Wap push + headers

    Dear Jason,

    Thank you very much for your help.
    The SMSLib was very helpfull and yes it has a function that generates PDU DATA (Its a protected function in org/smslib/CWapSIMessage.java)

    I also use as UDH the 0605040B8423F0


    Thank you once again.

    P.S the only problem i am facing rigth now is while i am trying to send a text using greek characters. But i will come back as soon as i find the solution.
    Any idea..?

  10. #10
    Super Contributor
    Join Date
    Mar 2006
    Location
    Phoenix, AZ. USA
    Posts
    556

    Re: Wap push + headers

    glad it helped!

    Not sure on the Greek, is it considered to be in the double byte languages class as is Japanese and Arabic? You should be able to change the "encoding" of the data, and set it to... oh I cant remember, but when you do it,whatever you enter (text) will occupy twice the emount of space as before, so you'll get like 75-100 bytes instead of 150-200 to use...

    I found this...

    "Two-way data transport = 140 Octet Data Payload Supports Either: 140 bytes for binary data transport (PDU format) 160 characters for text messaging transport (7-bit ASCII)."

    and

    "There are two ways of sending and receiving SMS messages: by text mode and by PDU (protocol description unit) mode. The text mode (unavailable on some phones) is just an encoding of the bit stream represented by the PDU mode. Alphabets may differ and there are several encoding alternatives when displaying an SMS message. The most common options are "PCCP437", "PCDN", "8859-1", "IRA" and "GSM". These are all set by the at-command AT+CSCS, when you read the message in a computer application. If you read the message on your phone, the phone will choose a proper encoding. An application capable of reading incoming SMS messages, can thus use text mode or PDU mode. If text mode is used, the application is bound to (or limited by) the set of preset encoding options. In some cases, that's just not good enough. If PDU mode is used, any encoding can be implemented. "

    and this...

    "Octet: 0A TP-User-Data-Length. Length of message. The TP-DCS field indicated 7-bit data, so the length here is the number of septets (10). If the TP-DCS field were set to 8-bit data or Unicode, the length would be the number of octets. "

    Good luck

    Note, these were all from the link I posted previously
    Jason Glass
    http://IChiBanComputers.Com

Similar Threads

  1. WAP Push in J2ME client/server Application using Nokia's Personal WAP gateway
    By shaswata_jash in forum Mobile Java Tools & SDKs
    Replies: 0
    Last Post: 2005-03-07, 10:28
  2. WAP Push in J2ME client/server Application
    By shaswata_jash in forum Mobile Java Networking & Messaging & Security
    Replies: 0
    Last Post: 2005-03-07, 10:25
  3. WAP Push in J2ME client/server Application
    By shaswata_jash in forum Mobile Java General
    Replies: 0
    Last Post: 2005-03-07, 10:18

Posting Permissions

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