Re: User Data Header(UDH) in a SMS

2002-11-27 Thread Yury Mikhienko
On Mon, 25 Nov 2002 16:05:43 +0100
Florian Schlums [EMAIL PROTECTED] wrote:

Hi Florian!

 Hello all
 I'm a little bit confused about using the udh-parameter in a HTTP-request.
 I need an optional Header with a Port-Number in it. So i tried it like this:
 
http://localhost:13013/cgi-bin/sendsms?username=testerpassword=foobarto=+41xxtext=eine+SMSudh=1000

Try use url-encoded UDH format like: ...udh=%10%00


-- 
 
Best regards,
Yury Mikhienko.
IT engineer, ZAO Mobicom-Kavkaz




Re: User Data Header(UDH) in a SMS

2002-11-27 Thread Florian Schlums
Thanks a lot for your help.
Am I right, that URL encoded means I have to use ascii value in hex?
Ok, I tried the following for port 1000:
.UDH=%31%30%30%30%
and it sent it, but it didn't worked with my Midlet on the 3410.
But I think that is an other problem an has to do with the Nokia SMS API.
After sending such http-request, the http-line has always be changed into
.UDH=1000%25
Is that an other possibility for sneding a port-number?

Best regards and thanks a lot.
Oh, maybe, someone of you could help me. But he needs a Nokia 3410
with a firmware newer than 4.09. It's a simple SMS test and that works only
on Nokia 3410. This is really a serios request cause I'm on my diploma
thesis and don't have a second 3410. So, if you have such a phone and want
to help me, do the following:
Go tho the WAP-site with your mobile
http://mywaphosting.com/users/fschlums/index.wml
From there, install the MIDlet 3410Test
Then go to Menu8 in Nokia 3410 and start the MIDlet usertest.
Klick on options and Send YES or Send No.
This simply creates a SMS with YES or NO in it. This SMS has an optional UDH
with a portnumber. My MIDlet sould listen to that port and shows it on
display. Hope so. :-)

Florian

