EMS picture+text

EMS picture+text SearchSearch
Author Message
Daniel
New member
Username: Danielevalue8

Post Number: 3
Registered: 09-2006
Posted on Wednesday, October 11, 2006 - 10:40 am:   

Hi,

I am trying to send a EMS with picture and text. But I can't get it to work. So i let NowSMS send the ems and watched the SMS-IN folder. I 've send the following EMS send with success.

UDH=850003750201130102127B000328 BODY=00000000000038E38E38E38E38E38E3F007F3F007F3F007F3F03803F03803F03803F00013F0 0013F00013FE00F3FE00F3FE00F38E3FF38E3FF38E3FF38FF8038FF8038FF803F03F13F03F13F03F 13FE0013FE0013FE00138FC7F38FC7F38FC7F3FFC703FFC703FFC703FFFFF3FFFFF3FFFFF0000000 00000

UDH=5A00037502021253000228 BODY=0000000038E038E038E0FF1CFF1CFF1C380038003800FFFCFFFCFFFCC7E0C7E0C7E0FFFCFFF CFFFC38E038E038E0FFFCFFFCFFFCFF00FF00FF00FF1CFF1CFF1C00E000E000E0FFFCFFFCFFFC000 00000

But i want to add text to this message. That also worked. I just passed the text(hex) behind the last picture info(no need to change the UDH)

UDH=850003750201130102127B000328 BODY=00000000000038E38E38E38E38E38E3F007F3F007F3F007F3F03803F03803F03803F00013F0 0013F00013FE00F3FE00F3FE00F38E3FF38E3FF38E3FF38FF8038FF8038FF803F03F13F03F13F03F 13FE0013FE0013FE00138FC7F38FC7F38FC7F3FFC703FFC703FFC703FFFFF3FFFFF3FFFFF0000000 00000

UDH=5A00037502021253000228 BODY=0000000038E038E038E0FF1CFF1CFF1C380038003800FFFCFFFCFFFCC7E0C7E0C7E0FFFCFFF CFFFC38E038E038E0FFFCFFFCFFFCFF00FF00FF00FF1CFF1CFF1C00E000E000E0FFFCFFFCFFFC000 0000054657374696E672054657374696E672054657374696E67

But my text needs to be longer so I need to use a thirth EMS but I can't get it to work. The first 2 parts (the picture) come over fine but there is no text. (I have made changes to the UDH + UPI so there are 3 messages to be send).

The NOWSMS gateway does'nt support EMS+Text messages so i can't get a example to work from.

Can anyone help me please?
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 6659
Registered: 10-2002
Posted on Friday, October 13, 2006 - 05:22 pm:   

Hi Daniel,

Note that your interpretation of what is the UDH and what is the body is not correct.

Basically, in those first two examples, the entire message is UDH, and the message body is null.

The first byte of the UDH specifies the length of UDH data that follows.

You can simply append the message text after the UDH ... if it fits.

HOWEVER ... if it is a standard text message, the actual text is encoded with 7-bit packing for over the air delivery. (If you are submitting via SMPP, most service providers expect the data to be in standard 8-bit format, and they will perform the packing for you. But, some service providers expect you to do the packing, which is why there are different configuration options for 7-bit packing when connecting to an SMPP SMSC under "Advanced Options" in NowSMS.)

As 7-bit packing can be a bit difficult, an alternative is submitting the message in Unicode format ... specifying a DCS of 8, and using 2 bytes for each character ... e.g., instead of 5465 it would be 00540065 for the first 2 characters in your example.

All in all, it's a bit difficult. We should probably revisit the "Send EMS Picture" interface to add support for including text, as we could probably work that into our algorithms with relative ease.

-bn