Changes between Version 8 and Version 9 of Tutorials/k0SDR/Tutorial27


Ignore:
Timestamp:
Jul 20, 2022, 3:28:09 PM (2 years ago)
Author:
prasanthi
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Tutorials/k0SDR/Tutorial27

    v8 v9  
    5959        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
    6060}}}
     61Resize the send and receive buffers to support UHD applications
     62{{{
     63root@node1-1:~# sysctl -w net.core.wmem_max=24862979
     64net.core.wmem_max = 24862979
     65root@node1-1:~# sysctl -w net.core.rmem_max=24862979
     66net.core.rmem_max = 24862979
     67}}}
    6168With 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.
    6269{{{
     
    7582
    7683root@node1-1:~# uhd_usrp_probe
    77 [INFO] [UHD] linux; GNU C++ version 5.4.0 20160609; Boost_105800; UHD_3.13.0.HEAD-0-g5b236772
     84[INFO] [UHD] linux; GNU C++ version 7.5.0; Boost_106501; UHD_3.15.0.0-release
    7885[INFO] [X300] X300 initialization sequence...
    79 [INFO] [X300] Maximum frame size: 8000 bytes.
    80 [INFO] [X300] Radio 1x clock: 200 MHz
    81 [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-g5b236772
    90 Unit: USRP X310 (30F110A, 192.168.40.2)
    91 FPGA Image: /usr/local/share/uhd/images/usrp_x310_fpga_HG.bit
    92 -- 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-2
    101 }}}
    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-2
    105 }}}
    106 Log on to the nodes, setup networking as described above and test USRP access
    107 {{{
    108 root@node1-1:~# ifconfig eth2 192.168.40.1 mtu 9000
    109 root@node1-1:~# uhd_usrp_probe
    11086.
    111 .
    112 .
    113 |   |    /
    114 |   |   |       RFNoC blocks on this device:
     87.|   |   |       RFNoC blocks on this device:
    11588|   |   |
    11689|   |   |   * DmaFIFO_0
     
    12396
    12497}}}
    125  
     98If 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.
     99Power cycle the USRP (by power cycling the node using the omf 'offh' and 'on' commands) for the new image to take effect.
    126100
    127101=== Run the experiment ===
     
    129103* Send a waveform from the TX node, node1-1
    130104{{{
    131 root@node1-1:~/uhd/host/build/examples# ./tx_waveforms --freq 2e9 --rate 10e6 --wave-type SINE --wave-freq 1e6 --gain 0
     105root@node1-1:~# /usr/lib/uhd/examples/tx_waveforms --freq 2e9 --rate 10e6 --wave-type SINE --wave-freq 1e6 --gain 0
    132106}}}
    133107* Run a spectrum analyzer application on the RX node, node1-2, to view the waveform
    134108{{{
    135 root@node1-2:~/uhd/host/build/examples# ./rx_ascii_art_dft --freq 2e9 --rate 10e6 --gain 0 --ref-lvl -40
     109root@node1-2:~# /usr/lib/uhd/examples/rx_ascii_art_dft --freq 2e9 --rate 10e6 --gain 0 --ref-lvl -40
    136110}}}
    137111