Skip to content

Instantly share code, notes, and snippets.

@RouquinBlanc
Created August 25, 2017 08:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save RouquinBlanc/4099067870edaf477d10e65c3dfc422e to your computer and use it in GitHub Desktop.
Save RouquinBlanc/4099067870edaf477d10e65c3dfc422e to your computer and use it in GitHub Desktop.
rtl_sdr to baudline script for mac os
#!/bin/bash
if [[ $# -ne 3 ]]; then
echo "usage: rtl_baudline.sh <frequency> <samplerate> <gain>"
exit 1
fi
FFT=$((${2}/1000000*2048))
rtl_sdr -f $1 -s $2 -g $3 - | /Applications/baudline.app/Contents/Resources/baudline \
-stdin \
-quadrature \
-record \
-channels 2 \
-flipcomplex \
-format s8 \
-overlap 100 \
-memory 512 \
-fftsize ${FFT} \
-basefrequency $1 \
-samplerate $2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment