UDH Parameter Settings

UDH Parameter Settings SearchSearch
Author Message
mcongosto
Posted on Monday, April 07, 2003 - 07:58 pm:   

Can somebody post links for UDH specifications for different phones?

Ericsson developers site don't seem to have it.

Thanks!
Bryce Norwood - NowSMS Support (Bryce)
Posted on Tuesday, April 08, 2003 - 12:51 am:   

What kind of info are you looking for?

The main uses of UDH are EMS, Nokia Smart Messaging (spec downloadable from www.forum.nokia.com), and then WAP uses (WAP push, vCard, vCal).

Does that help? Or is there something specific that you're looking for?

-bn
Bryce Norwood - NowSMS Support (Bryce)
Posted on Thursday, April 10, 2003 - 04:37 pm:   

A follow-up based on a query received via e-mail ...

For Ericsson phones, you would use EMS. The EMS specs are available in the developer area of the Ericsson web site.

-bn
mcongosto
Posted on Friday, April 11, 2003 - 06:47 pm:   

How to create EMS services

http://www.ericsson.com/mobilityworld/sub/open/technologies/messaging/docs/create_ems_services

Regards
Vincent
Posted on Tuesday, October 14, 2003 - 04:54 am:   

Does anyone know how to generate my own UDH to enable polyphonic ringtones to be sent to nokia handsets?
Bryce Norwood - NowSMS Support
Posted on Tuesday, October 14, 2003 - 07:03 pm:   

Don't get hung up on the UDH. The UDH is simple compared to the content itself.

The Nokia Smart Messaging specification, which has the details on Nokia ring tone formats, can be downloaded from http://www.forum.nokia.com.
msmi
Posted on Wednesday, October 15, 2003 - 09:37 am:   

Hi,

if alcatel, ericsson use EMS, what does SAGEM use?

thanks
msmi
Posted on Wednesday, October 15, 2003 - 09:39 am:   

Hi,

Can you give me an example of UDH for an ericsson phone?

thanks

khairil
Posted on Wednesday, October 15, 2003 - 10:38 am:   

i am a small service provider using Kannel SMS gateway. currently, i only provide ringtone to Nokia users only. i would like to expand & include Ericsson, alcatel, motorola etc. my content provider is willing to supply IMY format tones. what do i need to expand my service? i was told that the UDH for EMS is difficult to do. Is the UDH at content level or at transport level? Can my existing setup support EMS if the content has already been developed on IMY format?
Bryce Norwood - NowSMS Support
Posted on Wednesday, October 15, 2003 - 05:11 pm:   

Ring tones for EMS are encoded in the UDH of the SMS message. So UDH is very difficult for EMS.

(UDH is not difficult for Nokia Smart Messaging.)

So let's say you have an iMelody format file (IMY), and you want to send it out via EMS.

In addition to one of the links posted above, there is another document on the Ericsson site at the following URL:

http://www.ericsson.com/mobilityworld/sub/open/technologies/messaging/docs/msg_d oc_ems_dg

Let's take an example from that document, where they have an iMelody file for Beethoven's 9th that will be sent out via EMS.

BEGIN:IMELODY
VERSION:1.2
FORMAT:CLASS1.0
MELODY:*3f3f3f3#c1#d3#d3#d3c1r3f3f3f3#c3#f3#f3#f3f3*4#c3#c3#c3*3#a1
END:IMELODY

If we convert the IMELODY data into a hex string, we get:

424547494E3A494D454C4F44590D0A56455253494F4E3A312E320D0A464F524D41543A434C415353 312E300D0A4D454C4F44593A2A336633663366332363312364332364332364336331723366336633 663323633323663323663323663366332A342363332363332363332A332361310D0A454E443A494D 454C4F44590D0A

(I used http://www.nowsms.com/download/file2hex.zip to do this conversion, but its basically just converting all of the text characters to their ascii hex character codes. You'll see this is the same conversion as in the document that I referenced above, I'm just showing it in what they call "packed representation".)

The UDH then becomes:

820C8000 ... followed by all of the data above.

How did we build this UDH?

82 - This is length length of the overall UDH (0x82 = 130 bytes)

0C - This is the UDH Information Element Identifer (IEI) for a user defined sound (documented in the "how to create EMS" document referenced earlier in this thread)

80 - This is the length of the this information element (Note that our hex string is 254 characters long, but it represents 127 bytes of data in the original iMelody. We add 1 to this value because the UDH encoding requires the first byte after the length be an offset in the message at which the iMelody should appear. 128 decimal = 0x80 hex)

00 - This is the offset in the message at which the sound is inserted. (0 = beginning)


Note that 128 bytes is the max size that you can send with this encoding ... longer iMelody files have a more complex encoding for spanning multiple SMS messages.

So send the following data as the UDH of your message, and you've sent an iMelody file over EMS:

820C8000424547494E3A494D454C4F44590D0A56455253494F4E3A312E320D0A464F524D41543A434C415353 312E300D0A4D454C4F44593A2A336633663366332363312364332364332364336331723366336633 663323633323663323663323663366332A342363332363332363332A332361310D0A454E443A494D 454C4F44590D0A

Note that some GSM modems will complain if the message consists only of UDH.

One way of getting around this was discussed in another thread out here. Set the message DCS to 8 (Unicode), and put 0020 for the message data (a space character).
Bryce Norwood - NowSMS Support
Posted on Wednesday, October 15, 2003 - 05:24 pm:   


quote:

if alcatel, ericsson use EMS, what does SAGEM use?




SAGEM seems to support EMS as well, at least in recent models.