Ahhhhh, 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 0x0000.
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=tester&password=foobar&to=+4 > >1xxxxxx&text=eine+SMS&udh=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