summaryrefslogtreecommitdiff
path: root/src/python/capture.sh
diff options
context:
space:
mode:
Diffstat (limited to 'src/python/capture.sh')
-rwxr-xr-xsrc/python/capture.sh10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/python/capture.sh b/src/python/capture.sh
index 7256f2b..ef205d8 100755
--- a/src/python/capture.sh
+++ b/src/python/capture.sh
@@ -1,7 +1,7 @@
#! /bin/sh
if [ $1"x" = x ]; then
- echo "./capture.sh <freq> [duration==10] [decim==112]"
+ echo "./capture.sh <freq> [duration==10] [decim==112] [gain==52]"
echo "Example: ./capture.sh 940.4M"
exit 1
fi
@@ -16,6 +16,12 @@ if [ $3"x" = x ]; then
DECIM=112
fi
+GAIN=$4
+if [ $4"x" = x ]; then
+ GAIN=52
+fi
+
+
USRP_PROG=usrp_rx_cfile.py
while :; do
which "$USRP_PROG"
@@ -35,5 +41,5 @@ done
FILE="capture_${FREQ}_${DECIM}.cfile"
samples=`expr 64000000 / $DECIM '*' $DURATION`
echo "Capturing for $DURATION seconds to $FILE ($samples samples)"
-$USRP_PROG -d "$DECIM" -f "$FREQ" -N $samples $FILE
+$USRP_PROG -g $GAIN -d "$DECIM" -f "$FREQ" -N $samples $FILE
personal git repositories of Harald Welte. Your mileage may vary