项目作者: cubehub

项目描述 :
Command line utility based on liquid-dsp for realtime SDR IQ stream demodulation
高级语言: Rust
项目地址: git://github.com/cubehub/demod.git
创建时间: 2015-02-07T20:57:49Z
项目社区:https://github.com/cubehub/demod

开源协议:MIT License

下载


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

  1. sudo apt-get install autoconf

liquid-dsp

  1. git clone git@github.com:jgaeddert/liquid-dsp
  2. cd liquid-dsp
  3. ./bootstrap.sh
  4. ./configure
  5. make
  6. sudo make install
  7. sudo ldconfig

rust

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

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

build

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

install

mac os x

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

linux

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

usage

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

  1. 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 -
  2. 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)

  1. 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):

  1. 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.