|Binary wap push sms||Search|
|SMS & MMS Technical Forum » WAP Technical Discussions (unsupported) » Archive through March 07, 2006 » Binary wap push sms||« Previous || Next »|
Post Number: 1
I'm trying to make a program that generates binary wap push messages. I've managed to generate the following:
The Url is "http://www.google.com"
and the text is "google"
Well, this doesn't seem to be right bacause it doesn't work. Can anyone tell me what is wrong with it. Don't tell me to read specifications because I have and I just don't undestand what't wrong with it.
If you read the specification and don't understand, how can you generate the binary wap push and expect it to work. The phone don't understand either.
in very layman language let me describe it as below,
for a simple SI we have these fixed components
or constants of a push
udh = "0605040B8423F0"
tagData1 = "DC0601AE02056A0045C60C03"
tagData2 = "000103"
tagData3 = "000101"
now there are two components which you can say are variables
first is Push Title let it be 'Download ABC'
and second is Push Target Url lets take it as 'www.abc.com'
now just use any algo to convert these two in HEX,
for example u can use bin2hex() function in PHP
or file2hex.exe ,
or use following function code in VB
Private Function strToHex(myStr As String) As String
Dim hexStr As String
Dim hexTmp As String
For i = 1 To Len(myStr)
hexTmp = Hex(Asc(Mid(myStr, i, 1)))
hexStr = hexStr & hexTmp
strToHex = hexStr
now u have push title and url converted into hex lets name them HexTitle and HexUrl
so your sms body goes like this
here '+' is used to indicate concatenation ,dont use as it is,but just concatenate them.
and mention UDH as mentioned above for sms's UDH,
hope you get some success, btw this is very basic SI, and to understand these (tagData1,tagData2 ....) u have to go through the Docs and Specs my friend,
best of luck
Post Number: 27
Try to us our on-line converter to encode wap push messages, http://converter.statsms.net
Post Number: 6
thanks for some explanation.
i am trying to send a wap push(from clickatell) to myself using the above guideline....but no luck.
my phone is samsung E700, encoded the information as mentioned
used the output of tagData1&HexTitle&tagData2&HexUrl&tagData3 as the SMS text, used UDH as 0605040B8423F0 ...
when i open the sms recieved on my samsung E700, i get a "Incompatible message"...
NOTE: this has nothing to do with nowSMS as i dont use it. In case posts not related to nowSMS isint allowed here then please delete this post.
see the format i've explained is very basic format , tried and tested on Nokia and Sony Ericsson handsets,as i faced no issues with both so i think it should work for Samsung also,, well E700 of samsung should be wap compatible handset (which i guess u r sure that it is),wat u can do, is that u can try the same push over other handsets of Nokia, or SE, see if it works on that then one thing we will be sure tht ur gateway link is at least proper, but if it is not working there also then there must be some format encoding needed to make it compatible with the gateway,
just try it ,
All the Best
Deep Kamal Singh
deleted by admin 565
|Login / Register||Logout||Last 30 Days||Topics|