Coder Social home page Coder Social logo

xsystemgr / dmrlib Goto Github PK

View Code? Open in Web Editor NEW
19.0 4.0 9.0 2.31 MB

:earth_africa: Digital Mobile Radio library

Home Page: http://pd0mz.nl/dmrlib/

License: Other

Shell 0.24% Makefile 0.82% HTML 0.73% JavaScript 9.09% C 85.02% C++ 3.10% Lua 0.29% Python 0.33% CSS 0.37%

dmrlib's Introduction

dmrlib

C library for Digital Mobile Radio

Build Status

About

dmrlib is a C library for building Digital Mobile Radio applications, included are a couple of utilities that build on dmrlib.

These applications are for educational purposes and should be used by licensed HAM radio operators, commercial use is strictly prohibited.

Compiling

The following software is required to compile dmrlib:

If you enable the mbelib proto (--with-mbelib):

To compile dmrlib, you run:

$ ./configure && make

To compile dmrlib for debugging:

$ ./configure --with-debug && make

This should result with libdmr built in the build directory.

Compiling on Linux

On Debian (compatible) systems, you need the following packages:

~$ sudo apt-get install gcc git python-jinja2 libtalloc-dev

For the mbe proto:

~$ sudo apt-get install portaudio-dev

Now clone the repository and build the software:

~$ git clone --recursive https://github.com/pd0mz/dmrlib
...
~$ cd dmrlib
dmrlib$ ./configure
...

Compiling on OS X

Using Homebrew, you need the following packages:

~$ brew install talloc python libpcap
...
~$ pip install Jinja2
...

For the mbe proto:

~$ brew install portaudio

See compiling on Linux on how to build dmrlib.

Compiling on Windows

Tested to work with the Minimalist GNU for Windows (MinGW) compiler. You also need to get these packages:

Make sure you install the Git Bash shell when prompted in the installer.

Start the Git Bash shell, then enter:

~$ git clone --recursive https://github.com/pd0mz/dmrlib
...
~$ cd dmrlib
dmrlib$ ./configure
...

If configure can't find Python, you can run Wright (our configuration utility) manually:

~$ export PYTHONPATH=$(pwd)/site_wright
~$ /c/Python27/pythonw.exe -m wright.main [.. configure flags ..]

Contributing

Check out https://github.com/pd0mz/dmrlib

Supported features

Cyclic Redundancy Checks

Algorithm Encoding Decoding
CRC-5 โŒ โŒ
CRC-9 ๐Ÿ‘ ๐Ÿ‘
CRC-16 (CCITT) ๐Ÿ‘ ๐Ÿ‘
CRC-32 ๐Ÿ‘ ๐Ÿ‘

(Forward) Error Correction

Algorithm Encoding Decoding
Block Product Turbo Code (196, 96) ๐Ÿ‘ ๐Ÿ‘
Hamming (7,4,3) ๐Ÿ‘ ๐Ÿ‘
Hamming (13,9,3) ๐Ÿ‘ ๐Ÿ‘
Hamming (15,11,3) ๐Ÿ‘ ๐Ÿ‘
Hamming (16,11,4) ๐Ÿ‘ ๐Ÿ‘
Hamming (17,12,3) ๐Ÿ‘ ๐Ÿ‘
Golay (20, 8) ๐Ÿ‘ ๐Ÿ‘
Quadratic Residue (16, 7, 6) ๐Ÿ‘ ๐Ÿ‘
Reed-Solomon (12, 9, 4) 2 ๐Ÿ‘ ๐Ÿ‘
Rate ยพ Trellis โŒ โŒ
Variable length BPTC ๐Ÿ‘ ๐Ÿ‘
  1. Full Hamming error correction not yet available
  2. Simplified form, shortened syndrome not implemented

DMR Data Types

Data Type Encoding Decoding
Privacy Indicator โŒ โŒ
Voice Link Control ๐Ÿ‘ ๐Ÿ‘
Terminator with Link Control โŒ โŒ
Control Signaling Block โŒ โŒ
Multiple Block Control โŒ โŒ
Data Header โŒ โŒ
Rate โŒ โŒ
Rate ยพ Data โŒ โŒ
Idle โŒ โŒ
Voice 1 ๐Ÿ‘ ๐Ÿ‘
  1. Depends on the availability of compatible hardware and/or software

Acknowledgements

The development of dmrlib wasn't possible without the help of the following people:

Bugs

You can use the issue tracker to file bug reports and feature requests.

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.