Weird garbage in EMS logo

Weird garbage in EMS logo SearchSearch
Author Message
Kerya Bang
New member
Username: Kerya

Post Number: 2
Registered: 02-2004
Posted on Monday, March 01, 2004 - 09:58 am:   

Hi. I try NowSMS and really like this servis but have one weird problem:

I send EMS logo to Siemens C55: UDH - 82108000000000000000000000000000000000000000000000000000000000000000000000000000 000000000003F8000005FFE000090420007F1E2000086640000B9E80000B1300000D13000007FE00 0000FE00000000000000000000000000000000000000000000000000000000000000000000000000 000000000000000000000000 , dcs - 0

i get a picture but in the bottom of picture i get a "garbage" - few black pixels. If i use dcs 8 - i get good picture with full last line of "garbage"..
I try use Your examples: logo pvz body 0000 DCS 8
83128100090E0000003F40000000000001804020030000000003F878F0FF8000000003C7C53F0780 0000000180823803000000000000C21800000000000000E20800000000000000E518000000000000 00B8E800000000000001000400000000000001088400000000000002070400000000000002000200 000000000002000200000000 - i get same results..
Also i try to change GSM modem, i use Motorola P260 and Siemens C55 with same results.

Can Your HELP me?

p.s. sorry for my bad english



Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 1949
Registered: 10-2002
Posted on Tuesday, March 02, 2004 - 11:14 pm:   

Hi Kerya,

Looking at the first example, I think your length fields in the UDH are off by one. For example, the first byte in the UDH is 82. But there are 83 (hex) bytes of data that follow.

So that last 00 byte is going to be interpreted as message data. In the GSM 7-bit character set (DCS=0), 00 is the "@" character. But the actual character value that 00 represents will vary based upon the length of the UDH.

Anyway, I tried removing that last byte ... and I get nothing on my phone.

So I changed the length fields, so that your first example is:

83108100000000000000000000000000000000000000000000000000000000000000000000000000 000000000003F8000005FFE000090420007F1E2000086640000B9E80000B1300000D13000007FE00 0000FE00000000000000000000000000000000000000000000000000000000000000000000000000 000000000000000000000000

... and with that, I do see some sort of image, but I sent it to a P900, and these images can be small on those phones.

-bn
Kerya Bang
New member
Username: Kerya

Post Number: 3
Registered: 02-2004
Posted on Wednesday, March 03, 2004 - 03:23 pm:   

Thenk Your for Your Answer. I try do with Your example and i get nothing.. Then i put 00 into the end of UDH and I get a picture with last symbol is @. If i try to save picture then saving is only picture without @. Can Your tell me what is spase " " character code in the GSM 7-bit character set? I think it will help.
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 1951
Registered: 10-2002
Posted on Wednesday, March 03, 2004 - 05:05 pm:   

Kerya,

With some GSM modems, they do not like it when you do not have any data (only UDH) in your message. That is probably why you have a problem with my example.

I cannot get your example to work when sending to a SonyEricsson T68i or P900 ... where no picture is displayed.

You are sending an EMS 32x32 picture, and in this case, the length of the UDH element for the picture should be 81 (hex). 80 (hex) bytes for the picture data, but the UDH also requires another byte for the offset in the message in which the picture should be displayed.

The problem that you are likely experiencing is that some GSM modems do not like to send messages that have only UDH and no message data.

In your example, the extra byte is considered to be message data.

In my example, there is no extra byte. Try adding 40 as the extra byte. This will be interpreted as a space character. However, note that when using 7-bit encoding, this value will vary depending upon how long your UDH is. (The actual value for the space character is 20, but it must be shifted depending upon how long the UDH is.)

That's why when you're using a modem that has this problem, I recommend setting the DCS to 8 (Unicode), and putting 0020 in as the text. When unicode format is used, you don't have to worry about this shifting of characters.

-bn
Kerya Bang
New member
Username: Kerya

Post Number: 4
Registered: 02-2004
Posted on Friday, March 05, 2004 - 09:42 am:   

