Hi to all,

I am trying to implement a SMS which contains a picture 72*28 and text, with the EMS protocol.

In order to implement this with the sendsms cgi script i studied an example from the site www.nowsms.com which posted the following example:

"This gives you the following messages:

Message #1:

7D (UDH len)
0003110301 (concatenation header, msg 1 of 3)
130103 (EMS UPI, 3 parts)
127300041C (variable picture 4 x 28 or 32 x 28 pixels)
00000000
00000000
00000001
00000006
00000008
00000030
00000040
00000080
00000100
0001FFFF
007FF55F
03FF7FFF
05FBFFFF
09F7E7FF
0BFFC3FF
0FFFC3FF
1FFFC7FF
3FFFEFFF
2FFFFFEE
1BFFFFFB
1F0809CF
0FFFFF9D
07013FAB
00867FBF
007E008E
001C008F
00000064
0000003B

Message #2:

7D (UDH len)
0003110302 (concatenation header, msg 2 of 3)
127300041C (variable picture 4 x 28 or 32 x 28 pixels)
00000000
00000000
FFFF8000
001FF000
00183E00
00300B80
003009E0
00600870
0078083C
F1FC0BFE
FFFFFFFF
FFFFFFFD
FFFFFFFE
FFFFFFFF
FFFFFFFF
FFFFFFFF
FFFFFFCF
FFFFFF3F
FFFFFE76
BFFFFA7D
FFFEFE77
FBBFF23F
6FF8011E
F4000084
F0000078
E0000000
E0000000
80000000

Message #3:

26 (UDH len)
0003110303 (concatenation header, msg 3 of 3)
121F00011C (variable picture 1 x 28 or 8 x 28 pixels)
00
00
00
00
00
00
00
00
00
00
00
C0
E0
F0
F0
F8
F8
F8
E0
00
00
00
00
00
00
00
00
00

"

I have tried to adapt this example with kannel by mading three POST to kannel (one for each sms) or by grouping the three and expecting the kannel to recognize the EMS format. Unfortunatly it did'nt work and kannel did not recognized the UDH header.

Note: i have placed all the binary data above in the udh header an left the text field empty.

Does anyone had success sending an SMS with a variable picture and text to a mobile phone which suports EMS protocol ?
Do you have a sample code of that case ?


Thanks for all in advance.

Joao Reis




Reply via email to