Added presentazion @ hack-or-di(y)e 2016
This commit is contained in:
parent
5061ac5619
commit
558f4cc7af
3 changed files with 175 additions and 176 deletions
BIN
doc/scanna.pdf
Normal file
BIN
doc/scanna.pdf
Normal file
Binary file not shown.
334
scanna.grc
334
scanna.grc
|
@ -1,7 +1,7 @@
|
|||
<?xml version='1.0' encoding='ASCII'?>
|
||||
<?grc format='1' created='3.7.5'?>
|
||||
<flow_graph>
|
||||
<timestamp>Tue Nov 8 14:43:44 2016</timestamp>
|
||||
<timestamp>Sat Nov 12 11:39:03 2016</timestamp>
|
||||
<block>
|
||||
<key>options</key>
|
||||
<param>
|
||||
|
@ -69,7 +69,7 @@
|
|||
<key>variable</key>
|
||||
<param>
|
||||
<key>id</key>
|
||||
<value>transition</value>
|
||||
<value>samp_rate</value>
|
||||
</param>
|
||||
<param>
|
||||
<key>_enabled</key>
|
||||
|
@ -77,7 +77,7 @@
|
|||
</param>
|
||||
<param>
|
||||
<key>value</key>
|
||||
<value>8000</value>
|
||||
<value>2000000</value>
|
||||
</param>
|
||||
<param>
|
||||
<key>alias</key>
|
||||
|
@ -85,61 +85,7 @@
|
|||
</param>
|
||||
<param>
|
||||
<key>_coordinate</key>
|
||||
<value>(336, 21)</value>
|
||||
</param>
|
||||
<param>
|
||||
<key>_rotation</key>
|
||||
<value>0</value>
|
||||
</param>
|
||||
</block>
|
||||
<block>
|
||||
<key>variable</key>
|
||||
<param>
|
||||
<key>id</key>
|
||||
<value>variable_0</value>
|
||||
</param>
|
||||
<param>
|
||||
<key>_enabled</key>
|
||||
<value>True</value>
|
||||
</param>
|
||||
<param>
|
||||
<key>value</key>
|
||||
<value>0</value>
|
||||
</param>
|
||||
<param>
|
||||
<key>alias</key>
|
||||
<value></value>
|
||||
</param>
|
||||
<param>
|
||||
<key>_coordinate</key>
|
||||
<value>(560, 21)</value>
|
||||
</param>
|
||||
<param>
|
||||
<key>_rotation</key>
|
||||
<value>0</value>
|
||||
</param>
|
||||
</block>
|
||||
<block>
|
||||
<key>variable</key>
|
||||
<param>
|
||||
<key>id</key>
|
||||
<value>volume</value>
|
||||
</param>
|
||||
<param>
|
||||
<key>_enabled</key>
|
||||
<value>True</value>
|
||||
</param>
|
||||
<param>
|
||||
<key>value</key>
|
||||
<value>1</value>
|
||||
</param>
|
||||
<param>
|
||||
<key>alias</key>
|
||||
<value></value>
|
||||
</param>
|
||||
<param>
|
||||
<key>_coordinate</key>
|
||||
<value>(688, 21)</value>
|
||||
<value>(232, 21)</value>
|
||||
</param>
|
||||
<param>
|
||||
<key>_rotation</key>
|
||||
|
@ -177,7 +123,7 @@
|
|||
<key>variable</key>
|
||||
<param>
|
||||
<key>id</key>
|
||||
<value>samp_rate</value>
|
||||
<value>volume</value>
|
||||
</param>
|
||||
<param>
|
||||
<key>_enabled</key>
|
||||
|
@ -185,7 +131,7 @@
|
|||
</param>
|
||||
<param>
|
||||
<key>value</key>
|
||||
<value>2000000</value>
|
||||
<value>1</value>
|
||||
</param>
|
||||
<param>
|
||||
<key>alias</key>
|
||||
|
@ -193,7 +139,61 @@
|
|||
</param>
|
||||
<param>
|
||||
<key>_coordinate</key>
|
||||
<value>(232, 21)</value>
|
||||
<value>(688, 21)</value>
|
||||
</param>
|
||||
<param>
|
||||
<key>_rotation</key>
|
||||
<value>0</value>
|
||||
</param>
|
||||
</block>
|
||||
<block>
|
||||
<key>variable</key>
|
||||
<param>
|
||||
<key>id</key>
|
||||
<value>variable_0</value>
|
||||
</param>
|
||||
<param>
|
||||
<key>_enabled</key>
|
||||
<value>True</value>
|
||||
</param>
|
||||
<param>
|
||||
<key>value</key>
|
||||
<value>0</value>
|
||||
</param>
|
||||
<param>
|
||||
<key>alias</key>
|
||||
<value></value>
|
||||
</param>
|
||||
<param>
|
||||
<key>_coordinate</key>
|
||||
<value>(560, 21)</value>
|
||||
</param>
|
||||
<param>
|
||||
<key>_rotation</key>
|
||||
<value>0</value>
|
||||
</param>
|
||||
</block>
|
||||
<block>
|
||||
<key>variable</key>
|
||||
<param>
|
||||
<key>id</key>
|
||||
<value>transition</value>
|
||||
</param>
|
||||
<param>
|
||||
<key>_enabled</key>
|
||||
<value>True</value>
|
||||
</param>
|
||||
<param>
|
||||
<key>value</key>
|
||||
<value>8000</value>
|
||||
</param>
|
||||
<param>
|
||||
<key>alias</key>
|
||||
<value></value>
|
||||
</param>
|
||||
<param>
|
||||
<key>_coordinate</key>
|
||||
<value>(336, 21)</value>
|
||||
</param>
|
||||
<param>
|
||||
<key>_rotation</key>
|
||||
|
@ -502,112 +502,6 @@
|
|||
<value>0</value>
|
||||
</param>
|
||||
</block>
|
||||
<block>
|
||||
<key>analog_nbfm_rx</key>
|
||||
<param>
|
||||
<key>id</key>
|
||||
<value>analog_nbfm_rx_0</value>
|
||||
</param>
|
||||
<param>
|
||||
<key>_enabled</key>
|
||||
<value>True</value>
|
||||
</param>
|
||||
<param>
|
||||
<key>audio_rate</key>
|
||||
<value>25000</value>
|
||||
</param>
|
||||
<param>
|
||||
<key>quad_rate</key>
|
||||
<value>500000</value>
|
||||
</param>
|
||||
<param>
|
||||
<key>tau</key>
|
||||
<value>75e-6</value>
|
||||
</param>
|
||||
<param>
|
||||
<key>max_dev</key>
|
||||
<value>5e3</value>
|
||||
</param>
|
||||
<param>
|
||||
<key>alias</key>
|
||||
<value></value>
|
||||
</param>
|
||||
<param>
|
||||
<key>affinity</key>
|
||||
<value></value>
|
||||
</param>
|
||||
<param>
|
||||
<key>minoutbuf</key>
|
||||
<value>0</value>
|
||||
</param>
|
||||
<param>
|
||||
<key>maxoutbuf</key>
|
||||
<value>0</value>
|
||||
</param>
|
||||
<param>
|
||||
<key>_coordinate</key>
|
||||
<value>(664, 191)</value>
|
||||
</param>
|
||||
<param>
|
||||
<key>_rotation</key>
|
||||
<value>0</value>
|
||||
</param>
|
||||
</block>
|
||||
<block>
|
||||
<key>rational_resampler_xxx</key>
|
||||
<param>
|
||||
<key>id</key>
|
||||
<value>rational_resampler_xxx_1</value>
|
||||
</param>
|
||||
<param>
|
||||
<key>_enabled</key>
|
||||
<value>True</value>
|
||||
</param>
|
||||
<param>
|
||||
<key>type</key>
|
||||
<value>fff</value>
|
||||
</param>
|
||||
<param>
|
||||
<key>interp</key>
|
||||
<value>24</value>
|
||||
</param>
|
||||
<param>
|
||||
<key>decim</key>
|
||||
<value>25</value>
|
||||
</param>
|
||||
<param>
|
||||
<key>taps</key>
|
||||
<value></value>
|
||||
</param>
|
||||
<param>
|
||||
<key>fbw</key>
|
||||
<value>0</value>
|
||||
</param>
|
||||
<param>
|
||||
<key>alias</key>
|
||||
<value></value>
|
||||
</param>
|
||||
<param>
|
||||
<key>affinity</key>
|
||||
<value></value>
|
||||
</param>
|
||||
<param>
|
||||
<key>minoutbuf</key>
|
||||
<value>0</value>
|
||||
</param>
|
||||
<param>
|
||||
<key>maxoutbuf</key>
|
||||
<value>0</value>
|
||||
</param>
|
||||
<param>
|
||||
<key>_coordinate</key>
|
||||
<value>(888, 191)</value>
|
||||
</param>
|
||||
<param>
|
||||
<key>_rotation</key>
|
||||
<value>0</value>
|
||||
</param>
|
||||
</block>
|
||||
<block>
|
||||
<key>low_pass_filter</key>
|
||||
<param>
|
||||
|
@ -1029,6 +923,112 @@
|
|||
<value>0</value>
|
||||
</param>
|
||||
</block>
|
||||
<block>
|
||||
<key>analog_nbfm_rx</key>
|
||||
<param>
|
||||
<key>id</key>
|
||||
<value>analog_nbfm_rx_0</value>
|
||||
</param>
|
||||
<param>
|
||||
<key>_enabled</key>
|
||||
<value>True</value>
|
||||
</param>
|
||||
<param>
|
||||
<key>audio_rate</key>
|
||||
<value>100000</value>
|
||||
</param>
|
||||
<param>
|
||||
<key>quad_rate</key>
|
||||
<value>500000</value>
|
||||
</param>
|
||||
<param>
|
||||
<key>tau</key>
|
||||
<value>75e-6</value>
|
||||
</param>
|
||||
<param>
|
||||
<key>max_dev</key>
|
||||
<value>5e3</value>
|
||||
</param>
|
||||
<param>
|
||||
<key>alias</key>
|
||||
<value></value>
|
||||
</param>
|
||||
<param>
|
||||
<key>affinity</key>
|
||||
<value></value>
|
||||
</param>
|
||||
<param>
|
||||
<key>minoutbuf</key>
|
||||
<value>0</value>
|
||||
</param>
|
||||
<param>
|
||||
<key>maxoutbuf</key>
|
||||
<value>0</value>
|
||||
</param>
|
||||
<param>
|
||||
<key>_coordinate</key>
|
||||
<value>(664, 191)</value>
|
||||
</param>
|
||||
<param>
|
||||
<key>_rotation</key>
|
||||
<value>0</value>
|
||||
</param>
|
||||
</block>
|
||||
<block>
|
||||
<key>rational_resampler_xxx</key>
|
||||
<param>
|
||||
<key>id</key>
|
||||
<value>rational_resampler_xxx_1</value>
|
||||
</param>
|
||||
<param>
|
||||
<key>_enabled</key>
|
||||
<value>True</value>
|
||||
</param>
|
||||
<param>
|
||||
<key>type</key>
|
||||
<value>fff</value>
|
||||
</param>
|
||||
<param>
|
||||
<key>interp</key>
|
||||
<value>24</value>
|
||||
</param>
|
||||
<param>
|
||||
<key>decim</key>
|
||||
<value>100</value>
|
||||
</param>
|
||||
<param>
|
||||
<key>taps</key>
|
||||
<value></value>
|
||||
</param>
|
||||
<param>
|
||||
<key>fbw</key>
|
||||
<value>0</value>
|
||||
</param>
|
||||
<param>
|
||||
<key>alias</key>
|
||||
<value></value>
|
||||
</param>
|
||||
<param>
|
||||
<key>affinity</key>
|
||||
<value></value>
|
||||
</param>
|
||||
<param>
|
||||
<key>minoutbuf</key>
|
||||
<value>0</value>
|
||||
</param>
|
||||
<param>
|
||||
<key>maxoutbuf</key>
|
||||
<value>0</value>
|
||||
</param>
|
||||
<param>
|
||||
<key>_coordinate</key>
|
||||
<value>(888, 191)</value>
|
||||
</param>
|
||||
<param>
|
||||
<key>_rotation</key>
|
||||
<value>0</value>
|
||||
</param>
|
||||
</block>
|
||||
<connection>
|
||||
<source_block_id>analog_pwr_squelch_xx_0</source_block_id>
|
||||
<sink_block_id>blocks_wavfile_sink_0</sink_block_id>
|
||||
|
|
17
scanna.py
17
scanna.py
|
@ -2,7 +2,7 @@
|
|||
##################################################
|
||||
# Gnuradio Python Flow Graph
|
||||
# Title: Scanna
|
||||
# Generated: Sat Nov 5 18:04:51 2016
|
||||
# Generated: Sat Nov 12 11:39:05 2016
|
||||
##################################################
|
||||
|
||||
from gnuradio import analog
|
||||
|
@ -105,7 +105,7 @@ class scanna(grc_wxgui.top_block_gui):
|
|||
|
||||
self.rational_resampler_xxx_1 = filter.rational_resampler_fff(
|
||||
interpolation=24,
|
||||
decimation=25,
|
||||
decimation=100,
|
||||
taps=None,
|
||||
fractional_bw=None,
|
||||
)
|
||||
|
@ -116,12 +116,12 @@ class scanna(grc_wxgui.top_block_gui):
|
|||
fractional_bw=None,
|
||||
)
|
||||
self.low_pass_filter_0 = filter.fir_filter_ccf(1, firdes.low_pass(
|
||||
1, 500000, freq_1, transition, firdes.WIN_HAMMING, 6.76))
|
||||
1, 500000, 100000, transition, firdes.WIN_HAMMING, 6.76))
|
||||
self.blocks_wavfile_sink_0 = blocks.wavfile_sink("./output.wav", 1, 24000, 8)
|
||||
self.audio_sink_0 = audio.sink(24000, "", True)
|
||||
self.analog_pwr_squelch_xx_0 = analog.pwr_squelch_ff(squelch_0, 1, 1, True)
|
||||
self.analog_nbfm_rx_0 = analog.nbfm_rx(
|
||||
audio_rate=25000,
|
||||
audio_rate=100000,
|
||||
quad_rate=500000,
|
||||
tau=75e-6,
|
||||
max_dev=5e3,
|
||||
|
@ -135,9 +135,9 @@ class scanna(grc_wxgui.top_block_gui):
|
|||
self.connect((self.analog_nbfm_rx_0, 0), (self.rational_resampler_xxx_1, 0))
|
||||
self.connect((self.low_pass_filter_0, 0), (self.analog_nbfm_rx_0, 0))
|
||||
self.connect((self.rational_resampler_xxx_0, 0), (self.low_pass_filter_0, 0))
|
||||
self.connect((self.rtlsdr_source_0, 0), (self.rational_resampler_xxx_0, 0))
|
||||
self.connect((self.analog_pwr_squelch_xx_0, 0), (self.audio_sink_0, 0))
|
||||
self.connect((self.rtlsdr_source_0, 0), (self.wxgui_fftsink2_0, 0))
|
||||
self.connect((self.rtlsdr_source_0, 0), (self.rational_resampler_xxx_0, 0))
|
||||
|
||||
|
||||
|
||||
|
@ -158,7 +158,7 @@ class scanna(grc_wxgui.top_block_gui):
|
|||
|
||||
def set_transition(self, transition):
|
||||
self.transition = transition
|
||||
self.low_pass_filter_0.set_taps(firdes.low_pass(1, 500000, self.freq_1, self.transition, firdes.WIN_HAMMING, 6.76))
|
||||
self.low_pass_filter_0.set_taps(firdes.low_pass(1, 500000, 100000, self.transition, firdes.WIN_HAMMING, 6.76))
|
||||
|
||||
def get_squelch_0(self):
|
||||
return self.squelch_0
|
||||
|
@ -173,19 +173,18 @@ class scanna(grc_wxgui.top_block_gui):
|
|||
|
||||
def set_samp_rate(self, samp_rate):
|
||||
self.samp_rate = samp_rate
|
||||
self.rtlsdr_source_0.set_sample_rate(self.samp_rate)
|
||||
self.wxgui_fftsink2_0.set_sample_rate(self.samp_rate)
|
||||
self.rtlsdr_source_0.set_sample_rate(self.samp_rate)
|
||||
|
||||
def get_freq_1(self):
|
||||
return self.freq_1
|
||||
|
||||
def set_freq_1(self, freq_1):
|
||||
self.freq_1 = freq_1
|
||||
self.rtlsdr_source_0.set_center_freq(self.freq_1, 0)
|
||||
self._freq_1_slider.set_value(self.freq_1)
|
||||
self._freq_1_text_box.set_value(self.freq_1)
|
||||
self.wxgui_fftsink2_0.set_baseband_freq(self.freq_1)
|
||||
self.low_pass_filter_0.set_taps(firdes.low_pass(1, 500000, self.freq_1, self.transition, firdes.WIN_HAMMING, 6.76))
|
||||
self.rtlsdr_source_0.set_center_freq(self.freq_1, 0)
|
||||
|
||||
def get_cutoff(self):
|
||||
return self.cutoff
|
||||
|
|
Loading…
Reference in a new issue