IEEE 802.15.4 subsystem
Sign in or create your account | Project List | Help
IEEE 802.15.4 subsystem Git Source Tree
Root/
| Source at commit 9c64024af55259eb27fe2d86aa8e26257c996342 created 7 years 1 month ago. By Stefan Schmidt, atusb/Makefile: add missing atusb back layer to upload target | |
|---|---|
| 1 | #!/bin/sh |
| 2 | |
| 3 | usage() |
| 4 | { |
| 5 | echo "usage: $0 [-o pngfile] file ..." 1>&2 |
| 6 | exit 1 |
| 7 | } |
| 8 | |
| 9 | |
| 10 | if [ "X$1" = X-o ]; then |
| 11 | out=$2 |
| 12 | shift 2 |
| 13 | fi |
| 14 | [ "$1" ] || usage |
| 15 | [ "${1#-}" = "$1" ] || usage |
| 16 | |
| 17 | gnuplot -persist <<EOF |
| 18 | `[ "$out" ] && ( echo set term png\;; echo set output \'$out\'; )` |
| 19 | set xlabel "MHz" |
| 20 | set ylabel "dB" |
| 21 | set xrange [2402:2483] |
| 22 | #set yrange [-30:-5] |
| 23 | set title "Received signal strength" |
| 24 | set data style errorlines |
| 25 | plot \ |
| 26 | `for n in $@; do |
| 27 | if [ "$n" = "${n#*=}" ]; then |
| 28 | file=$n |
| 29 | title=${n%.*} |
| 30 | else |
| 31 | file=${n#*=} |
| 32 | title=${n%%=*} |
| 33 | fi |
| 34 | echo -n $comma \'$file\' title \'$title\' |
| 35 | comma=, |
| 36 | done` |
| 37 | EOF |
| 38 | |
