2011-03-04 04:26:31 +02:00
|
|
|
#!/bin/sh
|
2011-03-05 01:28:59 +02:00
|
|
|
|
|
|
|
PATH=$PATH:.
|
|
|
|
|
|
|
|
if ! [ "$1" ] || [ "$3" ]; then
|
|
|
|
echo "usage: $0 prefix [directory]" 1>&2
|
2011-03-04 04:26:31 +02:00
|
|
|
exit 1
|
|
|
|
fi
|
2011-03-05 01:28:59 +02:00
|
|
|
|
|
|
|
if [ "$2" ]; then
|
|
|
|
if [ "${2#/}" = "$2" ]; then
|
|
|
|
dir=`pwd`/$2
|
|
|
|
else
|
|
|
|
dir=$2
|
|
|
|
fi
|
|
|
|
else
|
|
|
|
dir=`pwd`
|
|
|
|
fi
|
|
|
|
|
2011-03-04 04:26:31 +02:00
|
|
|
f=2405
|
|
|
|
while [ $f -le 2480 ]; do
|
2011-03-05 01:28:59 +02:00
|
|
|
echo Center: $f MHz 1>&2
|
2011-03-04 04:26:31 +02:00
|
|
|
f1=`expr $f + 1`
|
|
|
|
atrf-txrx -f $f -p 4 -T -0.5 \
|
2011-03-05 01:28:59 +02:00
|
|
|
"sleep 1; ssh -a -x ws usrp2_rx_cfile.py -d 16 -g 46 -f ${f}M -N 1M $dir/$1-$f"
|
2011-03-04 04:26:31 +02:00
|
|
|
atrf-txrx -f $f -p 4 -T +0.5 \
|
2011-03-05 01:28:59 +02:00
|
|
|
"sleep 1; ssh -a -x ws usrp2_rx_cfile.py -d 16 -g 46 -f ${f1}M -N 1M $dir/$1-$f1"
|
2011-03-04 04:26:31 +02:00
|
|
|
f=`expr $f + 5`
|
|
|
|
done
|