- Original Message -
From: Florian Schlums [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, November 25, 2002 4:05 PM
Subject: User Data Header(UDH) in a SMS


 Hello all
 I'm a little bit confused about using the udh-parameter in a HTTP-request.
 I need an optional Header with a Port-Number in it. So i tried it like
this:

http://localhost:13013/cgi-bin/sendsms?username=testerpassword=foobarto=+4
1xxtext=eine+SMSudh=1000
 But there is something wrong, otherwise I wouldn't get an errormessage.:)
 Status: 400 Answer: UDH field misformed, rejected
 Any idea what the reason could be? Do I need any option in the kannel.conf
for
 using an optional udh?

 Best regards
 Florian Schlums

  _  _ ___ ___  Florian Schlums;
 | || / __| _ \ HSR Hochschule Rapperswil; Oberseestrasse 10;
 | __ \__ \   / CH-8640 Rapperswil; Tel: +41 55 222 41 11;
 |_||_|___/_|_\ EMAIL: [EMAIL PROTECTED]; WWW: www.hsr.ch
My LinuxPage: http://mypage.bluewin.ch/schlums








Re: User Data Header(UDH) in a SMS

2002-11-27 Thread Florian Schlums
Hmm, I'm not quite sure if that can solve the problem. :-(
Has port high hex and port low hex something to do with
big endian and little endian?
I don't need any ringtones, logos or something like that.
The easiest understanding what I need is reading the
Nokia SMS API v.0.9
snip
The message consists of a fixed header and a field called TP-User-Data that
carries the payload of the short message as well as optional header
information that is not part of the fixed header. The optional headers are
contained in a field called User Data Header and the presence of such
headers in the TP-User-Data field is indicated in a separate field that is
part of the fixed header.
.
This Java API uses the port numbers to distinguish to which application a
message is targeted at.
.
Sample for such a port is: (a line from a Java sample)
com.nokia.sms://:3381
.
When the recipient address does not contain a port number, the TP-User Data
shall not contain the Application port addressing header. It is not possible
for Java applications to receive this kind of messages, but they will be
handled as normally in the recipient device, e.g. text messages will be
displayed to the end user.
snap
If anybody wants to read the full API, its about 6pages, go to
http://forum.nokia.com klick on java--documents--nokia api documents
There you will find the API document, don't panic, it's a html-file. start
index.html an klick on com.nokia.mid.messaging.

So how would you use the udh-tag in http-request, if you need to send to
port 3381 from the sample line. There is no source-port needed.

Best regards
Florian

- Original Message -
From: Aarno Syvänen [EMAIL PROTECTED]
To: Florian Schlums [EMAIL PROTECTED]
Sent: Wednesday, November 27, 2002 11:45 AM
Subject: Re: User Data Header(UDH) in a SMS


 First you must port number must be in hex. Secondly, you must send a
 proper
 port IE. Something like:

 %06%05%04%dest port high hex%dest port low hex%source port high hex
 %source port low hex

 Aarno

 On Wednesday, November 27, 2002, at 11:25 AM, Florian Schlums wrote:

  Thanks a lot for your help.
  Am I right, that URL encoded means I have to use ascii value in hex?
  Ok, I tried the following for port 1000:
  .UDH=%31%30%30%30%
  and it sent it, but it didn't worked with my Midlet on the 3410.
  But I think that is an other problem an has to do with the Nokia SMS
  API.
  After sending such http-request, the http-line has always be changed
  into
  .UDH=1000%25
  Is that an other possibility for sneding a port-number?
 
  Best regards and thanks a lot.
  Oh, maybe, someone of you could help me. But he needs a Nokia 3410
  with a firmware newer than 4.09. It's a simple SMS test and that works
  only
  on Nokia 3410. This is really a serios request cause I'm on my diploma
  thesis and don't have a second 3410. So, if you have such a phone and
  want
  to help me, do the following:
  Go tho the WAP-site with your mobile
  http://mywaphosting.com/users/fschlums/index.wml
  From there, install the MIDlet 3410Test
  Then go to Menu8 in Nokia 3410 and start the MIDlet usertest.
  Klick on options and Send YES or Send No.
  This simply creates a SMS with YES or NO in it. This SMS has an
  optional UDH
  with a portnumber. My MIDlet sould listen to that port and shows it on
  display. Hope so. :-)
 
  Florian
 
  - Original Message -
  From: Florian Schlums [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Monday, November 25, 2002 4:05 PM
  Subject: User Data Header(UDH) in a SMS
 
 
  Hello all
  I'm a little bit confused about using the udh-parameter in a
  HTTP-request.
  I need an optional Header with a Port-Number in it. So i tried it like
  this:
 
  http://localhost:13013/cgi-bin/
  sendsms?username=testerpassword=foobarto=+4
  1xxtext=eine+SMSudh=1000
  But there is something wrong, otherwise I wouldn't get an
  errormessage.:)
  Status: 400 Answer: UDH field misformed, rejected
  Any idea what the reason could be? Do I need any option in the
  kannel.conf
  for
  using an optional udh?
 
  Best regards
  Florian Schlums
 
   _  _ ___ ___  Florian Schlums;
  | || / __| _ \ HSR Hochschule Rapperswil; Oberseestrasse 10;
  | __ \__ \   / CH-8640 Rapperswil; Tel: +41 55 222 41 11;
  |_||_|___/_|_\ EMAIL: [EMAIL PROTECTED]; WWW: www.hsr.ch
 My LinuxPage: http://mypage.bluewin.ch/schlums
 
 
 
 
 








Re: User Data Header(UDH) in a SMS

2002-11-27 Thread Florian Schlums
Ah, now I think i have it!!!
Ok, a sample:
I want to send to port 6222.
First, port 6222 in hex is 0x184E
Source Port is not important, so I take 0x.

