Skip to content

Instantly share code, notes, and snippets.

@RouquinBlanc
Last active August 25, 2017 08:12
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/5155fc32ac1d955089a12a0bb8571806 to your computer and use it in GitHub Desktop.
Save RouquinBlanc/5155fc32ac1d955089a12a0bb8571806 to your computer and use it in GitHub Desktop.
HackRF to Baudline script for mac os
#!/bin/bash
# Original generic gist: https://gist.github.com/c5e3/eb90e9524821b3fb39d1979f873f0cb7
# ./hackrf_baudline.sh <frequency> <samplerate> <IFgain> <BBgain>
if [[ $# -ne 4 ]]; then
echo "usage: hackrf_baudline.sh <frequency> <samplerate> <IFgain> <BBgain>"
exit 1
fi
FFT=$((${2}/1000000*2048))
hackrf_transfer -r - -l $3 -g $4 -f $1 -s $2 | /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