How to send picture (72x28) when EMS spec. 4.3?

How to send picture (72x28) when EMS spec. 4.3? SearchSearch
Author Message
Mindaugas
New member
Username: Psycho

Post Number: 1
Registered: 06-2004
Posted on Thursday, June 10, 2004 - 09:50 am:   

Hallo
how to send picture (72x28) when EMS spec. 4.3?
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 2778
Registered: 10-2002
Posted on Thursday, June 10, 2004 - 03:44 pm:   

Hi Mindaugas,

There is some information in the following thread where a monochrome bitmap is converted to Nokia Smart Messaging format, and then to EMS.

http://support.nowsms.com/discus/messages/1/2018.html

In that case, it is a 72x14 image which can easily fit into a single SMS.

A 72x28 image would require multiple SMS. And in the EMS world, you have to use the UPI (User Prompt Indicator) feature to send an image over multiple SMS. (UPI is not supported by all phones that support EMS.) There is an example that goes through the process of converting a 72x28 EMS image for sending using UPI in the following thread:

http://support.nowsms.com/discus/messages/1/1758.html

-bn
Minde N.
New member
Username: Psycho

Post Number: 2
Registered: 06-2004
Posted on Friday, June 11, 2004 - 06:23 am:   

But how to send when UPI not suported? I now it is possible.

"UDH:
83 (overall length of UDH)
12 (EMS variable picture identifier)
81 (length of variable picture)
00090E (EMS picture header - offset 0, 9*8=72x14 size)
0000003F40000000000001804020030000000003F878F0FF8000000003C7C53F0780000000018082 3803000000000000C21800000000000000E20800000000000000E51800000000000000B8E8000000 00000001000400000000000001088400000000000002070400000000000002000200000000000002 000200000000"

00090E - how to make this code?
Minde N.
New member
Username: Psycho

Post Number: 3
Registered: 06-2004
Posted on Friday, June 11, 2004 - 06:42 am:   

How create this code when image 32x32 or 72x28?
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 2811
Registered: 10-2002
Posted on Friday, June 11, 2004 - 07:49 pm:   


quote:

But how to send when UPI not suported? I now it is possible.




If the size of the SMS message is larger than 140 bytes, then a concatenated SMS must be sent.

In EMS, for an object to span multiple messages, you need to either use UPI (user prompt indicator), or the extended object. Extended object support was added in later versions of EMS, so UPI is far more widely supported.

But without support for either of those EMS types, you cannot have an object that spans multiple SMS (larger than 140 bytes).


quote:

00090E - how to make this code?




The first byte indicates the offset in the message text at which the object should be displayed. 00 means the beginning.

The second byte indicates the width of the picture (horizontal) in bytes. Multiply this value by 8 to get the actual width in bits/pixels. So, in this example, the width is 72 pixels/bits, or 9 bytes.

The third byte indicates the height of the picture (vertical) in pixels. 0E is the hex representation of 14.

For 32x32, this would be encoded as 000420. Or, there is another EMS fixed picture size of 32x32. To use that, you would start with the following:

83 (overall length of UDH)
10 (EMS large picture indicator, 32x32)
81 (length of variable picture)
00 (offset of picture in message)
...picture data here...

(Note: It requires 128 bytes, or 80 in hex notation, to represent a 32x32 picture, so it is coincidental that the lengths above are the same as in our 72x14 example.)

For 72x28, this would be encoded as 00091C. However, to represent a 72x28 picture requires 9*28 = 252 bytes. Therefore, a 72x28 picture cannot be represented in a single SMS message, it must be sent using concatenated SMS.

Because EMS objects go into the UDH, standard SMS concatenation rules cannot be used. New rules must be defined to allow EMS objects in the UDH to span multiple messages. That is where UPI enters the picture, and a 72x28 example is provided in one of the links reference in my original reply.

-bn