add a new source for rtl_tcp and rtl_tcp_connector

This commit is contained in:
Jakob Ketterl 2020-08-16 21:49:52 +02:00
parent bc000451cc
commit c9dd33ba57
4 changed files with 25 additions and 1 deletions

View File

@ -6,6 +6,7 @@
- Added new HD audio streaming mode along with a new WFM demodulator
- New devices supported:
- FunCube Dongle Pro+ (`"type": "fcdpp"`)
- Support for connections to rtl_tcp
**0.19.1**
- Added ability to authenticate receivers with listing sites using "receiver id" tokens

1
debian/changelog vendored
View File

@ -7,6 +7,7 @@ openwebrx (0.20.0) UNRELEASED; urgency=low
* Added new HD audio streaming mode along with a new WFM demodulator
* New devices supported:
- FunCube Dongle Pro+ (`"type": "fcdpp"`)
- Support for connections to rtl_tcp
-- Jakob Ketterl <jakob.ketterl@gmx.de> Sat, 13 Jun 2020 17:22:00 +0000

View File

@ -23,6 +23,7 @@ class FeatureDetector(object):
# different types of sdrs and their requirements
"rtl_sdr": ["rtl_connector"],
"rtl_sdr_soapy": ["soapy_connector", "soapy_rtl_sdr"],
"rtl_tcp": ["rtl_tcp_connector"],
"sdrplay": ["soapy_connector", "soapy_sdrplay"],
"hackrf": ["soapy_connector", "soapy_hackrf"],
"perseussdr": ["perseustest"],
@ -194,7 +195,7 @@ class FeatureDetector(object):
)
def _check_connector(self, command):
required_version = LooseVersion("0.2")
required_version = LooseVersion("0.3")
owrx_connector_version_regex = re.compile("^owrx-connector version (.*)$")
@ -218,6 +219,15 @@ class FeatureDetector(object):
"""
return self._check_connector("rtl_connector")
def has_rtl_tcp_connector(self):
"""
The owrx_connector package offers direct interfacing between your hardware and openwebrx. It allows quicker
frequency switching, uses less CPU and can even provide more stability in some cases.
You can get it [here](https://github.com/jketterl/owrx_connector).
"""
return self._check_connector("rtl_tcp_connector")
def has_soapy_connector(self):
"""
The owrx_connector package offers direct interfacing between your hardware and openwebrx. It allows quicker

12
owrx/source/rtl_tcp.py Normal file
View File

@ -0,0 +1,12 @@
from .connector import ConnectorSource
from owrx.command import Flag, Option
class RtlTcpSource(ConnectorSource):
def getCommandMapper(self):
return (
super()
.getCommandMapper()
.setBase("rtl_tcp_connector")
.setMappings({"bias_tee": Flag("-b"), "direct_sampling": Option("-e")})
)