Posts

SDR# tetra demodulator utils plug-in

Image
1.1.2020 SDR# tetra demodulator utils plug-in plugins.xml magic line: <add key="TD utils" value="SDRSharp.TDutilsPlugin.TDutilsPlugin,SDRSharp.TDutilsPlugin"/> Copy SDRSharp.TDutilsPlugin.dll (SDRSharp.TDutilsPlugin\bin\Release) to SDR# dir. https://github.com/OH1GIU-P/TDUtilsPlugin Capture (grid copy unchecked) saves Tetra demodulator plug-in network info window textbox contents (calls info, ms registrations) to file. Grid copy checked option saves grid content (tabs: current cell, neighbour cell) to file - select tab first and click capture button. using System; using System.Text; using System.Windows.Forms; using System.Runtime.InteropServices; using System.IO; using System.Drawing; using System.Drawing.Imaging; using SDRSharp.Common; namespace SDRSharp.TDutilsPlugin {     public partial class TDutilsPluginPanel : UserControl     {         public delegate bool WindowEnumDelegate(IntPtr hwnd, int lParam);  ...

SDRSharp (Telerik UI versions) FFT peek hold plug-in

Image
  27.4.2020 SDRSharp (Telerik UI versions) FFT peek hold plug-in C#, .NET 4.6, Visual Studio 2019 community edition https://github.com/OH1GIU-P/SDRSharpFFTpTelerik SDR# (r1717 and later versions, which use Telerik UI controls) FFTpPlugin plug-in screen scrapes SDR# FFT and shows it in a window and keeps peaks visible. Start button shows peak hold FFT window and stop button hides it. Tested with FFT settings: This version of the FFT peek hold plug-in is compiled with SDR# r1732 SDRSharp.Common, SDRSharp.Radio and SDRSharp.Panview dll's and button colors are tuned for better visibility in Telerik UI. SDRSharp.FFTpPluginTelerik\SDRSharp.FFTpPlugin\bin\Release\SDRSharp.FFTpPluginE.dll SDR# plugins.xml magic line: <add key="FFTpPluginE" value="SDRSharp.FFTpPlugin.FFTpPlugin,SDRSharp.FFTpPluginE"/> Use free tuning and set frequency tuning to the either side of the FFT for best results (as shown in images below)  

Retekess TD157 wireless paging system

Image
  29.12.2020 Retekess TD157 wireless paging system 433 MHz, AM (ASK/OOK) https://www.retekess.com/

Convert RF Analyzer IQ files to SDR# wav

4.8.2020 Convert RF Analyzer IQ files to SDR# wav RF Analyzer Android app can record IQ (HackRF) files. SDR# cannot load IQ files stored with RF Analyzer. I found this Python script but it does not work in Python 3 (3.6.6) https://github.com/demantz/RFAnalyzer/blob/master/tools/prepWAV.py Struct.error: argument for 's' must be a bytes object I modified def writeWavHeader a bit and now SDR# can load those IQ files def writeWavHeader(file, datasize, samplerate):     file.write(struct.pack('4s', bytes("RIFF", 'utf-8')))     file.write(struct.pack('I', datasize+36))     file.write(struct.pack('4s', bytes("WAVE", 'utf-8')))     file.write(struct.pack('4s', bytes("fmt ", 'utf-8')))     file.write(struct.pack('I', 16))     file.write(struct.pack('H', 1))     file.write(struct.pack('H', 2))     file.write(struct.pack('I', samplerate))     file.write(struct.pack(...

Inspecting SpectrumSpy software

Image
13.5.2020 Inspecting SpectrumSpy software SDR# SpectrumSpy dotPeek & Visual Studio 2019 Community Edition Files required to reverse engineer SpectrumSpy with dotPeek Export to VS project     Some code error fixes required so that one can build project MainForm.cs     private class RenderingContext     {       private UnsafeBuffer _partialIQBuffer = UnsafeBuffer.Create(32768, sizeof (Complex)); => private unsafe UnsafeBuffer _partialIQBuffer = UnsafeBuffer.Create(32768, sizeof (Complex)); private unsafe void ProcessFFT ...         if (renderWaterfallLine)           this.BeginInvoke((Delegate) (() => this.waterfall.Render(this._power, 8192))); =>         if (renderWaterfallLine)           this.BeginInvoke((Delegate) (Action) (() => this.waterfall.Rende...

Inspecting SDRSharp.PanView.dll - peak hold mod

Image
 17.5.2020 Inspecting SDRSharp.PanView.dll - peak hold mod Spectrum analyzer peak hold modification Visual Studio Community Edition 2019 dotPeek Export SDRSharp.PanView.dll to VS project with dotPeek. Copy also SDRSharp.Radio.dll into same folder because PanView.dll uses it. Modify code in SpectrumAnalyzer.cs   public class SpectrumAnalyzer : UserControl   {         // ADD     private int _performCounter = 0;     ... public SpectrumAnalyzer() {   ...   this._graphics = Graphics.FromImage((Image) this._buffer);   // ADD  _buffer.MakeTransparent(); ... Add method (clear FFT from app using dll) public void resetKeepFFT() {     _performCounter = 0; }   private void DrawLayers() {        if (this._buffer.Width <= 30 || this._buffer.Height <= 30)         return;       // ADD ...

C# - convert Android RF Analyzer IQ file to SDR# wav format

Image
15.8.2020 C# - convert Android RF Analyzer IQ file to SDR# wav format Uses default RF Analyzer IQ file recording format (1000000 samples per second, 2 channels, 8 bits per sample) VS 2019 Community Edition .NET Framework 4.6.1 CnvIQtoWav.exe CnvIQtoWav.exe.config https://github.com/OH1GIU-P/CnvIQtoWav   Code can be optimized by using byte array operations                     BinaryReader br = new BinaryReader(File.Open(infile, FileMode.Open));                     bw.Write(br.ReadBytes((int)fileLen));                     /*for (uint i = 0; i < fileLen; i++)                     {     ...