Then I have to send the following:
udh=%06%05%04%18%4E%00%00

The first 06 shows the full length of the User Data Header.
05 sais me, the following numbers are ports.
and 04 is the element lenght in octets.

Am I right? :-)
I've found the hint in the OTA-Patch for Kannel.
The Problem is, it still doesn't work on my 3410.But I'm rather sure, this has
to do with the Nokia SMS API. Hope I will get tomorrow a second 3410.

Best regards
Florian


On Wed, 27 Nov 2002 11:45:00 +0100
 Aarno Syvänen [EMAIL PROTECTED] wrote:
 First you must port number must be in hex. Secondly, you must send a  proper
 port IE. Something like:
 
 %06%05%04%dest port high hex%dest port low hex%source port high hex
 %source port low hex
 
 Aarno
 
 On Wednesday, November 27, 2002, at 11:25 AM, Florian Schlums wrote:
 
 Thanks a lot for your help.
 Am I right, that URL encoded means I have to use ascii value in hex?
 Ok, I tried the following for port 1000:
 .UDH=%31%30%30%30%
 and it sent it, but it didn't worked with my Midlet on the 3410.
 But I think that is an other problem an has to do with the Nokia SMS  
 API.
 After sending such http-request, the http-line has always be changed  
 into
 .UDH=1000%25
 Is that an other possibility for sneding a port-number?
 
 Best regards and thanks a lot.
 Oh, maybe, someone of you could help me. But he needs a Nokia 3410
 with a firmware newer than 4.09. It's a simple SMS test and that works  
 only
 on Nokia 3410. This is really a serios request cause I'm on my diploma
 thesis and don't have a second 3410. So, if you have such a phone and  
 want
 to help me, do the following:
 Go tho the WAP-site with your mobile
 http://mywaphosting.com/users/fschlums/index.wml
 From there, install the MIDlet 3410Test
 Then go to Menu8 in Nokia 3410 and start the MIDlet usertest.
 Klick on options and Send YES or Send No.
 This simply creates a SMS with YES or NO in it. This SMS has an  
 optional UDH
 with a portnumber. My MIDlet sould listen to that port and shows it on
 display. Hope so. :-)
 
 Florian
 
 - Original Message -
 From: Florian Schlums [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Monday, November 25, 2002 4:05 PM
 Subject: User Data Header(UDH) in a SMS
 
 
 Hello all
 I'm a little bit confused about using the udh-parameter in a  
 HTTP-request.
 I need an optional Header with a Port-Number in it. So i tried it like
 this:
 
 http://localhost:13013/cgi-bin/ 
 sendsms?username=testerpassword=foobarto=+4
 1xxtext=eine+SMSudh=1000
 But there is something wrong, otherwise I wouldn't get an  
 errormessage.:)
 Status: 400 Answer: UDH field misformed, rejected
 Any idea what the reason could be? Do I need any option in the  
 kannel.conf
 for
 using an optional udh?
 
 Best regards
 Florian Schlums
 
  _  _ ___ ___  Florian Schlums;
 | || / __| _ \ HSR Hochschule Rapperswil; Oberseestrasse 10;
 | __ \__ \   / CH-8640 Rapperswil; Tel: +41 55 222 41 11;
 |_||_|___/_|_\ EMAIL: [EMAIL PROTECTED]; WWW: www.hsr.ch
My LinuxPage: http://mypage.bluewin.ch/schlums
 
 
 
 
 
 

 _  _ ___ ___  Florian Schlums;
| || / __| _ \ HSR Hochschule Rapperswil; Oberseestrasse 10;
| __ \__ \   / CH-8640 Rapperswil; Tel: +41 55 222 41 11;
|_||_|___/_|_\ EMAIL: [EMAIL PROTECTED]; WWW: www.hsr.ch
   My LinuxPage: http://mypage.bluewin.ch/schlums




Re: User Data Header(UDH) in a SMS

