Exemplo n.º 1
0
    def connect(self, host):
        """
        connect to a wsa
        :param host: the hostname or IP to connect to
        """
        yield self.connector.connect(host)
        self.device_id = (yield self.scpiget(":*idn?"))
        self.properties = wsa_properties(self.device_id)

        self.fw_version = self.device_id.split(',')[-1]
        self.device_state = {}
Exemplo n.º 2
0
    def connect(self, host):
        """
        connect to a wsa
        :param host: the hostname or IP to connect to
        """
        yield self.connector.connect(host)
        self.device_id = (yield self.scpiget(":*idn?"))
        self.properties = wsa_properties(self.device_id)

        self.fw_version = self.device_id.split(',')[-1]
        self.device_state = {}
Exemplo n.º 3
0
    def connect(self, host, timeout=8):
        """
        Connect to an RTSA (aka WSA).

        :param str host: the hostname or IP to connect to

        Usage::

            dut.connect('123.456.789.1')
        """
        yield self.connector.connect(host, timeout=timeout)
        self.device_id = (yield self.scpiget(":*idn?"))
        self.properties = wsa_properties(self.device_id)

        self.fw_version = self.device_id.split(',')[-1]
        self.device_state = {}
Exemplo n.º 4
0
Arquivo: thinkrf.py Projeto: pyrf/pyrf
    def connect(self, host, timeout=8):
        """
        Connect to an RTSA (aka WSA).

        :param str host: the hostname or IP to connect to

        Usage::

            dut.connect('123.456.789.1')
        """
        yield self.connector.connect(host, timeout=timeout)
        self.device_id = (yield self.scpiget(":*idn?"))
        self.properties = wsa_properties(self.device_id)

        self.fw_version = self.device_id.split(',')[-1]
        self.device_state = {}
Exemplo n.º 5
0
 def __init__(self, device_class, device_identifier):
     # XXX this is all we support for now
     assert device_class == "thinkrf.WSA"
     self.properties = wsa_properties(device_identifier)
Exemplo n.º 6
0
 def __init__(self, device_class, device_identifier):
     # XXX this is all we support for now
     assert device_class == 'thinkrf.WSA'
     self.properties = wsa_properties(device_identifier)
     self.device_id = device_identifier