summaryrefslogtreecommitdiff
path: root/src/python/capture.sh
diff options
context:
space:
mode:
authorPiotr Krysik <perper@o2.pl>2009-06-30 23:03:33 +0200
committerPiotr Krysik <perper@o2.pl>2009-06-30 23:03:33 +0200
commit8d2bc49fb9e0c9a5fbd75aa3cad207608e72bf99 (patch)
treea32fdcd2e8e2b16cc725045d049ed94b3f675956 /src/python/capture.sh
parent8f97a59b21fd8d3ecd111ee770932d852e625d52 (diff)
moved gsm-receiver into directory - preparation to move to airprobe
Diffstat (limited to 'src/python/capture.sh')
-rwxr-xr-xsrc/python/capture.sh45
1 files changed, 0 insertions, 45 deletions
diff --git a/src/python/capture.sh b/src/python/capture.sh
deleted file mode 100755
index ef205d8..0000000
--- a/src/python/capture.sh
+++ /dev/null
@@ -1,45 +0,0 @@
-#! /bin/sh
-
-if [ $1"x" = x ]; then
- echo "./capture.sh <freq> [duration==10] [decim==112] [gain==52]"
- echo "Example: ./capture.sh 940.4M"
- exit 1
-fi
-FREQ=$1
-
-DURATION=$2
-if [ $2"x" = x ]; then
- DURATION=10
-fi
-DECIM=$3
-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"
- if [ $? -eq 0 ]; then
- break
- fi
- USRP_PROG=/usr/share/gnuradio/usrp/usrp_rx_cfile.py
- which "$USRP_PROG"
- if [ $? -eq 0 ]; then
- break
- fi
-
- echo "ERROR: usrp_rx_cfile.py not found. Make sure it's in your PATH!"
- exit 1
-done
-
-FILE="capture_${FREQ}_${DECIM}.cfile"
-samples=`expr 64000000 / $DECIM '*' $DURATION`
-echo "Capturing for $DURATION seconds to $FILE ($samples samples)"
-$USRP_PROG -g $GAIN -d "$DECIM" -f "$FREQ" -N $samples $FILE
-
personal git repositories of Harald Welte. Your mileage may vary