• Welcome to Forum.Deepsoftware.Com. Please login or sign up.
 
March 28, 2024, 11:17:05 am

News:

SMF - Just Installed!


UDH (User Data Header) in PUD

Started by jorjoema, December 27, 2011, 09:10:39 pm

Previous topic - Next topic

jorjoema

Hello,
how can I put the "Destination Port Number" and "Source Port Number" in then header UDH, with the PDU type 06 (Push PDU)?
It is very important to me, because I need a PUSH in a J2ME application.
Thanks.

Roman Novgorodov

Hello

Please show me specification.
We do not see any push types in GSM0707

Roman Novgorodov
DeepSoftware LLC
DeepSoftware llc - The professional components for Delphi/CBuilder/.NET. The high quality custom software development.
Forums.nrCommLib.Com - DeepSoftware Tech Support Forum.

jorjoema

Tanks for your fast response!!
I talk about 03.40 session, capter 9.2.3.24, not GSM0707 (data)
at link: http://www.3gpp.org/ftp/Specs/html-info/0340.htm.
In resume, I need pass a port number. (for a PUSH Registry in my J2ME application)
In tests, using PDUspy.exe program, I did a SMS with "UDH applicaion port addressing, setting "Destination Port". (It's not a functional program).
I hope that in attachments is more clear to understand my perhaps.

Thanks a lot!

Roman Novgorodov

Hello

Thank you for your information.

It seems like we see needed info about necessary UDH options.
There is description of Application port  8 and 16 bits.
We will try to implement such functionality asap.

Roman Novgorodov
DeepSoftware LLC
DeepSoftware llc - The professional components for Delphi/CBuilder/.NET. The high quality custom software development.
Forums.nrCommLib.Com - DeepSoftware Tech Support Forum.


Roman Novgorodov

Hello

You can download and try new version of GSMDemo.
It has port settings on SMS send tab.

http://www.deepsoftware.com/nrcomm/gsmdemo_32.zip
http://www.deepsoftware.com/nrcomm/gsmdemo_64.zip

Roman Novgorodov
DeepSoftware LLC
DeepSoftware llc - The professional components for Delphi/CBuilder/.NET. The high quality custom software development.
Forums.nrCommLib.Com - DeepSoftware Tech Support Forum.

jorjoema

Tks for your work.
In test, did't  worked.
With "SEND" button, don't send SMS.
With "Send And Wait Ref#", partly work, sending the SMS, but "Dest Port" don't start the midlet. The SMS gone to the Default Port.
Attached LOG file.
Tks.

ncComm STRING = 0011000891088809460000AA08D02231497C3614 (it's NOT OK, sending SMS, but midlet DO NOT starting)
PDUspy STRING  = 00410008810888094600000E0605043F540000D02231497C02 (it's OK, sending SMS, midled starting)

One diference between strings above, is that in PDUspy I MUST inform than "USER DATA field contains a USER DATA HEADER. Without this, the Dest PORT is not recognized by the midlet.



Roman Novgorodov

Hello

Thanks for quick test.

Log shows that GSMDemo forms following SMS:

0051000891088809460010AA100605043F543F5420689198243E1B0A
This PDU seems OK, PDUSpy decodes it correctly and shows ports 16212
But your gsm terminal returns error on this sending.

Second sms from LOG:
0011000891088809460000AA08D02231497C3614
is real strange it does not contain data header.

We will check more.

Roman Novgorodov
DeepSoftware LLC
DeepSoftware llc - The professional components for Delphi/CBuilder/.NET. The high quality custom software development.
Forums.nrCommLib.Com - DeepSoftware Tech Support Forum.

Roman Novgorodov

Hello

Please try to enter destination address as full phone number 10 or 11 digits with + and click <Send>

Roman Novgorodov
DeepSoftware LLC
DeepSoftware llc - The professional components for Delphi/CBuilder/.NET. The high quality custom software development.
Forums.nrCommLib.Com - DeepSoftware Tech Support Forum.

jorjoema

I try "SEND" of various phone forms: Button SEND don't works to me. (Without PORT, works)
"Send And Wait Ref#" button works, but not with a command to the Midlet.
Attached both logs.
Tks.




Roman Novgorodov

Hello

Thank you for information.

Please try new version of demo:

http://deepsoftware.com/nrcomm/gsmdemo_32.zip
http://deepsoftware.com/nrcomm/gsmdemo_64.zip

Roman Novgorodov
DeepSoftware LLC
DeepSoftware llc - The professional components for Delphi/CBuilder/.NET. The high quality custom software development.
Forums.nrCommLib.Com - DeepSoftware Tech Support Forum.

jorjoema

I,
my considerations:
SENDING with   8 bits, work (I don't know in the midlet because it's wait another port).
SENDING with 16 bits, don't work.
Attached LOG.
Looking the strings in PDUspy, when using 16 bits, don't indicate that destination PORT is "allocated by IANA"

Tks

Roman Novgorodov

Hello

If possible please try another test:
Download latest GSMDemo.
It allows choose the SMS text encoding.
Please select 8 bit text coding and 16 bit port addressing and try again.

Roman Novgorodov
DeepSoftware llc
DeepSoftware llc - The professional components for Delphi/CBuilder/.NET. The high quality custom software development.
Forums.nrCommLib.Com - DeepSoftware Tech Support Forum.

Roman Novgorodov

Hello

Please check that you are testing latest version of GSMDemo. Possible your proxy or your browser cached files.

I have tested your parameters.
See screenshot in attachment.

SMS is sent ok. Log shows following PDU:
0051000A9111088809460000AA0F0605043F540000D02231497C3614

and PDYSpy decodes it correctly.

Please check all.

Roman Novgorodov
DeepSoftware llc
DeepSoftware llc - The professional components for Delphi/CBuilder/.NET. The high quality custom software development.
Forums.nrCommLib.Com - DeepSoftware Tech Support Forum.

jorjoema

I'm so sorry!! I think that the version of gsmdemo.exe in my last test was wrong.

Now it's ok and "SEND" worked correctly. My middlet recognized the SMS.

Congratulations!