create device descriptions for all

This commit is contained in:
Jakob Ketterl 2021-02-20 18:09:24 +01:00
parent 0e64f15e65
commit 0ab6729fcc
18 changed files with 92 additions and 21 deletions

View File

@ -1,5 +1,4 @@
from owrx.command import Flag from owrx.source.soapy import SoapyConnectorSource, SoapyConnectorDeviceDescription
from .soapy import SoapyConnectorSource
class AirspySource(SoapyConnectorSource): class AirspySource(SoapyConnectorSource):
@ -15,3 +14,7 @@ class AirspySource(SoapyConnectorSource):
def getDriver(self): def getDriver(self):
return "airspy" return "airspy"
class AirspyDeviceDescription(SoapyConnectorDeviceDescription):
pass

View File

@ -1,6 +1,10 @@
from .soapy import SoapyConnectorSource from owrx.source.soapy import SoapyConnectorSource, SoapyConnectorDeviceDescription
class AirspyhfSource(SoapyConnectorSource): class AirspyhfSource(SoapyConnectorSource):
def getDriver(self): def getDriver(self):
return "airspyhf" return "airspyhf"
class AirspyhfDeviceDescription(SoapyConnectorDeviceDescription):
pass

View File

@ -1,5 +1,5 @@
from abc import ABCMeta from abc import ABCMeta
from . import SdrSource from owrx.source import SdrSource, SdrDeviceDescription
import logging import logging
@ -51,3 +51,7 @@ class DirectSource(SdrSource, metaclass=ABCMeta):
# override this in subclasses, if necessary # override this in subclasses, if necessary
def sleepOnRestart(self): def sleepOnRestart(self):
pass pass
class DirectSourceDeviceDescription(SdrDeviceDescription):
pass

View File

@ -1,6 +1,10 @@
from owrx.source.soapy import SoapyConnectorSource from owrx.source.soapy import SoapyConnectorSource, SoapyConnectorDeviceDescription
class FcdppSource(SoapyConnectorSource): class FcdppSource(SoapyConnectorSource):
def getDriver(self): def getDriver(self):
return "fcdpp" return "fcdpp"
class FcdppDeviceDescription(SoapyConnectorDeviceDescription):
pass

View File

@ -1,5 +1,5 @@
from owrx.command import Option from owrx.command import Option
from .direct import DirectSource from owrx.source.direct import DirectSource, DirectSourceDeviceDescription
from subprocess import Popen from subprocess import Popen
import logging import logging
@ -37,3 +37,7 @@ class FifiSdrSource(DirectSource):
def onPropertyChange(self, changes): def onPropertyChange(self, changes):
if "center_freq" in changes: if "center_freq" in changes:
self.sendRockProgFrequency(changes["center_freq"]) self.sendRockProgFrequency(changes["center_freq"])
class FifiSdrDeviceDescription(DirectSourceDeviceDescription):
pass

View File

@ -1,4 +1,4 @@
from .soapy import SoapyConnectorSource from .soapy import SoapyConnectorSource, SoapyConnectorDeviceDescription
class HackrfSource(SoapyConnectorSource): class HackrfSource(SoapyConnectorSource):
@ -9,3 +9,7 @@ class HackrfSource(SoapyConnectorSource):
def getDriver(self): def getDriver(self):
return "hackrf" return "hackrf"
class HackrfDeviceDescription(SoapyConnectorDeviceDescription):
pass

View File

@ -1,5 +1,5 @@
from .connector import ConnectorSource from owrx.source.connector import ConnectorSource, ConnectorDeviceDescription
from owrx.command import Flag, Option from owrx.command import Option
# In order to use an HPSDR radio, you must install hpsdrconnector from https://github.com/jancona/hpsdrconnector # In order to use an HPSDR radio, you must install hpsdrconnector from https://github.com/jancona/hpsdrconnector
# These are the command line options available: # These are the command line options available:
@ -33,3 +33,7 @@ class HpsdrSource(ConnectorSource):
} }
) )
) )
class HpsdrDeviceDescription(ConnectorDeviceDescription):
pass

View File

@ -1,6 +1,10 @@
from .soapy import SoapyConnectorSource from owrx.source.soapy import SoapyConnectorSource, SoapyConnectorDeviceDescription
class LimeSdrSource(SoapyConnectorSource): class LimeSdrSource(SoapyConnectorSource):
def getDriver(self): def getDriver(self):
return "lime" return "lime"
class LimeSdrDeviceDescription(SoapyConnectorDeviceDescription):
pass

View File

