summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rwxr-xr-xsrc/python/capture.sh10
-rwxr-xr-xsrc/python/go.sh2
-rwxr-xr-xsrc/python/test.sh2
3 files changed, 10 insertions, 4 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
diff --git a/src/python/go.sh b/src/python/go.sh
index 1e8150d..e0d1290 100755
--- a/src/python/go.sh
+++ b/src/python/go.sh
@@ -1,6 +1,6 @@
#! /bin/sh
-echo "go.sh <file.cfile> [decim==112]"
+#echo "go.sh <file.cfile> [decim==112]"
DECIM=$2
FILE=$1
diff --git a/src/python/test.sh b/src/python/test.sh
index 1631f70..0a828e9 100755
--- a/src/python/test.sh
+++ b/src/python/test.sh
@@ -1,6 +1,6 @@
#!/bin/sh
-./gsm_receive.py -I cfile > receiver-test.out
+./gsm_receive.py -I cfile > receiver-test.out 2> /dev/null
echo " 01 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b\n 15 06 21 00 01 00 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b" > receiver-comp.out
diff receiver-test.out receiver-comp.out > receiver-test-diff.out
test_result=`cat receiver-test-diff.out`
personal git repositories of Harald Welte. Your mileage may vary