Changes between Version 3 and Version 4 of Resources/Notes/N310Usage
- Timestamp:
- Jul 29, 2020, 5:24:19 PM (4 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Resources/Notes/N310Usage
v3 v4 8 8 From a COSMOS console, load a baseline sdr image onto an experiment server - for this example ''srv1-lg1.sb1.cosmos-lab.org'' is used. 9 9 {{{#!shell-session 10 console:~$ omf load -i baseline _uhd_1804.ndz-t srv1-lg1.sb1.cosmos-lab.org10 console:~$ omf load -i baseline-uhd.ndz -t srv1-lg1.sb1.cosmos-lab.org 11 11 console:~$ omf tell -a on -t srv1-lg1.sb1.cosmos-lab.org 12 12 }}} 13 13 14 After the experiment server is up, ssh into it and list the all interfaces.14 After the experiment server (srv1-lg1) is up, ssh into it and list the all interfaces. 15 15 {{{#!shell-session 16 16 $ ifconfig -a 17 17 eno1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 18 inet6 fe80::1e34:daff:fe42:c3c prefixlen 64 scopeid 0x20<link> 19 ether 1c:34:da:42:0c:3c txqueuelen 1000 (Ethernet) 20 RX packets 137 bytes 18069 (18.0 KB) 21 RX errors 0 dropped 119 overruns 0 frame 0 22 TX packets 22 bytes 4234 (4.2 KB) 23 TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 24 25 eno2: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 26 inet6 fe80::1e34:daff:fe42:c3d prefixlen 64 scopeid 0x20<link> 27 ether 1c:34:da:42:0c:3d txqueuelen 1000 (Ethernet) 28 RX packets 170 bytes 20064 (20.0 KB) 29 RX errors 0 dropped 120 overruns 0 frame 0 30 TX packets 20 bytes 4070 (4.0 KB) 31 TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 32 33 enp134s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 18 34 inet 10.113.1.1 netmask 255.255.0.0 broadcast 10.113.255.255 19 inet6 fe80:: 3697:f6ff:fe2a:c2e2prefixlen 64 scopeid 0x20<link>20 ether 34:97:f6:2a:c2:e2txqueuelen 1000 (Ethernet)21 RX packets 947973 bytes 1253989955 (1.2 GB)35 inet6 fe80::6a05:caff:fe1e:e4ec prefixlen 64 scopeid 0x20<link> 36 ether 68:05:ca:1e:e4:ec txqueuelen 1000 (Ethernet) 37 RX packets 169 bytes 30675 (30.6 KB) 22 38 RX errors 0 dropped 0 overruns 0 frame 0 23 TX packets 712093 bytes 660515688 (660.5 MB)39 TX packets 140 bytes 18939 (18.9 KB) 24 40 TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 25 device interrupt 20 memory 0xf7e00000-f7e2000026 27 enp1s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 8000 28 inet 1 0.115.1.1 netmask 255.255.0.0 broadcast 10.115.255.25529 inet6 fe80::f652:14ff:fe83:b930 prefixlen 64 scopeid 0x20<link>30 ether f4:52:14:83:b9:30 txqueuelen 1000 (Ethernet)31 RX packets 18775 bytes 2348158 (2.3 MB)32 RX errors 0 dropped 17339overruns 0 frame 033 TX packets 637 bytes 267736 (267.7KB)41 device interrupt 86 memory 0xd3880000-d38a0000 42 43 lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536 44 inet 127.0.0.1 netmask 255.0.0.0 45 inet6 ::1 prefixlen 128 scopeid 0x10<host> 46 loop txqueuelen 1000 (Local Loopback) 47 RX packets 298 bytes 24341 (24.3 KB) 48 RX errors 0 dropped 0 overruns 0 frame 0 49 TX packets 298 bytes 24341 (24.3 KB) 34 50 TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 35 51 36 enp3s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 37 inet6 fe80::3697:f6ff:fe2a:c2e1 prefixlen 64 scopeid 0x20<link> 38 ether 34:97:f6:2a:c2:e1 txqueuelen 1000 (Ethernet) 39 RX packets 1095 bytes 67703 (67.7 KB) 40 RX errors 0 dropped 0 overruns 0 frame 0 41 TX packets 571 bytes 177910 (177.9 KB) 42 TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 43 }}} 44 45 46 * ''en01'' is the 1Gb control interface. 47 * ''enp1s0'' is the 10Gb data interface 48 49 Configure ''enp1s0'' so it can talk to the N310's data interface. 50 {{{#!shell-session 51 $ sudo ifconfig enp1s0 10.115.1.1 netmask 255.255.0.0 mtu 8000 52 }}} 53 54 Run ''uhd_find_devices'' to detect the available N310s 52 }}} 53 54 The interfaces should be configured as shown in the table. The control interface should come up automatically however the data interface needs to be configured. 55 || Interface name || Speed || Address || Description || 56 || eno1 || 10G || 10.115.1.1 || Data interface for sample streaming || 57 || enp134s0 || 1G || 10.113.1.1 || Control interface used for command streaming|| 58 59 60 Configure ''eno1'' so it can talk to the N310's data interface and set the network tcp buffers as well. 61 {{{#!shell-session 62 $ ifconfig eno1 10.115.1.1 netmask 255.255.0.0 mtu 8000 63 $ sysctl -w net.core.wmem_max=62500000 64 $ sysctl -w net.core.rmem_max=62500000 65 }}} 66 67 Run ''uhd_find_devices'' to detect the available N310s. This enumerates all the SDRs that were detected. 55 68 {{{#!shell-session 56 69 $ uhd_find_devices --args="type=n3xx" 57 [INFO] [UHD] linux; GNU C++ version 7. 3.0; Boost_106501; UHD_3.13.1.0-0-unknown70 [INFO] [UHD] linux; GNU C++ version 7.5.0; Boost_106501; UHD_3.15.0.HEAD-0-gaea0e2de 58 71 -------------------------------------------------- 59 72 -- UHD Device 0 60 73 -------------------------------------------------- 61 74 Device Address: 62 serial: 31 5A35A75 serial: 3176DF5 63 76 addr: 10.115.2.1 64 77 claimed: False 65 78 mgmt_addr: 10.113.2.1 66 mgmt_addr: 10.115.2.167 79 product: n310 68 80 type: n3xx … … 73 85 -------------------------------------------------- 74 86 Device Address: 75 serial: 3176DF7 76 addr: 10.115.3.1 87 serial: 3196937 77 88 claimed: False 78 89 mgmt_addr: 10.113.3.1 79 mgmt_addr: 10.115.3.180 90 product: n310 91 reachable: No 81 92 type: n3xx 82 }}} 83 84 The above output enumerates all the SDRs that were detected. Use the ''uhd_usrp_probe'' command with ''mgmt_addr'' to list the device properties of this N310. The ip address must match correctly to the corresponding interface. 85 86 || interface || args || address || 87 || control network || mgmt_addr || 10.113.2.1 || 88 || data network || addr || 10.115.2.1 || 93 94 }}} 95 96 Access UHD Device 0 by using the ''uhd_usrp_probe'' command with ''mgmt_addr'' and ''addr'' to list the device properties of this N310. The ip address must match correctly to the corresponding interface. 97 98 || args || address || interface type || 99 || mgmt_addr || 10.113.2.1 || control || 100 || addr || 10.115.2.1 || data || 89 101 90 102 {{{#!shell-session 91 103 $ uhd_usrp_probe --args="mgmt_addr=10.113.2.1,addr=10.115.2.1" 92 [INFO] [UHD] linux; GNU C++ version 7.3.0; Boost_106501; UHD_3.13.1.0-0-unknown 93 [INFO] [MPMD] Initializing 1 device(s) in parallel with args: mgmt_addr=10.113.2.1,type=n3xx,product=n310,serial=315A35A,claimed=False,addr=10.115.2.1 94 [INFO] [0/DmaFIFO_0] Initializing block control (NOC ID: 0xF1F0D00000000004) 95 [INFO] [0/DmaFIFO_0] BIST passed (Throughput: 1346 MB/s) 96 [INFO] [0/DmaFIFO_0] BIST passed (Throughput: 1356 MB/s) 97 [INFO] [0/DmaFIFO_0] BIST passed (Throughput: 1347 MB/s) 98 [INFO] [MPM.PeriphManager] init() called with device args `time_source=internal,clock_source=internal,product=n310,mgmt_addr=10.113.2.1'. 99 [INFO] [0/DmaFIFO_0] BIST passed (Throughput: 1355 MB/s) 104 105 [INFO] [UHD] linux; GNU C++ version 7.5.0; Boost_106501; UHD_3.15.0.HEAD-0-gaea0e2de 106 [INFO] [MPMD] Initializing 1 device(s) in parallel with args: mgmt_addr=10.113.2.1,type=n3xx,product=n310,serial=3176DF5,claimed=False,addr=10.115.2.1 107 [INFO] [MPM.PeriphManager] init() called with device args `product=n310,mgmt_addr=10.113.2.1,time_source=internal,clock_source=internal'. 108 [INFO] [0/Replay_0] Initializing block control (NOC ID: 0x4E91A00000000004) 100 109 [INFO] [0/Radio_0] Initializing block control (NOC ID: 0x12AD100000011312) 101 110 [INFO] [0/Radio_1] Initializing block control (NOC ID: 0x12AD100000011312) … … 104 113 [INFO] [0/DUC_0] Initializing block control (NOC ID: 0xD0C0000000000002) 105 114 [INFO] [0/DUC_1] Initializing block control (NOC ID: 0xD0C0000000000002) 115 [INFO] [0/FIFO_0] Initializing block control (NOC ID: 0xF1F0000000000000) 116 [INFO] [0/FIFO_1] Initializing block control (NOC ID: 0xF1F0000000000000) 117 [INFO] [0/FIFO_2] Initializing block control (NOC ID: 0xF1F0000000000000) 118 [INFO] [0/FIFO_3] Initializing block control (NOC ID: 0xF1F0000000000000) 106 119 _____________________________________________________ 107 120 / … … 109 122 | _____________________________________________________ 110 123 | / 111 | | Mboard: ni-n3xx-31 5A35A112 | | eeprom_version: 1113 | | mpm_version: 3.1 3.1.0-gbbce3e45124 | | Mboard: ni-n3xx-3176DF5 125 | | eeprom_version: 2 126 | | mpm_version: 3.15.0.0-gaea0e2de 114 127 | | pid: 16962 115 128 | | product: n310 116 | | rev: 5129 | | rev: 6 117 130 | | rpc_connection: remote 118 | | serial: 31 5A35A131 | | serial: 3176DF5 119 132 | | type: n3xx 120 133 | | MPM Version: 1.2 121 | | FPGA Version: 5. 2122 | | FPGA git hash: d0360f7.clean134 | | FPGA Version: 5.3 135 | | FPGA git hash: fde2a94.clean 123 136 | | RFNoC capable: Yes 124 137 | | 125 138 | | Time sources: internal, external, gpsdo, sfp0 126 139 | | Clock sources: external, internal, gpsdo 127 | | Sensors: gps_ locked, gps_tpv, ref_locked, fan, gps_sky, gps_time, temp140 | | Sensors: gps_time, gps_sky, gps_tpv, gps_gpgga, fan, ref_locked, temp, gps_locked 128 141 | | _____________________________________________________ 129 142 | | / … … 134 147 | | | | Name: Magnesium 135 148 | | | | Antennas: TX/RX, RX2, CAL, LOCAL 136 | | | | Sensors: lo_locked, lowband_lo_locked, ad9371_lo_locked149 | | | | Sensors: lo_locked, ad9371_lo_locked, lowband_lo_locked 137 150 | | | | Freq range: 1.000 to 6000.000 MHz 138 151 | | | | Gain range all: 0.0 to 75.0 step 0.5 dB … … 148 161 | | | | Name: Magnesium 149 162 | | | | Antennas: TX/RX, RX2, CAL, LOCAL 150 | | | | Sensors: lo_locked, lowband_lo_locked, ad9371_lo_locked163 | | | | Sensors: lo_locked, ad9371_lo_locked, lowband_lo_locked 151 164 | | | | Freq range: 1.000 to 6000.000 MHz 152 165 | | | | Gain range all: 0.0 to 75.0 step 0.5 dB … … 170 183 | | | | Name: Magnesium 171 184 | | | | Antennas: TX/RX, RX2, CAL, LOCAL 172 | | | | Sensors: lo_locked, lowband_lo_locked, ad9371_lo_locked185 | | | | Sensors: lo_locked, ad9371_lo_locked, lowband_lo_locked 173 186 | | | | Freq range: 1.000 to 6000.000 MHz 174 187 | | | | Gain range all: 0.0 to 75.0 step 0.5 dB … … 184 197 | | | | Name: Magnesium 185 198 | | | | Antennas: TX/RX, RX2, CAL, LOCAL 186 | | | | Sensors: lo_locked, lowband_lo_locked, ad9371_lo_locked199 | | | | Sensors: lo_locked, ad9371_lo_locked, lowband_lo_locked 187 200 | | | | Freq range: 1.000 to 6000.000 MHz 188 201 | | | | Gain range all: 0.0 to 75.0 step 0.5 dB … … 206 219 | | | | Name: Magnesium 207 220 | | | | Antennas: TX/RX 208 | | | | Sensors: lo_locked, lowband_lo_locked, ad9371_lo_locked221 | | | | Sensors: lo_locked, ad9371_lo_locked, lowband_lo_locked 209 222 | | | | Freq range: 1.000 to 6000.000 MHz 210 223 | | | | Gain range all: 0.0 to 65.0 step 0.5 dB … … 220 233 | | | | Name: Magnesium 221 234 | | | | Antennas: TX/RX 222 | | | | Sensors: lo_locked, lowband_lo_locked, ad9371_lo_locked235 | | | | Sensors: lo_locked, ad9371_lo_locked, lowband_lo_locked 223 236 | | | | Freq range: 1.000 to 6000.000 MHz 224 237 | | | | Gain range all: 0.0 to 65.0 step 0.5 dB … … 242 255 | | | | Name: Magnesium 243 256 | | | | Antennas: TX/RX 244 | | | | Sensors: lo_locked, lowband_lo_locked, ad9371_lo_locked257 | | | | Sensors: lo_locked, ad9371_lo_locked, lowband_lo_locked 245 258 | | | | Freq range: 1.000 to 6000.000 MHz 246 259 | | | | Gain range all: 0.0 to 65.0 step 0.5 dB … … 256 269 | | | | Name: Magnesium 257 270 | | | | Antennas: TX/RX 258 | | | | Sensors: lo_locked, lowband_lo_locked, ad9371_lo_locked271 | | | | Sensors: lo_locked, ad9371_lo_locked, lowband_lo_locked 259 272 | | | | Freq range: 1.000 to 6000.000 MHz 260 273 | | | | Gain range all: 0.0 to 65.0 step 0.5 dB … … 274 287 | | | RFNoC blocks on this device: 275 288 | | | 276 | | | * DmaFIFO_0289 | | | * Replay_0 277 290 | | | * Radio_0 278 291 | | | * Radio_1 … … 281 294 | | | * DUC_0 282 295 | | | * DUC_1 296 | | | * FIFO_0 297 | | | * FIFO_1 298 | | | * FIFO_2 299 | | | * FIFO_3 283 300 284 301 }}} … … 294 311 After the image loader completes, power-cycle the N310 from the console and detect the N310 again. 295 312 {{{#!shell-session 313 console:~$ omf tell -a offh -t srv1-lg1.sb1.cosmos-lab.org 296 314 console:~$ omf tell -a on -t srv1-lg1.sb1.cosmos-lab.org 297 console:~$ omf tell -a offh -t srv1-lg1.sb1.cosmos-lab.org 298 }}} 299 315 }}} 316