what is an sms port really?!!!

hello I have read the information for a real short message header parts.

it has no port in its header.

what is this port really?

how it is contained in an standard message.

is it an overhead on the message body.

could you please tell me what is it and what's the purpose of it's existence.

[328 byte] By [etaa] at [2007-11-27 11:19:18]
# 1

hey eta,

i think the port is how you can specify an exact place that you send a sms.. the same prinicipal that you have with PC internet ports, like 80 for http...

so with this in mind say you have one midlet that is an autostart with push registry.. it needs to be told to be listening for only one port. so then another application can send an sms via that specific port..

The port number is a four digit number which is kind of part of the phone number:

"sms://+5550000:6666"

in this case above 6666 is the port number, and the +5550000 is somebodies phone number(in this case my emulator)....hope it helps.../fg

freddiegolda at 2007-7-29 14:35:58 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 2

I know these.

what I want to know is :

I didn't found any field for port number in GSM's standard SMS header.

and as I found in one article, the port is contained in something such "SMS' content message header".

I want to konw. how the port number is defined in this header in order to be able to send an sms from a non java application which I want to change it to match my midlet.

etaa at 2007-7-29 14:35:58 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 3

Apparently, the port number information is the UDH (user data header). This is part of the payload, so you will be able to send less than 160 7-bit characters.

Here might be some information: http://www.nowsms.com/framer.htm? http://www.nowsms.com/discus/messages/132/19234.html

deepspacea at 2007-7-29 14:35:58 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 4

Hmm... a link speaks everything...

but tell me something, can we access UDH from within a MIDlet ?

find_suvro@SDNa at 2007-7-29 14:35:58 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 5

The sms port NOT is the same think as socket port (http 80, ftp 21 and so on).

Sms port is a java me terminology. NOT exist port for sms.

The sms port is set by UDH when using a sms gateway.

The UDH is used in sms to indicate that the content is handled in a certain manner by phone operating system.

My sms gateway service provider give me the possibility to set UDH by php api.

I set this string like this:

060504198F198F

06 for indicate UDH length

05 sorry don't rember

04 for indicate number of octet used to indicate the "port" number

198F hex value of sms source "port" (correspond to 6543)

198F hex value of sms destination "port" (correspond to 6543)

in java Me the "port" is handled by protocol url like this:

sms://:6543

PeppeMEa at 2007-7-29 14:35:58 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 6

Could not get you fully !!!

Are u saying that the port we use to provide in the SMS url as sms://:6543 is the destination port use to be set at the UDH or is it not the same ?

And if they are same, can we send stuffs using NOKIA Smart Messaging Service from a midlet. For example; we use to set 1581, 23F4, 23F5 and 1581 for bitmap image, vCard, vCalender and ringtone respectively in the UDH while sending as sms; to be recognized by the Smart Messaging Service. So can we send those from a MIDlet using that specified port in the sms url ?

find_suvro@SDNa at 2007-7-29 14:35:58 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 7

> Could not get you fully !!!

>

> Are u saying that the port we use to provide in the

> SMS url as sms://:6543 is the destination port use to

> be set at the UDH or is it not the same ?

Yes, they are the same thing

>

> And if they are same, can we send stuffs using NOKIA

> Smart Messaging Service from a midlet. For example;

> we use to set 1581, 23F4, 23F5 and 1581 for bitmap

> image, vCard, vCalender and ringtone respectively in

> the UDH while sending as sms; to be recognized by the

> Smart Messaging Service. So can we send those from a

> MIDlet using that specified port in the sms url ?

I think it is possible.

PeppeMEa at 2007-7-29 14:35:58 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 8

hello deepspace

I got to some extent confused. your first link was to a software!! Do I need it?

the second link seems to be related.

some where it says :

"lets consider full UDH of Nokia

06 05 04 1581 1581

06 :- length of whole UDH i.e 6 octet now each octet has two char so 050415811581 counts to 6 octet,got it?,

now

05 :- it represents as keyword for 16-bit nokia port addressing(according to specs of smartmessaging)

04 :-its again count of upcoming octets i.e. 4 ,

1581 :- it is destination port mentioning port number in hex for ringtone, in other words this the thing which identifies upcoming message as ringtone.

1581 :-it is source port , when a ringtone is sent from handset to handset it automatically becomes 1581, but when u send it via GSM modem or SMPP connection it can be assigend to any valid hex string, preferrably 0000. "

then is it true :

when I send a binary message contaning (06 05 04 5000 5000) in the biginning it will be handled by my midlet waiting for messages from port 5000.

true?

but why just for nokia?

etaa at 2007-7-29 14:35:58 > top of Java-index,Java Mobility Forums,Java ME Technologies...