Root/usrp/fscan

Source at commit 1fb05c221dcff657e49cc766e8ff7baa1d3434fc created 13 years 2 months ago.
By Werner Almesberger, misctxrx.c (wait_for_interrupt): let "ignore" control printing more tightly
1#!/bin/sh
2
3
4usage()
5{
6    echo "usage: $0 out-dir [tx-power]" 1>&2
7    exit 1
8}
9
10
11[ "$1" ] || usage
12[ "${1#-}" = "$1" ] || usage
13[ "$3" ] && usage
14mkdir "$1" || exit
15pwr=${2:-2.6}
16
17unset DISPLAY
18
19if [ "${1#/}" = "$1" ]; then
20    abs=`pwd`/$1
21else
22    abs=$1
23fi
24
25#for a in 0 1 2 3 4 5 6 7 8 9; do
26for a in 0 1; do
27    for b in 0 1 2 3 4 5 6 7 8 9; do
28    f=2405
29    while [ $f -le 2480 ]; do
30        echo -e $a$b $f MHz '\r'
31        mkdir -p "$1/$f"
32        atrf-txrx -f $f -p $pwr -T +0.5 \
33          "ssh ws usrp2_rx_cfile.py -d 16 -f $f.5M -g 46 -N 1124 \
34             $abs/$f/data$a$b"
35        f=`expr $f + 5`
36    done
37    done
38done
39

Archive Download this file



interactive