--> ap/xxxxx


scrying and logging notes: (scrying_tech_notes#53)

1] Latest serial/memory logging code:


Programmed with:

avrdude -c avrusb500 -p m128 -P /dev/ttyUSB0 -U lfuse:w:0xFD:m -U hfuse:w:0x99:m -U efuse:w:0xFF:m -U flash:w:serialtest.hex
2] Commands:

log: output log                                                                                   
lv: print one sample
nm: show counter
res: reset counter
p: pause
s: start
d1/d2/d3: delays short->long
str: stream
q: quit stream
8bit: char output
10: 10 bit integer output
ant: antenna src
rssi: rssi board src
help: helps

3] As an aside remix of iwspy signal strength logging from:


iwspy eth0

cat iwspy.sh

while true
        iwspy eth0
        sleep 1
done | grep Signal

./iwspy.sh > iwtest

cat iwperl.pl

while ($line = <STDIN>)
        if ($line =~ /level=(-[0-9]+).*level=(-[0-9]+)/)
                print "$1 $2\n";

cat iwtest | ./iwperl.pl > iwproc

## and in gnuplot-mode buffer (send buffer with C-c C-b):

set title "iwspy"
set yrange [-120:-50]
set ylabel "dBm"
set xlabel "Sample"
set term png
set output 'xxxxx-strength.png'
plot 'iwproc' using :1 title "Signal", 'iwproc' using :2 title "Noise"