radio reception learning process

James Cameron quozl at us.netrek.org
Sun Jan 28 21:49:56 EST 2007


I'm wishing I had a feature that I could use during range testing ...
audio feedback of signal vs noise levels from the wireless subsystem.

This would allow me to learn best position quickly.  Both physical
position in space, orientation with respect to nearby units, and
deployment angle of movable sections such as the antennae.

This feature may also help others to learn best position ... even
children.

For it to work, the latency between a signal strength observation and
the audio report would have to be quite low.  I'm thinking no more than
a tenth of a second.

I've had an initial go at it ...

1.  script that generates a set of 20th second sine wave pulses
corresponding to most of the observed signal levels, which are then
copied to /tmp on the b-test-1 unit:

#!/bin/sh
for x in `seq -90 -30`; do
    FREQ=`echo "(90$x)*100+500"|bc`
    sox -t nul /dev/null -r 44100 -w /tmp/sine$x.wav \
        synth 00:00:00.05 sine create $FREQ
done

2.  script that is run on the b-test-1 unit to provide audio feedback:

#!/bin/sh
while true; do
	aplay /tmp/sine`signal-level`.wav
done

-- 
James Cameron    mailto:quozl at us.netrek.org     http://quozl.netrek.org/



More information about the Devel mailing list