Hello community, I have a project running on an USRP N210 (a flowgraph consisting of several OOT modules written all in C++).
I want to run the same project on an *USRP B200-mini*. I assumed that I would only need to modify the *uhd_source* and *uhd_sink* configuration in the */apps/main.py* file (the rest of the project is bascially C++ code which should be independent on the platform). However, my usrp200-mini seems to work properly for the first command transmitted, and then shuts down (the transmitted signal drops to 0). Any help would be appreciated. Thank you very much for your time. *Configuration for USRP N210+SBX* # Configure usrp source def u_source(self): self.source = uhd.usrp_source( device_addr=self.usrp_address_source, stream_args=uhd.stream_args( cpu_format="fc32", channels=range(1), ), ) self.source.set_samp_rate(self.adc_rate) self.source.set_center_freq(self.freq, 0) self.source.set_gain(self.rx_gain, 0) self.source.set_antenna("RX2", 0) self.source.set_auto_dc_offset(False) # Uncomment this line for SBX daughterboard # Configure usrp sink def u_sink(self): self.sink = uhd.usrp_sink( device_addr=self.usrp_address_sink, stream_args=uhd.stream_args( cpu_format="fc32", channels=range(1), ) ) self.sink.set_samp_rate(self.dac_rate) self.sink.set_center_freq(self.freq, 0) self.sink.set_gain(self.tx_gain, 0) self.sink.set_antenna("TX/RX", 0) def __init__(self, myfreq): gr.top_block.__init__(self) self.dac_rate = 100e6/50 # DAC rate self.adc_rate = 100e6/26 # ADC rate self.freq = myfreq self.rx_gain = -5 self.tx_gain = 25 self.usrp_address_source = "addr=192.168.10.105" self.usrp_address_sink = "addr=192.168.10.105" *Configuration for USRPN210+SBX* self.source = uhd.usrp_source( device_addr=self.usrp_address_source, stream_args=uhd.stream_args( cpu_format="fc32", channels=range(1), ), ) self.source.set_samp_rate(self.adc_rate) self.source.set_center_freq(self.freq, 0) self.source.set_gain(self.rx_gain, 0) self.source.set_antenna("RX2", 0) self.source.set_auto_dc_offset(False) # Configure usrp sink def u_sink(self): self.sink = uhd.usrp_sink( device_addr=self.usrp_address_sink, stream_args=uhd.stream_args( cpu_format="fc32", channels=range(1), ) ) self.sink.set_samp_rate(self.dac_rate) self.sink.set_center_freq(self.freq, 0) self.sink.set_gain(self.tx_gain, 0) self.sink.set_antenna("TX/RX", 0) def __init__(self, myfreq): gr.top_block.__init__(self) self.dac_rate = 100e6/44 # DAC rate self.adc_rate = 100e6/44 # ADC rate self.rx_gain = 300 self.tx_gain = 300 self.usrp_address_source = "serial=31861F8" self.usrp_address_sink = "serial=31861F8" -- *Laura Arjona * *Paul G. Allen School of Computer Science & Engineering* 185 E Stevens Way NE University of Washington Seattle, WA 98195-2350
_______________________________________________ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnuradio