Beispiel #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 = {}
Beispiel #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 = {}
Beispiel #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 = {}
Beispiel #4
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 = {}
Beispiel #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)
Beispiel #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