Skip to content

Latest commit

 

History

History
42 lines (30 loc) · 1.36 KB

README.md

File metadata and controls

42 lines (30 loc) · 1.36 KB

This directory contains custom blocks for GnuRadio that are called AIS Simulator.

Two blocks serve as generator of AIS frames and implements the full AIS stack. It is composed of three main components covering respectively the application/presentation layers, the link layer and the physical layer, as defined in the protocol specification for AIS.

A websocket server to PDU message converter block accepts AIS bit strings from an external source, convert and output a message.

Based on and contains work from:

https://github.com/trendmicro/ais

https://github.com/gercap/ais

Build and installation:

$ mkdir build
$ cd build
$ cmake ../ -Wno-dev -DPYTHON_EXECUTABLE:FILEPATH=/usr/bin/python3.10 -DPYTHON_INCLUDE_DIR:PATH=/usr/include/python3.10 -DPYTHON_LIBRARY:FILEPATH=/usr/lib/x86_64-linux-gnu/libpython3.10.so
$ make
$ sudo make install

In case of ImportError: No module named ais_simulator set LD_LIBRARY_PATH:

export PYTHONPATH=/usr/local/lib/python3/dist-packages:/usr/local/lib/python3/site-packages:$PYTHONPATH
export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH
sudo ldconfig

License

Copyright 2022-2024, Mictronics

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or any later version.