[LAU] af-ping

James Cameron quozl at us.netrek.org
Thu Jul 26 00:53:32 EDT 2007


For the radio range testing on the One Laptop Per Child project, I've
added audio to Lars Strand's Python ping program.

Now it makes a sound on a twelve-tone scale where the pitch is related
to the time it takes for an ICMP Echo Request packet (ping) to return.

By default, the pings are at about 20 times per second, set by the
length of the sound samples.  Such rapid feedback makes it easier to
learn where wireless coverage is good, or bad.

It can also be used for regular reporting of the health of an internet
connection, using the --noflood option, but the output may be irregular
because the PCM device is not being fed at the speed it desires.

af-ping script is at:

http://quozl.linux.org.au/darcs/olpc-radio-testing/bin/af-ping

af-table-create uses sox to create the sound files in advance:

http://quozl.linux.org.au/darcs/olpc-radio-testing/bin/af-table-create

af-ping expects the files to be in /usr/share/olpc-radio-testing/sounds/
but this is easy to change in the script.

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



More information about the Linux-audio-user mailing list