add eb200 support

This commit is contained in:
Jakob Ketterl
2020-11-30 00:34:44 +01:00
parent 865ffb28af
commit 0614637342
4 changed files with 27 additions and 2 deletions

View File

@ -70,6 +70,7 @@ class FeatureDetector(object):
"fcdpp": ["soapy_connector", "soapy_fcdpp"],
"sddc": ["sddc_connector"],
"hpsdr": ["hpsdr_connector"],
"eb200": ["eb200_connector"],
# optional features and their requirements
"digital_voice_digiham": ["digiham", "sox"],
"digital_voice_dsd": ["dsd", "sox", "digiham"],
@ -256,7 +257,7 @@ class FeatureDetector(object):
)
def _check_connector(self, command):
required_version = LooseVersion("0.3")
required_version = LooseVersion("0.4")
owrx_connector_version_regex = re.compile("^owrx-connector version (.*)$")
@ -501,7 +502,7 @@ class FeatureDetector(object):
You can find more information [here](https://github.com/jketterl/sddc_connector).
"""
return self.command_is_runnable("sddc_connector")
return self._check_connector("sddc_connector")
def has_hpsdr_connector(self):
"""
@ -509,3 +510,11 @@ class FeatureDetector(object):
(https://github.com/jancona/hpsdrconnector).
"""
return self.command_is_runnable("hpsdrconnector -h")
def has_eb200_connector(self):
"""
To use radios supporting the EB200 radios, you need to install the eb200_connector.
You can find more information [here](https://github.com/jketterl/eb200_connector).
"""
return self._check_connector("eb200_connector")

14
owrx/source/eb200.py Normal file
View File

@ -0,0 +1,14 @@
from owrx.source.connector import ConnectorSource
from owrx.command import Argument
class Eb200Source(ConnectorSource):
def getCommandMapper(self):
return (
super()
.getCommandMapper()
.setBase("eb200_connector")
.setMappings({
"remote": Argument(),
})
)