2002-11-26 Thread Aarno Syvänen
You should send udh url-encoded, udh=%31%30%30%30%

Aarno

On Monday, November 25, 2002, at 04:05 PM, Florian Schlums wrote:


Hello all
I'm a little bit confused about using the udh-parameter in a  
HTTP-request.
I need an optional Header with a Port-Number in it. So i tried it like  
this:
http://localhost:13013/cgi-bin/ 
sendsms?username=testerpassword=foobarto=+41xxtext=eine+SMSudh= 
1000
But there is something wrong, otherwise I wouldn't get an  
errormessage.:)
Status: 400 Answer: UDH field misformed, rejected
Any idea what the reason could be? Do I need any option in the  
kannel.conf for
using an optional udh?

Best regards
Florian Schlums

 _  _ ___ ___  Florian Schlums;
| || / __| _ \ HSR Hochschule Rapperswil; Oberseestrasse 10;
| __ \__ \   / CH-8640 Rapperswil; Tel: +41 55 222 41 11;
|_||_|___/_|_\ EMAIL: [EMAIL PROTECTED]; WWW: www.hsr.ch
   My LinuxPage: http://mypage.bluewin.ch/schlums






Re: User Data Header(UDH) in a SMS

2002-11-26 Thread Steven Mak
I have tried sending an operator logo with
UDH=%06%05%04%15%81%15%81

What I am receiving is an SMS that my Nokia phone
telling me not able to be displayed.

What are the possible causes?

I am using Kannel 1.0.3.

Many Thanks

--- David Chkhartishvili [EMAIL PROTECTED] wrote:
 UDH must look something like this:
 udh=%06%05%04%15%81%15%81
 
 Florian Schlums wrote:
 
 Hello all
 I'm a little bit confused about using the
 udh-parameter in a HTTP-request.
 I need an optional Header with a Port-Number in it.
 So i tried it like this:

http://localhost:13013/cgi-bin/sendsms?username=testerpassword=foobarto=+41xxtext=eine+SMSudh=1000
 But there is something wrong, otherwise I wouldn't
 get an errormessage.:)
 Status: 400 Answer: UDH field misformed, rejected
 Any idea what the reason could be? Do I need any
 option in the kannel.conf for
 using an optional udh?
 
 Best regards
 Florian Schlums
 
  _  _ ___ ___  Florian Schlums;
 | || / __| _ \ HSR Hochschule Rapperswil;
 Oberseestrasse 10;
 | __ \__ \   / CH-8640 Rapperswil; Tel: +41 55 222
 41 11;
 |_||_|___/_|_\ EMAIL: [EMAIL PROTECTED]; WWW:
 www.hsr.ch
My LinuxPage:
 http://mypage.bluewin.ch/schlums
 
 
   
 
 
 
 -- 
 David Chkhartishvili
 Tel: 995 99 182418
 
 
 


__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com




User Data Header(UDH) in a SMS

2002-11-25 Thread Florian Schlums
Hello all
I'm a little bit confused about using the udh-parameter in a HTTP-request.
I need an optional Header with a Port-Number in it. So i tried it like this:
http://localhost:13013/cgi-bin/sendsms?username=testerpassword=foobarto=+41xxtext=eine+SMSudh=1000
But there is something wrong, otherwise I wouldn't get an errormessage.:)
Status: 400 Answer: UDH field misformed, rejected
Any idea what the reason could be? Do I need any option in the kannel.conf for
using an optional udh?

Best regards
Florian Schlums

 _  _ ___ ___  Florian Schlums;
| || / __| _ \ HSR Hochschule Rapperswil; Oberseestrasse 10;
| __ \__ \   / CH-8640 Rapperswil; Tel: +41 55 222 41 11;
|_||_|___/_|_\ EMAIL: [EMAIL PROTECTED]; WWW: www.hsr.ch
   My LinuxPage: http://mypage.bluewin.ch/schlums