1
0
mirror of git://projects.qi-hardware.com/ben-wpan.git synced 2024-11-25 20:04:03 +02:00
ben-wpan/usrp/plscan
Werner Almesberger b3c0b4bf62 usrp: update filtering and display for uncorrupted measurement setup
We now have a much wider dynamic range of the signal (with better SNR).
The outliers are mainly WLAN interferences.

- usrp/evscan: changed threshold from -50 dB to -70 dB
- usrp/evscan: increase outlier tolerance from 2 dB to 10 dB
- usrp/plscan: changed display range from [-35:-25] to [-40:-5]
2010-12-01 11:08:16 -03:00

38 lines
618 B
Bash
Executable File

#!/bin/sh
usage()
{
echo "usage: $0 [-o pngfile] file ..." 1>&2
exit 1
}
if [ "X$1" = X-o ]; then
out=$2
shift 2
fi
[ "$1" ] || usage
[ "${1#-}" = "$1" ] || usage
gnuplot -persist <<EOF
`[ "$out" ] && ( echo set term png\;; echo set output \'$out\'; )`
set xlabel "MHz"
set ylabel "dB"
set xrange [2402:2483]
set yrange [-40:-5]
set title "Received signal strength"
set data style errorlines
plot \
`for n in $@; do
if [ "$n" = "${n#*=}" ]; then
file=$n
title=${n%.*}
else
file=${n#*=}
title=${n%%=*}
fi
echo -n $comma \'$file\' title \'$title\'
comma=,
done`
EOF