Last active
August 25, 2017 08:12
-
-
Save RouquinBlanc/5155fc32ac1d955089a12a0bb8571806 to your computer and use it in GitHub Desktop.
HackRF to Baudline script for mac os
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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