Changes between Version 8 and Version 9 of Tutorials/k0SDR/Tutorial27
- Timestamp:
- Jul 20, 2022, 3:28:09 PM (2 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Tutorials/k0SDR/Tutorial27
v8 v9 59 59 TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 60 60 }}} 61 Resize the send and receive buffers to support UHD applications 62 {{{ 63 root@node1-1:~# sysctl -w net.core.wmem_max=24862979 64 net.core.wmem_max = 24862979 65 root@node1-1:~# sysctl -w net.core.rmem_max=24862979 66 net.core.rmem_max = 24862979 67 }}} 61 68 With this setup, each node should be able to access the X310 connected to it. Check USRP access with uhd_find_devices and uhd_usrp_probe commands. 62 69 {{{ … … 75 82 76 83 root@node1-1:~# uhd_usrp_probe 77 [INFO] [UHD] linux; GNU C++ version 5.4.0 20160609; Boost_105800; UHD_3.13.0.HEAD-0-g5b23677284 [INFO] [UHD] linux; GNU C++ version 7.5.0; Boost_106501; UHD_3.15.0.0-release 78 85 [INFO] [X300] X300 initialization sequence... 79 [INFO] [X300] Maximum frame size: 8000 bytes.80 [INFO] [X300] Radio 1x clock: 200 MHz81 [INFO] [0/DmaFIFO_0] Initializing block control (NOC ID: 0xF1F0D00000000000)82 [ERROR] [0/DmaFIFO_0] Major compat number mismatch for noc_shell: Expecting 2, got 5.83 Error: RuntimeError: FPGA component `noc_shell' is revision 5 and UHD supports revision 2. Please either upgrade UHD (recommended) or downgrade the FPGA image.84 85 }}}86 If uhd_usrp_probe reports firmware incompatibility, please run uhd_images_downloader to make sure compatible firmware images are available, and then load a new image on to the USRP.87 {{{88 root@node1-1:/usr/local/share/uhd# uhd_image_loader --args="type=x300,fpga=HG"89 [INFO] [UHD] linux; GNU C++ version 5.4.0 20160609; Boost_105800; UHD_3.13.0.HEAD-0-g5b23677290 Unit: USRP X310 (30F110A, 192.168.40.2)91 FPGA Image: /usr/local/share/uhd/images/usrp_x310_fpga_HG.bit92 -- Initializing FPGA loading...successful.93 -- Loading HG FPGA image: 100% (121/121 sectors)94 -- Finalizing image load...successful.95 Power-cycle the USRP X310 to use the new image.96 }}}97 Power cycle the USRP - exit the node and use omf commands to power-cycle the node, which in turn power-cycles the USRP.98 Turn the nodes off.99 {{{100 prasanthi@console.sb2:~$ omf tell -a offh -t node1-1,node1-2101 }}}102 Once the off command is complete, wait for a minute and turn them back on.103 {{{104 prasanthi@console.sb2:~$ omf tell -a on -t node1-1,node1-2105 }}}106 Log on to the nodes, setup networking as described above and test USRP access107 {{{108 root@node1-1:~# ifconfig eth2 192.168.40.1 mtu 9000109 root@node1-1:~# uhd_usrp_probe110 86 . 111 . 112 . 113 | | / 114 | | | RFNoC blocks on this device: 87 .| | | RFNoC blocks on this device: 115 88 | | | 116 89 | | | * DmaFIFO_0 … … 123 96 124 97 }}} 125 98 If uhd_usrp_probe reports firmware incompatibility, please run uhd_images_downloader to make sure compatible firmware images are available, and then load a new image onto the USRP. 99 Power cycle the USRP (by power cycling the node using the omf 'offh' and 'on' commands) for the new image to take effect. 126 100 127 101 === Run the experiment === … … 129 103 * Send a waveform from the TX node, node1-1 130 104 {{{ 131 root@node1-1:~ /uhd/host/build/examples# ./tx_waveforms --freq 2e9 --rate 10e6 --wave-type SINE --wave-freq 1e6 --gain 0105 root@node1-1:~# /usr/lib/uhd/examples/tx_waveforms --freq 2e9 --rate 10e6 --wave-type SINE --wave-freq 1e6 --gain 0 132 106 }}} 133 107 * Run a spectrum analyzer application on the RX node, node1-2, to view the waveform 134 108 {{{ 135 root@node1-2:~ /uhd/host/build/examples# ./rx_ascii_art_dft --freq 2e9 --rate 10e6 --gain 0 --ref-lvl -40109 root@node1-2:~# /usr/lib/uhd/examples/rx_ascii_art_dft --freq 2e9 --rate 10e6 --gain 0 --ref-lvl -40 136 110 }}} 137 111