@ -1,5 +1,5 @@
from .direct import DirectSource from owrx.source.direct import DirectSource, DirectSourceDeviceDescription
from owrx.command import Flag, Option from owrx.command import Option
# #
@ -35,3 +35,7 @@ class PerseussdrSource(DirectSource):
} }
) )
) )
class PerseussdrDeviceDescription(DirectSourceDeviceDescription):
pass

View File

@ -1,6 +1,10 @@
from .soapy import SoapyConnectorSource from owrx.source.soapy import SoapyConnectorSource, SoapyConnectorDeviceDescription
class PlutoSdrSource(SoapyConnectorSource): class PlutoSdrSource(SoapyConnectorSource):
def getDriver(self): def getDriver(self):
return "plutosdr" return "plutosdr"
class PlutoSdrDeviceDescription(SoapyConnectorDeviceDescription):
pass

View File

@ -1,6 +1,10 @@
from .soapy import SoapyConnectorSource from owrx.source.soapy import SoapyConnectorSource, SoapyConnectorDeviceDescription
class RadioberrySource(SoapyConnectorSource): class RadioberrySource(SoapyConnectorSource):
def getDriver(self): def getDriver(self):
return "radioberry" return "radioberry"
class RadioberryDeviceDescription(SoapyConnectorDeviceDescription):
pass

View File

@ -1,6 +1,10 @@
from .soapy import SoapyConnectorSource from owrx.source.soapy import SoapyConnectorSource, SoapyConnectorDeviceDescription
class RedPitayaSource(SoapyConnectorSource): class RedPitayaSource(SoapyConnectorSource):
def getDriver(self): def getDriver(self):
return "redpitaya" return "redpitaya"
class RedPitayaDeviceDescription(SoapyConnectorDeviceDescription):
pass

View File

@ -1,4 +1,4 @@
from .soapy import SoapyConnectorSource from owrx.source.soapy import SoapyConnectorSource, SoapyConnectorDeviceDescription
class RtlSdrSoapySource(SoapyConnectorSource): class RtlSdrSoapySource(SoapyConnectorSource):
@ -9,3 +9,7 @@ class RtlSdrSoapySource(SoapyConnectorSource):
def getDriver(self): def getDriver(self):
return "rtlsdr" return "rtlsdr"
class RtlSdrSoapyDeviceDescription(SoapyConnectorDeviceDescription):
pass

View File

@ -1,4 +1,4 @@
from .connector import ConnectorSource from owrx.source.connector import ConnectorSource, ConnectorDeviceDescription
from owrx.command import Flag, Option, Argument from owrx.command import Flag, Option, Argument
@ -16,3 +16,7 @@ class RtlTcpSource(ConnectorSource):
} }
) )
) )
class RtlTcpDeviceDescription(ConnectorDeviceDescription):
pass

View File

@ -1,4 +1,4 @@
from owrx.source.connector import ConnectorSource from owrx.source.connector import ConnectorSource, ConnectorDeviceDescription
from owrx.command import Argument, Flag, Option from owrx.command import Argument, Flag, Option
@ -16,3 +16,7 @@ class RundsSource(ConnectorSource):
} }
) )
) )
class RundsDeviceDescription(ConnectorDeviceDescription):
pass

View File

@ -1,6 +1,10 @@
from owrx.source.connector import ConnectorSource from owrx.source.connector import ConnectorSource, ConnectorDeviceDescription
class SddcSource(ConnectorSource): class SddcSource(ConnectorSource):
def getCommandMapper(self): def getCommandMapper(self):
return super().getCommandMapper().setBase("sddc_connector") return super().getCommandMapper().setBase("sddc_connector")
class SddcDeviceDescription(ConnectorDeviceDescription):
pass

View File

@ -1,4 +1,4 @@
from .soapy import SoapyConnectorSource from owrx.source.soapy import SoapyConnectorSource, SoapyConnectorDeviceDescription
class SoapyRemoteSource(SoapyConnectorSource): class SoapyRemoteSource(SoapyConnectorSource):
@ -15,3 +15,7 @@ class SoapyRemoteSource(SoapyConnectorSource):
if "remote_driver" in values and values["remote_driver"] is not None: if "remote_driver" in values and values["remote_driver"] is not None:
params += [{"remote:driver": values["remote_driver"]}] params += [{"remote:driver": values["remote_driver"]}]
return params return params
class SoapyRemoteDeviceDescription(SoapyConnectorDeviceDescription):
pass

View File

@ -1,6 +1,10 @@
from .soapy import SoapyConnectorSource from owrx.source.soapy import SoapyConnectorSource, SoapyConnectorDeviceDescription
class UhdSource(SoapyConnectorSource): class UhdSource(SoapyConnectorSource):
def getDriver(self): def getDriver(self):
return "uhd" return "uhd"
class UhdDeviceDescription(SoapyConnectorDeviceDescription):
pass