This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
echo "Content-Type: audio/wav" | |
echo | |
freq=$QUERY_STRING | |
if [ x$freq = x ]; then | |
freq="82.5M" | |
fi | |
rtl_fm -s 32000 -f $freq -W - | sox -r 32000 -c 1 -t s16 - -t wav - |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
echo "Content-Type: audio/wav" | |
echo | |
freq=$QUERY_STRING | |
if [ x$freq = x ]; then | |
freq="145M" | |
fi | |
/usr/local/bin/rtl_fm -s 16000 -f $freq -N -p 90 - | /usr/bin/sox -r 16000 -c 1 -t s16 - -t wav - |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> | |
<html> <head> | |
<title>Remote 2M NBFM RX</title> | |
<SCRIPT LANGUAGE=javascript> | |
var baseuri = "/cgi-bin/nbfm2wav.cgi?"; | |
var audio = null; | |
function tune(freq) { | |
if (audio != null) { | |
audio.src = baseuri + freq; | |
audio.load(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
echo "Content-Type: audio/wav" | |
echo | |
freq=$QUERY_STRING | |
/usr/local/bin/rtl_fm -s 16000 -f $freq -M -p 90 - | /usr/bin/sox -r 16000 -c 1 -t s16 - -t wav - |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from pylibftdi import BitBangDevice | |
from dds import AD9859, BitBangInterface | |
crystal = 25e6 | |
mul = 16 | |
fclk = mul * crystal | |
pins = { "sdio":4, "sclk":0, "ioupdate":2, "iosync":6, "reset":7 } | |
conf = { "pins":pins, "fclk":400e6, "refclk_multiplier":16, "vco_range":1 } | |
freq = 10e6 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
################################################## | |
# Gnuradio Python Flow Graph | |
# Title: Vna Probe | |
# Generated: Sat Jan 12 03:07:08 2013 | |
################################################## | |
from pylibftdi import BitBangDevice | |
from vna import vna |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from pylab import * | |
f,arg,mag,ref = loadtxt('vnaplot.dat', delimiter=' ', unpack=True) | |
subplot(2,1,1) | |
plot(f, mag, label='mag') | |
plot(f, ref, label='ref') | |
xlabel('Frequency (Hz)') | |
ylabel('Amplitude (dB)') | |
grid(True) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from pylab import * | |
f,arg,mag,ref = loadtxt('vnaplot.dat', delimiter=' ', unpack=True) | |
polar(arg, mag) | |
polar(arg, ref) | |
grid(True) | |
show() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import matplotlib as mpl | |
from mpl_toolkits.mplot3d import Axes3D | |
import numpy as np | |
import matplotlib.pyplot as plt | |
f,arg,mag,ref = np.loadtxt('vnaplot.dat', delimiter=' ', unpack=True) | |
mpl.rcParams['legend.fontsize'] = 10 | |
fig = plt.figure() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
################################################## | |
# Gnuradio Python Flow Graph | |
# Title: Vna Probe | |
# Generated: Sat Jan 12 03:07:08 2013 | |
################################################## | |
from pylibftdi import BitBangDevice | |
from vna import vna |