mirror of
git://projects.qi-hardware.com/ben-wpan.git
synced 2024-12-23 16:25:30 +02:00
a2e0e1d807
- Makefile (DIRS): added atrf-path - atrf-path/Makefile, atrf-path/atrf-path.c: new utility atrf-path to measure path characteristics (for now, TX-to-RX path attenuation) - atrf-path/plot: visualize path loss measurements
24 lines
315 B
Bash
Executable File
24 lines
315 B
Bash
Executable File
#!/bin/sh
|
|
|
|
usage()
|
|
{
|
|
echo "usage: file ..." 1>&2
|
|
exit 1
|
|
}
|
|
|
|
[ "$1" ] || usage
|
|
files=
|
|
while [ "$1" ]; do
|
|
[ "$files" ] && files="$files, "
|
|
files="$files\"$1\""
|
|
shift
|
|
done
|
|
|
|
gnuplot -persist <<EOF
|
|
set yrange [-94:-10]
|
|
set ylabel "RX-TX power (dBm)"
|
|
set xlabel "Frequency (MHz)"
|
|
set style data lines
|
|
plot $files
|
|
EOF
|