How to decode 7-bit encoded SMS ?

How to decode 7-bit encoded SMS ? SearchSearch
Author Message
Deepak Angeswar
New member
Username: Angeshwar

Post Number: 1
Registered: 09-2006
Posted on Friday, September 15, 2006 - 10:18 am:   

Hello all,

i am usinf SMPP protocol to extract SMS from the SMSC, i am able to extract the PDU as a HexDump
which is as follows.

00000046000000050000000000063f4500000634343738333 4333034353733000101383137313400000300000000000400 1447d40200000106080f150f002d000011111110cf

On close inspection I can extract the header details, source & destination addresses details
and also the following information regarding the actual SMS data

esm_class
00
i.e. <GSM Network Specific Features (bits 7-6)>
<No specific features selected>

data_coding
04

sm_length
14
<Decimal value is 20>

short_message
47 d4 02 00 00 01 06 08 0f 15 0f 00 2d 00 00 11 11 11 10 cf

i.e. the SMS data seems to be in GSM Network Specific Features (bits 7-6) or (7-bit encoded SMS)

Is there any java API available to convert GSM Network Specific Features (bits 7-6)
into ASCII or human readable form or how do i extract information that is in GSM Network Specific Features (bits 7-6)


regards,
Deepak.
Li Yucheng
New member
Username: Setimouse

Post Number: 2
Registered: 09-2006
Posted on Tuesday, September 26, 2006 - 04:09 am:   

Maybe this will be helpful.
You can refer it to decode 7bit into octets

http://www.dreamfabric.com/sms/hello.html