public void Initialize(ISharpControl control) { _control = control; _audioProcessor = new AudioProcessor(); _control.RegisterStreamHook(_audioProcessor, ProcessorType.FilteredAudioOutput); _ifProcessor = new IFProcessor(); _control.RegisterStreamHook(_ifProcessor, ProcessorType.DecimatedAndFilteredIQ); _ifProcessor.NoiseThreshold = Utils.GetIntSetting("DNRIThreshold", -30); _ifProcessor.Enabled = Utils.GetBooleanSetting("DNRIEnabled"); _audioProcessor.NoiseThreshold = Utils.GetIntSetting("DNRAThreshold", -70); _audioProcessor.Enabled = Utils.GetBooleanSetting("DNRAEnabled"); _guiControl = new ProcessorPanel(_ifProcessor, _audioProcessor); }
public void Initialize(ISharpControl control) { _control = control; _gui = new SpectrumAnalyzerPanel(); _gui.OnScanning += OnScanning; _drawing = new SpectrumAnalyzerDrawing(); _drawing.SetRanges(_gui.StartFreq, _gui.EndFreq, _gui.Step); if (_gui.ShowSpectrum == false) { _drawing.Hide(); } _timer = new System.Threading.Timer(state => OnScanning(), null, System.Threading.Timeout.Infinite, System.Threading.Timeout.Infinite); _gui.OnShowSpectrum += (show) => { if (show) { _drawing.Show(); } else { _drawing.Hide(); } }; _gui.OnExport += Export; _gui.OnAutoScan += AutoScan; _control.RegisterFrontControl(_drawing, PluginPosition.Bottom); _control.RegisterStreamHook(this, ProcessorType.RawIQ); AutoScan(); }
public SignalFinderProcessor(ISharpControl control) { _control = control; _display = new SignalFinderDisplay(); _control.RegisterStreamHook(this, Radio.ProcessorType.RawIQ); _control.RegisterFrontControl(_display, PluginPosition.Bottom); _display.Visible = true; }
public void Initialize(ISharpControl control) { _frontEndControl = new FrontEndControl(control); _basicProcessor = new BasicProcessor(control, _frontEndControl); _settingsControl = new SettingsControl(control, _frontEndControl, _basicProcessor); control.RegisterStreamHook(_basicProcessor, SDRSharp.Radio.ProcessorType.FilteredAudioOutput); control.RegisterFrontControl(_frontEndControl, PluginPosition.Bottom); _basicProcessor.Enabled = true; }
public void Initialize(ISharpControl control) { _control = control; _frontPanel = new FrontPanel(_control); _controlPanel = new ControlPanel(_frontPanel); _netServer = new SdrNetServer(); _netServer.Start(); _control.RegisterFrontControl(_frontPanel, PluginPosition.Top); _control.RegisterStreamHook(this, ProcessorType.FilteredAudioOutput); }
public RecordingPanel(ISharpControl control) { InitializeComponent(); _control = control; _audioProcessor.Bypass = true; _iqObserver.Enabled = false; _control.RegisterStreamHook(_iqObserver); _control.RegisterStreamHook(_audioProcessor); _audioRecorder = new SimpleRecorder(_audioProcessor); _basebandRecorder = new SimpleRecorder(_iqObserver); _control.PropertyChanged += PropertyChangedHandler; InitializeGUI(); ConfigureGUI(); }
public void Initialize(ISharpControl control) { Console.WriteLine("Initialize Plugin\r\n"); control_ = control; _UDPaudioProcessor.Enabled = false; control_.RegisterStreamHook(_UDPaudioProcessor, ProcessorType.FilteredAudioOutput); _UDPaudioStreamer = new SimpleStreamer(_UDPaudioProcessor, "127.0.0.1", 7355); _controlpanel = new Controlpanel(); _controlpanel.StartStreamingAF += SDRSharp_StreamerChanged; }
public RecordingPanel(ISharpControl control) { InitializeComponent(); _control = control; _audioProcessor.Enabled = false; _iqProcessor.Enabled = false; _control.RegisterStreamHook(_iqProcessor, ProcessorType.RawIQ); _control.RegisterStreamHook(_audioProcessor, ProcessorType.FilteredAudioOutput); _audioRecorder = new SimpleRecorder(_audioProcessor); _basebandRecorder = new SimpleRecorder(_iqProcessor); _control.PropertyChanged += PropertyChangedHandler; InitializeGUI(); ConfigureGUI(); }
public void Initialize(ISharpControl control) { _frontEndControl = new FrontEndControl(control); _basicProcessor = new BasicProcessor(control, _frontEndControl); _settingsControl = new SettingsControl(control, _basicProcessor); control.RegisterStreamHook(_basicProcessor, Radio.ProcessorType.FilteredAudioOutput); control.RegisterFrontControl(_frontEndControl, PluginPosition.Bottom); _basicProcessor.Enabled = true; }
public void Initialize(ISharpControl control) { _control = control; _processor = new NoiseBlankerProcessor(); _processor.Enabled = Utils.GetBooleanSetting("NBEnabled"); _processor.NoiseThreshold = Utils.GetIntSetting("NBThreshold", 80); _processor.PulseWidth = Utils.GetDoubleSetting("NBPulseWidth", 10); _guiControl = new ProcessorPanel(_processor); _control.RegisterStreamHook(_processor, ProcessorType.RawIQ); }
public void Initialize(ISharpControl control) { _control = control; _control.PropertyChanged += new PropertyChangedEventHandler(PropertyChangedHandler); _audioProcessor = new AudioProcessor(); _control.RegisterStreamHook(_audioProcessor); _guiControl = new AudioProcessorPanel(_audioProcessor); }
public BinaryDataReceiver(ISharpControl control, RecordingMode mode, WavSampleFormat format) { this.control = control; if (mode == RecordingMode.Audio) { _audioProcessor = new RecordingAudioProcessor(); _audioProcessor.Enabled = true; control.RegisterStreamHook((object)this._audioProcessor, ProcessorType.FilteredAudioOutput); SampleRate = (double)control.AudioSampleRate; UnityGain = false; } else { _iqProcessor = new RecordingIQProcessor(); _iqProcessor.Enabled = true; control.RegisterStreamHook((object)this._iqProcessor, ProcessorType.RawIQ); SampleRate = control.RFBandwidth; FrequencyOffset = control.IFOffset; } this._recordingMode = mode; this._wavSampleFormat = format; }
public void Initialize(ISharpControl control) { MainControl = control; control.PropertyChanged += ControlOnPropertyChanged; _controlPanel = new SignalRecorderPanel(); _controlPanel.PowerMonitorChanged += OnPowerMonitorChanged; _powerSpectrumPanel = new PowerSpectrumPanel(_controlPanel); OnPowerMonitorChanged(); control.RegisterFrontControl(_powerSpectrumPanel, PluginPosition.Bottom); control.RegisterStreamHook(this, ProcessorType.RawIQ); }
public IFProcessor(ISharpControl control) { _control = control; _control.PropertyChanged += NotifyPropertyChangedHandler; Enabled = true; #region FFT Timer _fftTimer = new System.Windows.Forms.Timer(); _fftTimer.Tick += fftTimer_Tick; _fftTimer.Interval = FFTTimerInterval; _fftBins = FFTBins; #endregion #region FFT Buffers / Window InitFFTBuffers(); BuildFFTWindow(); #endregion #region Display component _spectrumAnalyzer = new SpectrumAnalyzer(); _spectrumAnalyzer.Dock = DockStyle.Fill; _spectrumAnalyzer.Margin = new Padding(0, 0, 0, 0); _spectrumAnalyzer.DisplayRange = 130; _spectrumAnalyzer.EnableFilter = false; _spectrumAnalyzer.EnableHotTracking = false; _spectrumAnalyzer.EnableSideFilterResize = true; _spectrumAnalyzer.EnableFilterMove = false; _spectrumAnalyzer.BandType = BandType.Center; _spectrumAnalyzer.StepSize = 1000; _spectrumAnalyzer.UseSmoothing = true; _spectrumAnalyzer.Attack = 0.9f; _spectrumAnalyzer.Decay = 0.6f; _spectrumAnalyzer.StatusText = "IF Spectrum"; _spectrumAnalyzer.FrequencyChanged += spectrumAnalyzer_FrequencyChanged; _spectrumAnalyzer.CenterFrequencyChanged += spectrumAnalyzer_CenterFrequencyChanged; _spectrumAnalyzer.BandwidthChanged += spectrumAnalyzer_BandwidthChanged; _spectrumAnalyzer.VisibleChanged += spectrumAnalyzer_VisibleChanged; #endregion _control.RegisterStreamHook(this, ProcessorType.DecimatedAndFilteredIQ); _control.RegisterFrontControl(_spectrumAnalyzer, (PluginPosition)Utils.GetIntSetting("zoomPosition", (int)PluginPosition.Bottom)); }
public AFProcessor(ISharpControl control) { _control = control; _control.PropertyChanged += NotifyPropertyChangedHandler; Enabled = true; #region FFT Timer _fftTimer = new System.Windows.Forms.Timer(); _fftTimer.Tick += fftTimer_Tick; _fftTimer.Interval = FFTTimerInterval; _fftBins = FFTBins; #endregion #region FFT Buffers / Window InitFFTBuffers(); BuildFFTWindow(); #endregion #region Display component _spectrumAnalyzer = new SpectrumAnalyzer(); _spectrumAnalyzer.Dock = DockStyle.Fill; _spectrumAnalyzer.Margin = new Padding(0, 0, 0, 0); _spectrumAnalyzer.DisplayRange = 90; _spectrumAnalyzer.EnableFilter = false; _spectrumAnalyzer.EnableHotTracking = false; _spectrumAnalyzer.EnableFrequencyMarker = false; _spectrumAnalyzer.StepSize = 5000; _spectrumAnalyzer.UseSmoothing = true; _spectrumAnalyzer.SpectrumWidth = Utils.GetIntSetting("minOutputSampleRate", 32000) / 2; _spectrumAnalyzer.Frequency = _spectrumAnalyzer.SpectrumWidth / 2; _spectrumAnalyzer.CenterFrequency = _spectrumAnalyzer.SpectrumWidth / 2; _spectrumAnalyzer.Attack = 0.9f; _spectrumAnalyzer.Decay = 0.6f; _spectrumAnalyzer.StatusText = "Linear Interpolated Basis Function"; //EDIT: changed spectrum alanyzer window title to match wavelet fn _spectrumAnalyzer.FrequencyChanged += spectrumAnalyzer_FrequencyChanged; _spectrumAnalyzer.CenterFrequencyChanged += spectrumAnalyzer_CenterFrequencyChanged; _spectrumAnalyzer.VisibleChanged += spectrumAnalyzer_VisibleChanged; #endregion _control.RegisterStreamHook(this, ProcessorType.FilteredAudioOutput); _control.RegisterFrontControl(_spectrumAnalyzer, (PluginPosition)Utils.GetIntSetting("zoomPosition", (int)PluginPosition.Bottom)); }
public IllegalRadioDetectPanel(ISharpControl control) { InitializeComponent(); _control = control; _audioProcessor.Bypass = true; _control.RegisterStreamHook(_audioProcessor); _audioRecorder = new SimpleRecorder(_audioProcessor); _control.PropertyChanged += PropertyChanged; InitializeGUI(); ConfigureGUI(); }
public void Initialize(ISharpControl control) { _control = control; _gui = new PhaseInspectorPanel(); _drawing = new PhaseInspectorDrawing(); if (_gui.ShowPhase) { Enabled = true; } else { _drawing.Hide(); } _drawing.ScaleFactor = _gui.ScaleFactor; _gui.OnShowPhase += (show) => { if (show) { _drawing.Clear(); _drawing.Show(); } else { _drawing.Hide(); } Enabled = show; }; _gui.OnScaleChange += (scale) => { _drawing.ScaleFactor = scale; }; control.RegisterStreamHook(this, ProcessorType.RawIQ); control.RegisterFrontControl(_drawing, PluginPosition.Bottom); }
public IFProcessor(ISharpControl control) { _control = control; _control.PropertyChanged += NotifyPropertyChangedHandler; Enabled = true; #region FFT Timer _fftTimer = new System.Windows.Forms.Timer(); _fftTimer.Tick += fftTimer_Tick; _fftTimer.Interval = FFTTimerInterval; _fftBins = FFTBins; #endregion #region FFT Buffers / Window InitFFTBuffers(); BuildFFTWindow(); #endregion #region Display component _spectrumAnalyzer = new SpectrumAnalyzer(); _spectrumAnalyzer.Dock = DockStyle.Fill; _spectrumAnalyzer.Margin = new Padding(0, 0, 0, 0); _spectrumAnalyzer.DisplayRange = 130; _spectrumAnalyzer.EnableFilter = false; _spectrumAnalyzer.EnableHotTracking = false; _spectrumAnalyzer.EnableSideFilterResize = true; _spectrumAnalyzer.EnableFilterMove = false; _spectrumAnalyzer.BandType = BandType.Center; _spectrumAnalyzer.StepSize = 1000; _spectrumAnalyzer.UseSmoothing = true; _spectrumAnalyzer.Attack = 0.9f; _spectrumAnalyzer.Decay = 0.6f; _spectrumAnalyzer.StatusText = "Haar Basis Function"; //EDIT: changed spectrum alanyzer window title to match wavelet fn _spectrumAnalyzer.FrequencyChanged += spectrumAnalyzer_FrequencyChanged; _spectrumAnalyzer.CenterFrequencyChanged += spectrumAnalyzer_CenterFrequencyChanged; _spectrumAnalyzer.BandwidthChanged += spectrumAnalyzer_BandwidthChanged; _spectrumAnalyzer.VisibleChanged += spectrumAnalyzer_VisibleChanged; #endregion _control.RegisterStreamHook(this, ProcessorType.DecimatedAndFilteredIQ); _control.RegisterFrontControl(_spectrumAnalyzer, (PluginPosition) Utils.GetIntSetting("zoomPosition", (int) PluginPosition.Bottom)); }
public void Initialize(ISharpControl control) { this._controlInterface = control; this._rdsOutputPanel = new RDSOutputPanel(this._controlInterface); control.RegisterStreamHook(new RDSHandle(this._rdsOutputPanel), ProcessorType.RDSBitStream); }
public MPXProcessor(ISharpControl control) { _control = control; _control.PropertyChanged += NotifyPropertyChangedHandler; Enabled = true; #region FFT Timer _fftTimer = new System.Windows.Forms.Timer(); _fftTimer.Tick += fftTimer_Tick; _fftTimer.Interval = FFTTimerInterval; _fftBins = FFTBins; #endregion #region FFT Buffers / Window InitFFTBuffers(); BuildFFTWindow(); #endregion #region Display component _spectrumAnalyzer = new SpectrumAnalyzer(); _spectrumAnalyzer.Dock = DockStyle.Fill; _spectrumAnalyzer.Margin = new Padding(0, 0, 0, 0); _spectrumAnalyzer.DisplayRange = 90; _spectrumAnalyzer.EnableFilter = false; _spectrumAnalyzer.EnableHotTracking = false; _spectrumAnalyzer.EnableFrequencyMarker = false; _spectrumAnalyzer.StepSize = 19000; _spectrumAnalyzer.UseSmoothing = true; _spectrumAnalyzer.SpectrumWidth = 100000;//Utils.GetIntSetting("minOutputSampleRate", 32000) / 2; _spectrumAnalyzer.Frequency = _spectrumAnalyzer.SpectrumWidth / 2; _spectrumAnalyzer.CenterFrequency = _spectrumAnalyzer.SpectrumWidth / 2; _spectrumAnalyzer.Attack = 0.9f; _spectrumAnalyzer.Decay = 0.6f; _spectrumAnalyzer.StatusText = "FM MPX Spectrum"; _spectrumAnalyzer.FrequencyChanged += spectrumAnalyzer_FrequencyChanged; _spectrumAnalyzer.CenterFrequencyChanged += spectrumAnalyzer_CenterFrequencyChanged; _spectrumAnalyzer.VisibleChanged += spectrumAnalyzer_VisibleChanged; #endregion _control.RegisterStreamHook(this, ProcessorType.FMMPX); _control.RegisterFrontControl(_spectrumAnalyzer, (PluginPosition) Utils.GetIntSetting("zoomPosition", (int) PluginPosition.Bottom)); }