Beispiel #1
0
    def listSampleRates(self, chan):
        rates = []
        for response in self.stub.listSampleRates(
                iotSDR_pb2.Rf_chan(chan=chan)):
            rates.append(response.rate)

        print("iotSDR Supported Rates:", rates)
        return rates
Beispiel #2
0
    def listFrequencies(self, chan):
        freqList = []
        for response in self.stub.listFrequencies(
                iotSDR_pb2.Rf_chan(chan=chan)):
            freqList.append(response)

        print("iotSDR Frequency list: ", freqList)
        return freqList
Beispiel #3
0
 def getGainRange(self, chan):
     response = self.stub.getGainRange(iotSDR_pb2.Rf_chan(chan=0))
     print("iotSDR Transmitter Gain Range:", response.min, response.max)
     return (response.min, response.max)
Beispiel #4
0
 def getGain(self, chan):
     response = self.stub.getGain(iotSDR_pb2.Rf_chan(chan=0))
     print("iotSDR Transmitter Gain get", response.status)
     return response.status
Beispiel #5
0
 def getSampleRate(self, chan):
     response = self.stub.getSampleRate(iotSDR_pb2.Rf_chan(chan=chan))
     print("iotSDR Sampling rate get response: ", response.status)
     return response.status
Beispiel #6
0
 def getFrequency(self, chan):
     response = self.stub.getFrequency(iotSDR_pb2.Rf_chan(chan=chan))
     print("iotSDR Tuned at Frequency: ", response.freq)