mirror of
git://projects.qi-hardware.com/ben-wpan.git
synced 2024-11-26 16:55:19 +02:00
fd27bdc442
- 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"
38 lines
884 B
Bash
Executable File
38 lines
884 B
Bash
Executable File
#!/bin/sh
|
|
|
|
export GDFONTPATH
|
|
GDFONTPATH=$GDFONTPATH:/usr/share/fonts/truetype/ttf-liberation/
|
|
|
|
if ! [ "$1" ]; then
|
|
echo "usage: $0 prefix" 2>&1
|
|
exit 1
|
|
fi
|
|
|
|
prefix=$1
|
|
|
|
echo "<TR><TH>$prefix"
|
|
f=2405
|
|
while [ $f -le 2480 ]; do
|
|
echo "<TD align="center">$f MHz"
|
|
f=`expr $f + 5`
|
|
done
|
|
|
|
echo "<TR><TD align="right">-0.5 MHz"
|
|
f=2405
|
|
while [ $f -le 2480 ]; do
|
|
./viz -f LiberationSans-Bold -p $prefix-$f.png $prefix $f
|
|
convert -resize '15%' $prefix-$f.png $prefix-$f-small.png
|
|
echo "<TD><A href=\"$prefix-$f.png\"><IMG src=\"$prefix-$f-small.png\"></A>"
|
|
f=`expr $f + 5`
|
|
done
|
|
|
|
echo "<TR><TD align="right">+0.5 MHz"
|
|
f=2405
|
|
while [ $f -le 2480 ]; do
|
|
f1=`expr $f + 1`
|
|
./viz -f LiberationSans-Bold -p $prefix-$f1.png $prefix $f1
|
|
convert -resize '15%' $prefix-$f1.png $prefix-$f1-small.png
|
|
echo "<TD><A href=\"$prefix-$f1.png\"><IMG src=\"$prefix-$f1-small.png\"></A>"
|
|
f=`expr $f + 5`
|
|
done
|