Go Back   Wireless and Wifi Forums > Cellular Communications > Cellular Newsgroups > alt.cellular.ericsson
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-15-2007, 05:04 PM
Peter
Guest
 
Posts: n/a
Default GSM 7 bot encoding

Hi,
I want to send EMS with picture and text. I can send text and picture
separately. However, when i tried to send both in a same message, the text
wasn't recognizable in the phone. When I used a tool to generate binary
data of EMS with picture and text, I noticed that the data part (encoded
text message) was varying depending on the UDH even though the original
text message remained unchanged.
Pls let me know the encoding scheme of EMS for text or refer me to any
references to this strange encoding.

Reply With Quote
  #2 (permalink)  
Old 03-13-2007, 05:23 AM
John Henderson
Guest
 
Posts: n/a
Default Re: GSM 7 bot encoding

Peter wrote:

> Hi,
> I want to send EMS with picture and text. I can send text and
> picture separately. However, when i tried to send both in a
> same message, the text wasn't recognizable in the phone. When
> I used a tool to generate binary data of EMS with picture and
> text, I noticed that the data part (encoded text message) was
> varying depending on the UDH even though the original text
> message remained unchanged. Pls let me know the encoding
> scheme of EMS for text or refer me to any references to this
> strange encoding.


The UDH needs to be padded to the next septet boundary if text
following the UDH is to be correctly interpreted.

If the UDH requires 6 octets (48 bits) then bit 49 needs to be a
fill bit so that the actual text starts at bit 50. This is
specified for backwards compatability, so that EMS messages
will display on old phones. On these, the first 49 bits
(assuming a 6 octet UDH) will display as garbage, but the
actual text will display correctly. If follows that without
the necessary fill bits, all text will be unrecognizable on old
and new phones alike.

I don't know if this is your problem, but we need to know you've
got this right before we look further.

John

Reply With Quote
  #3 (permalink)  
Old 03-13-2007, 10:21 PM
John Henderson
Guest
 
Posts: n/a
Default Re: GSM 7 bot encoding

I wrote:

> If the UDH requires 6 octets (48 bits) then bit 49 needs to be
> a fill bit so that the actual text starts at bit 50. This is
> specified for backwards compatability, so that EMS messages
> will display on old phones. On these, the first 49 bits
> (assuming a 6 octet UDH) will display as garbage, but the
> actual text will display correctly. If follows that without
> the necessary fill bits, all text will be unrecognizable on
> old and new phones alike.


I suppose I should say explicitly that the above also implies
something important about the mechanics of implementing the
7-bit packing algorithm.

It implies that at the septet boundary following the UDH, the
character packing must commence as if the UDH weren't there,
but ordinary septets of packed text were in place of the UDH
instead.

I achieve this in practice by calculating how many octets of UDH
the EMS requires, and then rounding that up to a septet
boundary (a multiple of 7). So in my example of a 6-octet UDH,
that's 7 septets of space that needs to be put aside for the
UDH. Then I put 7 (in this case) "@" characters in front of
the text and pack that longer string into octets (algorithn at
GSM 03.38, clause 6.1.2.1.1). The "@" character is the
"0000000" binary septet, giving me lots of zeros as potential
fill bits. Finally, I overwrite the first 6 octets with the
actual UDH, and my actual text is all correctly packed behind
it.

John

Reply With Quote
Sponsored Links
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Any wisdom in this upgrade? Sleepy alt.comp.hardware 1 03-30-2007 03:01 PM
New Soft for Nokia and about encoding codrut alt.cellular.nokia 1 02-03-2007 04:20 AM
Ausu P4C800E-Dlx - On the fly 5.1 encoding on SPDIF out? Noozer alt.comp.hardware 1 12-29-2006 05:06 AM
hardware encoding capture card master alt.comp.hardware 4 10-17-2005 11:33 AM
PC TV Diane alt.comp.hardware 23 08-24-2005 05:23 AM


All times are GMT. The time now is 06:52 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45