Skip to content

Instantly share code, notes, and snippets.

@kng
Created May 11, 2023 18:55
Show Gist options
  • Save kng/0758f05de34639beff67bde8b805a9fd to your computer and use it in GitHub Desktop.
Save kng/0758f05de34639beff67bde8b805a9fd to your computer and use it in GitHub Desktop.
dry run satnogs flowgraph
#!/bin/bash
# test run high baud with: BAUD=10000000 ./test-bpsk.sh
# It will raise AttributeError and quit
if [ -f /.env ]; then
source /.env
fi
if [ -z "${RX_FREQ}" ]; then
RX_FREQ="435000000"
fi
if [ -z "${SATNOGS_PPM_ERROR}" ]; then
SATNOGS_PPM_ERROR="0"
fi
if [ -z "${BAUD}" ]; then
BAUD="9600"
fi
if [ -z "${SATNOGS_RF_GAIN}" ]; then
SATNOGS_RF_GAIN="0"
fi
BIN="satnogs_bpsk.py"
ARGS="--soapy-rx-device=${SATNOGS_SOAPY_RX_DEVICE} \
--samp-rate-rx=${SATNOGS_RX_SAMP_RATE} \
--baudrate=${BAUD} \
--rx-freq=${RX_FREQ} \
--file-path=test.ogg \
--waterfall-file-path=test.dat \
--decoded-data-file-path=test_data \
--gain=${SATNOGS_RF_GAIN} \
--antenna=${SATNOGS_ANTENNA} \
--ppm=${SATNOGS_PPM_ERROR} \
--rigctl-host=${SATNOGS_RIG_IP} \
--rigctl-port=${SATNOGS_RIG_PORT}"
echo "Running rx at ${RX_FREQ}, press Ctrl-C to terminate."
${BIN} ${ARGS}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment