Giter VIP home page Giter VIP logo

demod's Introduction

demod

Command line utility based on liquid-dsp for demodulating SDR IQ streams. Firstly it was written in C (last commit to C version), however now it is rewritten in rust.

dependencies

autoconf

sudo apt-get install autoconf
git clone [email protected]:jgaeddert/liquid-dsp
cd liquid-dsp
./bootstrap.sh
./configure
make
sudo make install
sudo ldconfig

rust

http://www.rust-lang.org/install.html

curl https://sh.rustup.rs -sSf | sh

build

git clone https://github.com/cubehub/demod.git
cd demod
cargo build --release

install

mac os x

cp target/release/demod /usr/local/bin/

linux

sudo cp target/release/demod /usr/local/bin/

usage

play FM radio recording (deemph filter not used and does not play in stereo)

cat fm_radio_i16_rec.iq | demod --samplerate 230400 --intype i16 --outtype i16 --bandwidth 100000 fm --deviation 75000 | play -t raw -r 230.4k -e signed-integer -b16 -c 1 -V1 -
cat fm_radio_f32_rec.iq | demod --samplerate 230400 --intype f32 --outtype f32 --bandwidth 100000 fm --deviation 75000 | play -t raw -r 230.4k -e floating-point -b32 -c 1 -V1 -

demodulate FSK9600 raw IQ data recording and pipe output to multimon-ng for packet decoding, notice --squarewave flag is added to FM demodulation, which makes demodulator output square like (multimon-ng likes it more)

sox -t wav sdr_fsk9600.wav -esigned-integer -b16  -r 126000 -t raw - | demod --samplerate 126000 --resamplerate 48000 --bandwidth 4500 fm --deviation 3500 --squarewave | multimon-ng -t raw -a FSK9600 /dev/stdin

for testing AX25 decoding use this ax25_fsk9600_1024k_i16.wav with the following command (install doppler from here):

sox -t wav ax25_fsk9600_1024k_i16.wav -esigned-integer -b16  -r 126000 -t raw - | doppler const -s 126000 -i i16 --shift 14500 | demod -s 126000 -r 48000 -i i16 -o i16 --bandwidth 4500 fm --deviation 3500 --squarewave | multimon-ng -t raw -a FSK9600 /dev/stdin

Notice that here modified multimon-ng is used that supports 48000 sps input stream for fsk9600 decoder. Read here why multimon-ng must be modified instead of converting demod output to native 22050 format.

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.