Hi Bryce. I try to put 40 to the end of UDH and i get nice picture with " " on the ehd. Evrithing is fine for now. If I set DCS to 8 and use 0020 as a body i get picture with 4 lines of garbage on the bottom and symbols "@ " at the end.. Maybe it is my GSM modem Motorola P260 have a problem with this. In fact, we trying to create sms, ems, mms servise and i thing, nowsms is really good servise. I really like it. Now question: if we connect servise via cimd or smpp o others - how can change UDH, DSC and other parametrs? I can't try it whithout order this servise from our GSM provaiders, and that is cost a lot of money :-) Beacese we a little affraid to do coomercial soliutions, while we not sure about all problems, we can get with other connections.. Sorry for my english :-)) I really not expert on it :-)
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 1976
Registered: 10-2002
Posted on Friday, March 05, 2004 - 03:45 pm:   

Kerya,

Good to hear it is now working.

The various SMSC protocols are designed for SMS, so it is possible to set the various parameters like UDH and DCS. We have to set those ourselves in NowSMS when sending various WAP push, OTA configuration, or MMS notifications. So NowSMS will set those parameters as appropriate for the type of SMSC connection.

-bn
Darek Chorazewicz
New member
Username: Daro

Post Number: 1
Registered: 03-2004
Posted on Monday, March 15, 2004 - 04:55 pm:   

Hi.
I would like to know how to send ems message.
As I understand, I have to put into udh paramterer this string f.e.
83108100000000000000000000000000000000000000000000000000000000000000000000000000 000000000003F8000005FFE000090420007F1E2000086640000B9E80000B1300000D13000007FE00 0000FE00000000000000000000000000000000000000000000000000000000000000000000000000 000000000000000000000000

But what with data parameter?
Is it necessary to send ems?

DARO
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 2105
Registered: 10-2002
Posted on Monday, March 15, 2004 - 07:56 pm:   

Technically, no data is required in the message, beyond the User Data Header (UDH) information.

However, if you are sending via a GSM modem, some GSM modems will return an error if you try to send a message with only UDH.

That is why there is the discussion above about adding an extra byte.

There was some additional discussion on this issue in the following thread:

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

Unfortunately, GSM 7-bit encoding can give you some fits trying to add some text into an EMS message. (This is why we made changes for NowSMS v5.01 so that you could include a "Text=" parameter in a message that included UDH, so that we would do the 7-bit text encoding for the text.)

If you have a GSM modem that exhibits this problem, a good work around is to set the DCS=8 (Unicode) message, and include 0020 (a space character in Unicode format) as the text part of the message.

-bn
Darek Chorazewicz
New member
Username: Daro

Post Number: 9
Registered: 03-2004
Posted on Wednesday, April 14, 2004 - 12:09 pm:   

Hi.
Here you have which character what means:
10 - 32x32 images
11 - 16x16 images
12 - various size images.

I sent image (72x28) as a various image as these data:
10012FE00091C000000000000000000000000000000000000000000400000c00000000000f02c03e 00000003f01fc7f8ff000000020c3ff5ebff80e00002047ffdefff5ea0000222ff85ebce71a00002 23f603f9ce7020000225e203f88e3020000207e38e188c3020000201e38ff80c3020000200c38f38 0cb020000220c18ff80cb020000220498ff8089020000220898ff80810200002208d8ff908122000 0200808ff9481120000200808ff951d1200002011c8ff9d3ffc00002031fffffffffc00001ffffff ffffffc000019f8fffffffbc400002060707fc1e00000000000601f00c00000000000000e0000000 000000000040000000000000000000000000000000000

And I got 4 separate text messages, could you tell me what can be wrong?
I sent this in UDH parameter!

DARO
admin@statsms.net
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 2276
Registered: 10-2002
Posted on Saturday, April 17, 2004 - 04:42 am:   

DARO,

That's too much data for a single message.

You can only fit 140 bytes in a single message (total size UDH + message data).

In order to send a larger EMS image, you need to use UPI (User Prompt Indicator). There is an example in the following thread:

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

Do note that not some phones that support EMS do not support UPI.

-bn