1
0
mirror of git://projects.qi-hardware.com/ben-wpan.git synced 2024-09-12 23:01:30 +03:00
ben-wpan/usrp/sps/collect
Werner Almesberger fd27bdc442 usrp/sps/: spectrum scan utilities (work in progress)
- collect: set up a test transmission at each available frequency, then
  then record the signal seen by the USRP2
- norm: extract parameters necessary for normalization
- viz: visualize the spectrum with gnuplot
- row: generate rows of spectra with "viz"
2011-03-03 23:26:31 -03:00

15 lines
344 B
Bash
Executable File

#!/bin/sh
if ! [ "$1" ]; then
echo "usage: $0 prefix" 2>&1
exit 1
fi
f=2405
while [ $f -le 2480 ]; do
f1=`expr $f + 1`
atrf-txrx -f $f -p 4 -T -0.5 \
'sleep 1; usrp2_rx_cfile.py -d 16 -g 46 -f '$f'M -N 1M '$1-$f
atrf-txrx -f $f -p 4 -T +0.5 \
'sleep 1; usrp2_rx_cfile.py -d 16 -g 46 -f '$f1'M -N 1M '$1-$f1
f=`expr $f + 5`
done