Skip to content

Instantly share code, notes, and snippets.

@c5e3
c5e3 / hackrf_baudline.sh
Created June 29, 2016 08:08
hackrf baudline script
#!/bin/bash
# ./hackrf_baudline.sh <frequency> <samplerate> <IFgain> <BBgain>
FFT=$((${2}/1000000*2048))
mkfifo /tmp/fifo
hackrf_transfer -r /tmp/fifo -l $3 -g $4 -f $1 -s $2 >> /dev/null &
cat /tmp/fifo | baudline -stdin -quadrature -record -channels 2 -flipcomplex -format s8 -overlap 100 -memory 512 -fftsize ${FFT} -basefrequency $1 -samplerate $2 && rm /tmp/fifo