Here's the binary view of your file supposedly encoded using BER:
01100100 Tag Class = "Application"
- Tag Form = "Constructed" - Tag Number = 4
01111001 Short Definite Length with
121 octets for Value
01011111 Tag Class
= "Application" - Tag Form = "Primitive"
Tag Number encoded using following octets (this is indicated with 11111)
10000001 Tag Number
= 00000011000100 (bin)
01000100 Tag Number
= 196 (dec)
00000101 Short
Definite length with 5 octets for Value
01001001 ASCII(73)
= "I"
01001110 ASCII(78)
= "N"
01000100 ASCII(68)
= "D"
01000001 ASCII(65)
= "A"
01000011 ASCII(67)
= "C"
01011111 Tag Class
= "Application" - Tag Form = "Primitive"
Tag Number encoded using following octets
10000001 Tag Number
= 00000010110110 (bin)
00110110 Tag Number
= 182 (dec)
00000101 Short
Definite length with 5 octets for Value
01001001 ASCII(73)
= "I"
01001110 ASCII(78)
= "N"
01000100 ASCII(68)
= "D"
01010010 ASCII(82)
= "R"
01010010 ASCII(82)
= "R"
For a better understanding of how BER encoding/decoding works please have a look at some freely available books in PDF format that you may find at www.oss.com. Have a look at chapter 18 from Olivier Dubuisson's book.
Best regards,
Sergio da Silva
"devaraj[IT]" wrote:
Dear All,I am trying to decode a TAP file,but I am confused.Following is the
one which I am trying.Please tell me how it was encoded.Thanks in advance.Value
64 79 5F 81 44 05 49 4E 44 41 43 5F 81 36 05 49 4E 44 52 43
Definition
BatchControlInfo : : = [ APPLICATION 4 ] SEQUENCE
{
sender Sender
recipient Recipient
.
.
.}
Sender : : = [ APPLICATION 196 ] PlmnId
Recipient : : = [ APPLICATION 182 ] PlmnId
PlmnId : : = [ APPLICATION 169 ] VisibleString (SIZE(5))
regards,
KB Devaraj - Information Technology
RPG Cellular Services Ltd
Chennai,India
