Giter Site home page Giter Site logo

aviatoreee / ais-simulator Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mictronics/ais-simulator

0.0 0.0 0.0 349 KB

Create and transmit AIS frames via gnuradio toolchain and web application in browser. Provides a websocket to PDU message block to change frame content on runtime. Works in burst mode, a frame is send on change immediately, one time. Transmitter remains silent until next change event.

License: Other

Python 72.82% CMake 4.92% C 0.19% C++ 6.90% HTML 5.06% TypeScript 9.41% CSS 0.70%

ais-simulator's Introduction

AIS Simulator

An AIS simulator based on AIS BlackToolkit from Trendmicro.

This code provides three GNURadio blocks. Two for AIS frame generation from a given bit string and a websocket server to PDU message converter.

The web application let you select and compose various AIS message and performs conversion to the required bit string that is then send via websocket connection to the GNURadio backend.

Tested in the following environment:

  • GnuRadio 3.8.2
  • gr-osmosdr 0.2.0
  • Ubuntu 20.04 focal
  • Python 3.8
  • GNU C++ version 9.3.0; Boost 1.71.
  • HackRF One (2018.01.1)

Building

Dependencies

You need to install the following build dependencies first:

sudo apt-get install -y \
    cmake \
    autoconf \
    libtool \
    pkg-config \
    build-essential \
    python-docutils \
    libcppunit-dev \
    swig \
    doxygen \
    python-scipy \
    python-gtk2 \
    gnuradio-dev \
    gr-osmosdr \
    libosmocore-dev

Build & Installation

See README on how to build and install the custom GnuRadio block.

Note: gr-ais_simulator blocks need to rebuild and installed after GnuRadio toolchain update.

How to run

  1. Start AIS simulator $ python3 -u ais-simulator.py
  2. Open ./webapp/ais-simulator.html in browser.
  3. Select AIS message type, modify parameters and send message...

Tested against rtl_ais and Comar Systems CSA300 class A AIS transponder via over the air transmission.

License

Copyright 2020, 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.

ais-simulator's People

Contributors

mictronics avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.