From b7538dcdd022232aa1baca1c1b42f0f52983deb6 Mon Sep 17 00:00:00 2001 From: Jakob Ketterl Date: Fri, 10 Jan 2020 20:43:28 +0100 Subject: [PATCH] add alternate soapy driver for rtl-sdr sticks --- owrx/feature.py | 10 ++++++++++ owrx/source/rtl_sdr_soapy.py | 6 ++++++ 2 files changed, 16 insertions(+) create mode 100644 owrx/source/rtl_sdr_soapy.py diff --git a/owrx/feature.py b/owrx/feature.py index a85fa13..ec41e6e 100644 --- a/owrx/feature.py +++ b/owrx/feature.py @@ -22,6 +22,7 @@ class FeatureDetector(object): "core": ["csdr", "nmux", "nc"], # different types of sdrs and their requirements "rtl_sdr": ["rtl_connector"], + "rtl_sdr_soapy": ["soapy_connector", "soapy_rtl_sdr"], "sdrplay": ["soapy_connector", "soapy_sdrplay"], "hackrf": ["hackrf_transfer"], "airspy": ["soapy_connector", "soapy_airspy"], @@ -239,6 +240,15 @@ class FeatureDetector(object): return False def has_soapy_sdrplay(self): + """ + The SoapySDR module for rtl-sdr devices can be used as an alternative to the rtl_connector. It provides + additional support for the direct sampling mod. + + You can get it [here](https://github.com/pothosware/SoapyRTLSDR/wiki). + """ + return self._has_soapy_driver("rtlsdr") + + def has_soapy_rtl_sdr(self): """ The SoapySDR module for sdrplay devices is required for interfacing with SDRPlay devices (RSP1*, RSP2*, RSPDuo) diff --git a/owrx/source/rtl_sdr_soapy.py b/owrx/source/rtl_sdr_soapy.py new file mode 100644 index 0000000..2606683 --- /dev/null +++ b/owrx/source/rtl_sdr_soapy.py @@ -0,0 +1,6 @@ +from .soapy import SoapyConnectorSource + + +class RtlSdrSoapySource(SoapyConnectorSource): + def getDriver(self): + return "rtlsdr"