mirror of
git://projects.qi-hardware.com/ben-wpan.git
synced 2024-11-22 14:58:25 +02:00
3684c0765a
- usrp/fscan: perform a frequency scan in my test setup - usrp/evscan: determine the frequency-dependent signal strength from a frequency scan - usrp/plscan: plot one or more data sets produced by evscan
31 lines
533 B
Bash
Executable File
31 lines
533 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 [-35:-25]
|
|
set title "Received signal strength"
|
|
set data style errorlines
|
|
plot \
|
|
`for n in $@; do
|
|
echo -n $comma \'$n\' title \'\`echo "$n" | sed "s/\..*//"\`\'
|
|
comma=,
|
|
done`
|
|
EOF
|