Skip to content

Instantly share code, notes, and snippets.

@c5e3
Created June 29, 2016 08:08
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save c5e3/eb90e9524821b3fb39d1979f873f0cb7 to your computer and use it in GitHub Desktop.
Save c5e3/eb90e9524821b3fb39d1979f873f0cb7 to your computer and use it in GitHub Desktop.
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment