From c8c7aa1a08b8ab5fe9251032881cb502076a1488 Mon Sep 17 00:00:00 2001 From: eonur Date: Fri, 13 May 2022 13:20:01 +0000 Subject: [PATCH] USRP configuration printed out --- .../Networking/PhysicalLayer/UhdUtils.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/adhoccomputing/Networking/PhysicalLayer/UhdUtils.py b/adhoccomputing/Networking/PhysicalLayer/UhdUtils.py index 9ee784e..a0eee7d 100644 --- a/adhoccomputing/Networking/PhysicalLayer/UhdUtils.py +++ b/adhoccomputing/Networking/PhysicalLayer/UhdUtils.py @@ -66,8 +66,23 @@ def configureUsrp(self, devicename, type="b200", usrpconfig=defaultusrpconfig): self.usrp.set_tx_gain(self.hw_tx_gain, self.chan) #self.usrp.set_rx_agc(True, self.chan) + print("------- USRP(", self.devicename, ") CONFIG --------------------") + print("------> CHANNEL= ", self.chan) + print("------> RX-BANDWIDTH= ", self.usrp.get_rx_bandwidth(self.chan)) + print("------> TX-BANDWIDTH= ", self.usrp.get_tx_bandwidth(self.chan)) + print("------> RX-FREQ= ", self.usrp.get_rx_freq(self.chan)) + print("------> TX-FREQ= ", self.usrp.get_tx_freq(self.chan)) + print("------> RX-RATE= ", self.usrp.get_rx_rate(self.chan)) + print("------> TX-RATE= ", self.usrp.get_tx_rate(self.chan)) + print("------> RX-GAIN-NAMES= ", self.usrp.get_rx_gain_names(self.chan)) + print("------> TX-GAIN-NAMES= ", self.usrp.get_tx_gain_names(self.chan)) + print("------> RX-GAIN= ", self.usrp.get_rx_gain(self.chan)) + print("------> TX-GAIN= ", self.usrp.get_tx_gain(self.chan)) + print("------> USRP-INFO= ", self.usrp.get_pp_string()) + #print("------> POWER-RANGE= ", self.usrp.get_rx_power_range()) + stream_args = uhd.usrp.StreamArgs('fc32', 'sc16') stream_args.channels = [self.chan]