Root/usrp/20100925-msgs/step

1#!/bin/sh -x
2
3CH_FIRST=11
4CH_LAST=26
5RUNS=${1:-10}
6
7m10=0123456789
8m20=$m10$m10
9MSG=$m20$m20$m20$m20$m20
10
11
12mhz()
13{
14    expr 2405 + 5 \* \( $1 - 11 \)
15}
16
17rm -f out
18run=0
19while [ $run -lt $RUNS ]; do
20    c=$CH_FIRST
21    while [ $c -le $CH_LAST ]; do
22    echo "Run $run, ch $c (`mhz $c` MHz)" 1>&2
23        mhz $c | tr '\n' ' ' >>out
24    ( ssh ben ./atrf-txrx -c $c -p 4 $MSG 1500; echo DONE 1>&2; ) &
25    sleep 3
26    ( ulimit -t 60;
27      usrp2_rx_cfile.py -d 4 -f `mhz $c`M -g 40 -N 100M tmp; )
28    sync
29    ./p <tmp >>out
30    rm -f tmp
31    sync
32    sleep 2
33    c=`expr $c + 1`
34    done
35    run=`expr $run + 1`
36    echo >>out
37done
38

Archive Download this file



interactive