mirror of
git://projects.qi-hardware.com/ben-wpan.git
synced 2025-04-21 12:27:27 +03:00
tools: new utility atrf-path to measure path characteristics
- 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
This commit is contained in:
23
tools/atrf-path/plot
Executable file
23
tools/atrf-path/plot
Executable file
@@ -0,0 +1,23 @@
|
||||
#!/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
|
||||
Reference in New Issue
Block a user