:py:mod:`sdr_helper` ==================== .. py:module:: sdr_helper Subpackages ----------- .. toctree:: :titlesonly: :maxdepth: 3 test/index.rst Submodules ---------- .. toctree:: :titlesonly: :maxdepth: 1 __version__/index.rst rtlsdr/index.rst sdr_helper/index.rst Package Contents ---------------- Functions ~~~~~~~~~ .. autoapisummary:: sdr_helper.discrim sdr_helper.mono_fm sdr_helper.stereo_fm sdr_helper.wide_psd sdr_helper.pilot_pll sdr_helper.sccs_bit_sync sdr_helper.fsk_bep sdr_helper.to_wav_stereo sdr_helper.complex2wav sdr_helper.wav2complex .. py:function:: discrim(x) function disdata = discrim(x) where x is an angle modulated signal in complex baseband form. Mark Wickert .. !! processed by numpydoc !! .. py:function:: mono_fm(x, fs=2400000.0, file_name='test.wav') Decimate complex baseband input by 10 Design 1st decimation lowpass filter (f_c = 200 KHz) .. !! processed by numpydoc !! .. py:function:: stereo_fm(x, fs=2400000.0, file_name='test.wav') Stereo demod from complex baseband at sampling rate fs. Assume fs is 2400 ksps Mark Wickert July 2017 .. !! processed by numpydoc !! .. py:function:: wide_psd(tc, f_start, f_stop, fs=2400000.0, rho=0.6) .. py:function:: pilot_pll(xr, fq, fs, loop_type, bn, zeta) Mark Wickert, April 2014 .. !! processed by numpydoc !! .. py:function:: sccs_bit_sync(y, ns) ////////////////////////////////////////////////////// Symbol synchronization algorithm using SCCS ////////////////////////////////////////////////////// y = baseband NRZ data waveform Ns = nominal number of samples per symbol Reworked from ECE 5675 Project Translated from m-code version Mark Wickert April 2014 .. !! processed by numpydoc !! .. py:function:: fsk_bep(rx_data, m, flip) Estimate the BEP of the data bits recovered by the RTL-SDR Based FSK Receiver. The reference m-sequence generated in Python was found to produce sequences running in the opposite direction relative to the m-sequences generated by the mbed. To allow error detection the reference m-sequence is flipped. Mark Wickert April 2014 .. !! processed by numpydoc !! .. py:function:: to_wav_stereo(filename, rate, x_l, x_r=None) .. py:function:: complex2wav(filename, rate, x) Save a complex signal vector to a wav file for compact binary storage of 16-bit signal samples. The wav left and right channels are used to save real (I) and imaginary (Q) values. The rate is just a convent way of documenting the original signal sample rate. complex2wav(filename,rate,x) Mark Wickert April 2014 .. !! processed by numpydoc !! .. py:function:: wav2complex(filename) Return a complex signal vector from a wav file that was used to store the real (I) and imaginary (Q) values of a complex signal ndarray. The rate is included as means of recalling the original signal sample rate. fs,x = wav2complex(filename) Mark Wickert April 2014 .. !! processed by numpydoc !!