Root/usrp/sps/collect

1#!/bin/sh
2
3PATH=$PATH:.
4
5if ! [ "$1" ] || [ "$3" ]; then
6    echo "usage: $0 prefix [directory]" 1>&2
7    exit 1
8fi
9
10if [ "$2" ]; then
11    if [ "${2#/}" = "$2" ]; then
12        dir=`pwd`/$2
13    else
14        dir=$2
15    fi
16else
17    dir=`pwd`
18fi
19
20f=2405
21while [ $f -le 2480 ]; do
22    echo Center: $f MHz 1>&2
23    f1=`expr $f + 1`
24    atrf-txrx -f $f -p 4 -T -0.5 \
25        "sleep 1; ssh -a -x ws usrp2_rx_cfile.py -d 16 -g 46 -f ${f}M -N 1M $dir/$1-$f"
26    atrf-txrx -f $f -p 4 -T +0.5 \
27        "sleep 1; ssh -a -x ws usrp2_rx_cfile.py -d 16 -g 46 -f ${f1}M -N 1M $dir/$1-$f1"
28    f=`expr $f + 5`
29done
30

Archive Download this file



interactive