--> ap/xxxxx

__

scrying and logging notes: (scrying_tech_notes#53)

1] Latest serial/memory logging code:

http://scrying.svn.sourceforge.net/viewvc/scrying/

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:

xxxxx:help                                                                                        
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:

http://users.skynet.be/chricat/signal/signal-strength.html

iwspy eth0 192.168.1.1

cat iwspy.sh

#!/bin/bash
while true
do
        iwspy eth0
        sleep 1
done | grep Signal

./iwspy.sh > iwtest

cat iwperl.pl

#!/usr/bin/perl
while ($line = <STDIN>)
{
       
        if ($line =~ /level=(-[0-9]+).*level=(-[0-9]+)/)
                {
                print "$1 $2\n";
                chomp($line=<STDIN>);
                }
}

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"