Skip to content

denizea/ais

 
 

Repository files navigation

ais
===

Thanks for downloading the AIS BlackToolkit! This directory contains:

The AIS transmitter in form of GRC graph            a1e4b54db83fb895a3c94493126bb318  AiS_TX.grc
The AIS transmitter in form of script kiddie script 52540b46f316ee460f4684a262132d36  AiS_TX.py
An AIVDM encoder supporting the main message types  056ac09822b342da296617ba7b4055dd  AIVDM_Encoder.py
The AIS Frame Builder block for GnuRadio                                              gr-aistx
A NMEA encoder (binary to ASCII)                    2534dc06c21fe53f45bd2abab96bb6a7  unpacker.c

Remember to install GnuRadio and gr-aistx first. A short description is included in each file's header.

OS: Ubuntu 18.04
Install GNU Radio Version: GNU Radio Companion 3.7.13.5
Python Version: 3.6.9

```
sudo add-apt-repository ppa:gnuradio/gnuradio-releases-3.7
sudo apt-get update
sudo apt install -y gnuradio python3-pip
pip install packaging

sudo apt install -y git cmake g++ libboost-all-dev libgmp-dev swig python3-numpy python3-mako python3-sphinx python3-lxml doxygen libfftw3-dev libsdl1.2-dev libgsl-dev libqwt-qt5-dev libqt5\
opengl5-dev python3-pyqt5 liblog4cpp5-dev libzmq3-dev python3-yaml python3-click python3-click-plugins python3-zmq python3-scipy python3-pip python3-gi-cairo

pip3 install git+https://github.com/pyqtgraph/pyqtgraph@develop
pip3 install numpy scipy

echo 'export PYTHONPATH=/usr/local/lib/python3/dist-packages:usr/local/lib/python2.7/site-packages:$PYTHONPATH' >> ~/.bashrc
echo 'export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH' >> ~/.bashrc
echo 'export PYTHONPATH=/usr/local/lib/python3/dist-packages:usr/local/lib/python2.7/site-packages:$PYTHONPATH' >> ~/.profile
echo 'export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH' >> ~/.profile
source ~/.bashrc

# Compile Unpacker
g++ -o unpacker unpacker.c

# Installing hackrf drivers
sudo apt install -y hackrf libhackrf-dev libhackrf0

# Install gr-osmosdr
sudo apt install -y gr-osmosdr

# Install rtl-sdr
sudo apt install -y librtlsdr-dev libpthread-stubs0-dev
sudo dpkg -i rtl-sdr/rtl-ais_0.4.2-stable_amd64.deb

# Install Universal Radio Hacker
sudo python3 -m pip install --upgrade pip
sudo python3 -m pip install urh
pip install numpy==1.16.1
```

Now please follow the steps in gr-aistx folder.

You can run the rtl-sdr with following command:
sudo rtl_ais -R on -n

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 79.5%
  • CMake 10.8%
  • C++ 5.9%
  • Perl 3.2%
  • C 0.6%