1
0
mirror of git://projects.qi-hardware.com/ben-wpan.git synced 2024-11-16 23:11:55 +02:00
ben-wpan/usrp/sps/collect
Werner Almesberger 7258e10a9a usrp/sps: further improved scripts, added Makefile
- Makefile (index): generate an illustrated index of all the measurement
  runs
- Makefile (upload): upload images and index to downloads.qi-hardware.com
- collect: added optional directory argument, for cases where the
  destination directory differs from the local directory
- collect: hard-coded remote host to run usrp2_rx_cfile.py at
- collect: added . to PATH, for execution of a local copy of atrf-txrx
- row: generate entire HTML page, not just the table entries
- row: accept a list of prefixes to iterate through
- row: highlight rows starting a "new" prefix
- viz: corrected sprintf formats from +%...f to %+...f
- viz: show negative peak power in red
2011-03-04 20:28:59 -03:00

30 lines
548 B
Bash
Executable File

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