Ems problems

Ems problems SearchSearch
Author Message
Darek Chorazewicz
New member
Username: Daro

Post Number: 10
Registered: 03-2004
Posted on Friday, August 13, 2004 - 01:37 pm:   

Hi.
I want to send ems picture with formated text "text pod"
I set up this as udh:
88128100090E0129238aaa9caaa800025357d5553e4d54000322a7c000bea48c0001ce5387fe1c57 3800007aa83c03c0a5e00000025561f8655400000002aac3fc32a4000000035481f8154c00000001 2900f00aa8000000015500600948000000018900600a9800000000d500600930000000004a88f112 a000000000256f9f654000000A030003007465787420706f64

but I have error with messages.
I want to format normal, not bold or centered text
Could you help me with this

DARO
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 3277
Registered: 10-2002
Posted on Monday, August 16, 2004 - 09:24 pm:   

DARO,

I'm not sure why you would want to set formatted text like this.

But, one problem that I see is that your message is too long.

Your UDH is 0x88 bytes. Plus there is 1 byte for the UDH len itself, so a total of 0x89 bytes for UDH. That is 137 bytes.

You then add 8 bytes for the encoded text, which now takes you to 145 bytes, which is over the GSM limit of 140.

That might be why you are experiencing problems. You would have to use message concatenation to send this message out.

-bn
Darek Chorazewicz
New member
Username: Daro

Post Number: 11
Registered: 03-2004
Posted on Sunday, August 22, 2004 - 03:16 pm:   

Hi.
I found problem, the length of text under the picture was wrong.
I don't think that the 1 byte for the UDH len should be added.

I posted this udh:
88128100090E0129238aaa9caaa800025357d5553e4d54000322a7c000bea48c0001ce5387fe1c57 3800007aa83c03c0a5e00000025561f8655400000002aac3fc32a4000000035481f8154c00000001 2900f00aa8000000015500600948000000018900600a9800000000d500600930000000004a88f112 a000000000256f9f654000000A030003006b6c6f

This is image with text "klo" and it was received by phone and everything is ok.

I use this method (image + formatted text) because when I send only picture there is a garbage at the end of the image. When I add formatted text whole image is nice and also there is a short string after image ;-)
It looks better for me.

DARO
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 3333
Registered: 10-2002
Posted on Monday, August 23, 2004 - 09:04 pm:   

Daro,

Just for clarification, I was not suggesting that your UDH length was off by one. I was simply explaining that your UDH was 137 bytes long.

When you then added 8 bytes of text, you had a message that was 145 bytes long, and that is longer than is allowed by GSM. (The GSM limit on message size is 140 bytes. A text message can have 160 characters because 7-bit encoding is used, and 160 7-bit characters are packed into 140 8-bit bytes.)

Your new example has exactly 140 bytes, that is why it works.

-bn