comprehensive Navigational Equipments Repair procedures

How to decode AIS 6bts ASCII data

How to decode  AIS 6bts ASCII data

installed python 3.2 or letter version , and install module of bitsring that you can download from the 
from this link 
if this module works , then result should come like this
>>> import bitstring

>>> dir
                       bitstring 
                       module 'bitstring' from 'C:\Python32\lib\site- packages \bitstring\__init__.py'>



>>> bitstring



>>>
        b='177KQJ5000G?tO`K>RA1wUbN0TKH'
        r=b.encode('utf-8')
        n=bitstring.BitString(r)
        q=n.bin
Now thing is that , 'b' is the code that you have to decode, 
this b should encode with utf-8 , then result will come as r
'r' will decode to 8 bits by using bitsting python module , q will be the result of 8 bits data
 Result

>>> b='177KQJ5000G?tO`K>RA1wUbN0TKH'
>>> r=b.encode('utf-8')
>>> n=bitstring.BitString(r)
>>> q=n.bin
>>> print(q)
0b00110001001101110011011101001011010100010100101000110101001100000011000000110000010001110011111101110100010011110110000001001011001111100101001001000001001100010111011101010101011000100100111000110000010101000100101101001000
>>>