Hello all, RxTx loopback is a feature that was missing(/hard to do) in RFNoC before at least 4.0.
Currently it works and there are even nice examples showing how set it up, so one doesn’t have to figure this out. There are examples both in pure UHD (https://github.com/EttusResearch/uhd/blob/master/host/examples/rfnoc_radio_loopback.cpp) and GNU Radio (https://github.com/gnuradio/gnuradio/blob/main/gr-uhd/examples/grc/rfnoc_radio_loopback.grc). I’m trying to go one step forward and to add an RFNoC block to the loop-back on USRP X410. For simplicity I’m starting from the rfnoc-example (https://github.com/EttusResearch/uhd/tree/master/host/examples/rfnoc-example). The graph I want to get working looks like this: Radio#0==>DDC#0-->Gain#0-->DUC#1==>Radio#1. I’ve build the rfnoc-example and I can confirm that it works with use of the example (https://github.com/EttusResearch/uhd/blob/master/host/examples/rfnoc-example/examples/rx_gain_estimate_power.py). Then I tried to change the rfnoc_radio_loopback.cpp to connect Gain block between DDC and DUC. In order to achieve that I changed this part (https://github.com/EttusResearch/uhd/blob/master/host/examples/rfnoc_radio_loopback.cpp#L123): uhd::rfnoc::connect_through_blocks(\ graph, rx_radio_ctrl_id, rx_chan, tx_radio_ctrl_id, tx_chan, skip_pp); to:\ uhd::rfnoc::block_id_t gain_block_id("0/Gain#0"); rfnoc::example::gain_block_control::sptr gain_control = \ graph->get_block<rfnoc::example::gain_block_control>(gain_block_id); uhd::rfnoc::connect_through_blocks(\ graph, rx_radio_ctrl_id, rx_chan, gain_block_id, 0, skip_pp); uhd::rfnoc::connect_through_blocks(\ graph, gain_block_id, 0, tx_radio_ctrl_id, tx_chan, skip_pp);\ \ and later I added a call to function that sets the digital gain: gain_control->set_gain_value(42);\ \ Somehow I can’t get it working this way. The version without my change passes the signal. The version with it included doesn’t. What might be wrong with this approach? Best Regards,\ Piotr Krysik
_______________________________________________ USRP-users mailing list -- usrp-users@lists.ettus.com To unsubscribe send an email to usrp-users-le...@lists.ettus.com