[USRP-users] RFNOC x300 Rx/Tx loopback

Daniel Rauschen Daniel.Rauschen at fkie.fraunhofer.de
Wed Oct 11 02:18:08 EDT 2017


Update...

I figured it out. The conversation "Re: [USRP-users] GRC + RFNoC + Radio 
Loopback" was kind of helpful.




On 04.10.2017 11:29, Daniel Rauschen via USRP-users wrote:
>
> Hi,
>
> I am trying to do a Rx / Tx loopback test and I am stuck for days with it.
>
> For the sake of simplicity I altered the gain example [1] with the 
> approach 3 from [2] (find my noc_block_gain.v and the test bench 
> attached).
>
> I connect the blocks like this (UHD):
>
> *rx_graph->connect(m_radio_ctrl->get_block_id(),0, 
> split_ctrl->get_block_id(),0,1024);
> rx_graph->connect(split_ctrl->get_block_id(),0, 
> fifo_ctrl->get_block_id(),0,***1024*);
> rx_graph->connect(split_ctrl->get_block_id(),1, 
> gain_ctrl->get_block_id(),0,***1024*);
> rx_graph->connect(gain_ctrl->get_block_id(),0, 
> dma_fifo_ctrl->get_block_id(),0,***1024*);
> rx_graph->connect(dma_fifo_ctrl->get_block_id(),0,m_radio_ctrl->get_block_id(),1,***1024*);*
>
> Which is some how wrong, because I get following error when running 
> the programm:*
> *
>
> *[32;1m[INFO] [UHDlinux; GNU C++ version 5.4.0 20160609; Boost_105800; 
> UHD_4.0.0.rfnoc-devel-369-g1908672f] **
> **[INFO] [X300] X300 initialization sequence...**
> **[INFO] [X300] Determining maximum frame size... **
> **[32;1m[INFO] [X300] Maximum frame size: 8000 bytes.**
> **[32;1m[INFO] [X300] Setup basic communication...**
> **[32;1m[INFO] [X300] Loading values from EEPROM...**
> **[32;1m[INFO] [X300] Setup RF frontend clocking...**
> **[32;1m[INFO] [X300] Radio 1x clock:120**
> **[32;1m[INFO] [X300] Detecting internal GPSDO.... **
> **[32;1m[INFO] [GPS] No GPSDO found**
> **[32;1m[INFO] [RFNOC] [DMA FIFO] Running BIST for FIFO 0... **
> **[32;1m[INFO] [RFNOC] pass (Throughput: 1302.6MB/s)**
> **[32;1m[INFO] [RFNOC] [DMA FIFO] Running BIST for FIFO 1... **
> **[32;1m[INFO] [RFNOC] pass (Throughput: 1296.1MB/s)**
> **[32;1m[INFO] [RFNOC RADIO] Register loopback test passed**
> **[32;1m[INFO] [RFNOC RADIO] Register loopback test passed**
> **[32;1m[INFO] [RFNOC RADIO] Register loopback test passed**
> **[32;1m[INFO] [RFNOC RADIO] Register loopback test passed**
> **[33;1m[WARNING] [RFNOC] [0/SplitStream_0] defines 2 input 
> buffer sizes, but 1 input ports**
> **[32;1m[INFO] [CORES] Performing timer loopback test... **
> **[32;1m[INFO] [CORES] Timer loopback test passed**
> **[32;1m[INFO] [CORES] Performing timer loopback test... **
> **[32;1m[INFO] [CORES] Timer loopback test passed**
> **
> **____________________________________**
> **
> **Radio0 Params:**
> **Device Address:**
> **    spp: 1024**
> **
> **____________________________________**
> **
> **SplitStream Params:**
> **Empty Device Address**
> **____________________________________**
> **
> **FIFO Params:**
> **Empty Device Address**
> **____________________________________**
> **
> **DmaFIFO Params:**
> **Device Address:**
> **    base_addr: 0**
> **    depth: 65536**
> **
> **____________________________________**
> **
> **gain Params:**
> **Device Address:**
> **    gain: 10**
> **    delaytime: 3600**
> **
> **____________________________________**
> **Setting RX Freq: 2450.000000 MHz...**
> **Actual RX Freq: 2450.000000 MHz...**
> **
> **Actual TX Freq: 2450.000000 MHz...**
> **
> **Actual RX Gain: 0.000000 dB...**
> **
> **Actual TX Gain: 0.000000 dB...**
> **
> **Connecting blocks...**
> **terminate called after throwing an instance of 'uhd::runtime_error'**
> **  what():  RuntimeError: Input FIFO for block 0/Radio_0 is too small 
> (0 kiB) for packets of size 1 kiB**
> **coming from block 0/DmaFIFO_0.**
> *
>
> Is there anyone who did a Rx/Tx loop with a similar flow graph as 
> shown in grc_block.png?
>
> What am I doing wrong?
>
> Best regards,
>
> Daniel
>
>
> [1] https://kb.ettus.com/Getting_Started_with_RFNoC_Development
>
> [2] https://corvid.io/2017/04/22/stupid-rfnoc-tricks-loopback/
>
> -- 
>
> M.Sc. Daniel Rauschen
>
> Communication Systems
>
>   
>
> Fraunhofer Institute for Communication, Information Processing and Ergonomics FKIE
>
> Fraunhoferstr. 20 | 53343 Wachtberg | Germany
>
> Phone +49 (0)228 9435-404
>
> mailto:Daniel.Rauschen at fkie.fraunhofer.de
>
> http://www.fkie.fraunhofer.de
>
>
> _______________________________________________
> USRP-users mailing list
> USRP-users at lists.ettus.com
> http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ettus.com/pipermail/usrp-users_lists.ettus.com/attachments/20171011/938f4baf/attachment-0002.html>


More information about the USRP-users mailing list