Git Product home page Git Product logo

allthefsks's Introduction

alltheFSKs

Orthogonal Non-Coherent MFSK/FSK Modulator/Demodulator, entirely in Python.

Part of my research work was investigating the various contributions of a modem's transmit/receive chain (i.e. interleaver, FEC rate) to it's robustness in the presence of severe HF disturbances. MFSK modems were investigated as they are quite resilient to doppler and delay spread. I figured that to gain a better understanding of MFSK, writing a modulator & demodulator would be useful.

This modulator is in no way optimized, and at the time of writing runs approximatey 3x slower than realtime. My aim was to write something that could be clearly understood, instead of being a lump of opaque C or fortran code. Hopefully I did a good job on that front. I'm making fairly heavy use of Numpy & Scipy, for example, binary bits are represented as numpy arrays of '0's and '1's.

Classes:

MFSKModulator - Constant Amplitude, Continuous Phase, Orthogonal MFSK Modulator

MFSKDemodulator - Orthogonal MFSK Demodulator

Packetizer - Message packetizer, as per https://docs.google.com/document/d/1fwUtzFUhTzwjHrbfUayRG5sM_3TzdPlPgWjwXnY8fsU/edit

DePacketizer - What it says on the tin. Extracts packets from a bitstream, according to the above doc.

ModemUtils - Helper functions for grey coding and symbol to bitstream conversion.

MFSKSymbolDecoder - Badly named, superfluous helper class, which I'll likely remove shortly.

crc16 - CCITT CRC16 implementation. Should probably be using the internal python one instead.

CCIR493-3 - Implementation of the 'HF SELCALL' standard, as used by Codan and Barrett radios. Transmit only.

Test scripts:

gen_test_packets.py - Generates a wave file containing MFSK modulated packets.

demod_tests.py - Attempt to demodulate the above using the MFSK Demodulator

demod_SER/BER.py - Run error tests for different Eb/No figures, to validate the modem.

TODO:

  • Lots.
  • Add frequency tracking, if this is possible to do for MFSK.
  • Add Interleaving & FEC classes. Might see about pulling in LDPC Coding from CML or some other library.

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.