From 3f0169585338a5412f6aa46d2feada369436853f Mon Sep 17 00:00:00 2001 From: Piotr Krysik Date: Mon, 15 Jun 2009 18:14:43 +0200 Subject: some changes to test.sh --- INSTALL | 4 +++- README | 1 - src/python/capture.sh | 10 ++++++++-- src/python/go.sh | 2 +- src/python/test.sh | 2 +- 5 files changed, 13 insertions(+), 6 deletions(-) diff --git a/INSTALL b/INSTALL index 0174797..2e57aa5 100644 --- a/INSTALL +++ b/INSTALL @@ -1,6 +1,8 @@ +Under Ubuntu 9.04 install: + $ apt-get install gnuradio libtool automake + To build the GSM Receiver use: $ ./bootstrap $ cd debug $ ./configure $ make - diff --git a/README b/README index 90aab7f..96b560b 100644 --- a/README +++ b/README @@ -3,4 +3,3 @@ Usage: $ capture.sh -run go.sh on this file: $ go.sh - 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 [duration==10] [decim==112]" + echo "./capture.sh [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 [decim==112]" +#echo "go.sh [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` -- cgit v1.2.3