13 | | * After your reservation request has been approved, you'll receive access to the sandbox1 console. |
14 | | Open a terminal into console.sb1.cosmos-lab.org with a tunnel set up from localhost:5000 to srv1-lg1.sb1.cosmos-lab.org:9002 |
15 | | {{{ |
16 | | Welcome to |
17 | | _____ ____ _____ __ __ ____ _____ _ ____ |
18 | | / ____/ __ \ / ____| \/ |/ __ \ / ____| | | /\ | _ \ |
19 | | | | | | | | (___ | \ / | | | | (___ _____| | / \ | |_) | ___ _ __ __ _ |
20 | | | | | | | |\___ \| |\/| | | | |\___ \_____| | / /\ \ | _ < / _ \| '__/ _` | |
21 | | | |___| |__| |____) | | | | |__| |____) | | |____ / ____ \| |_) | (_) | | | (_| | |
22 | | \_____\____/|_____/|_| |_|\____/|_____/ |______/_/ \_\____(_)___/|_| \__, | |
23 | | __/ | |
24 | | |___/ |
25 | | Hostname : console.sb1.cosmos-lab.org |
26 | | Operating system : Ubuntu 16.04.5 LTS; Kernel: 4.15.0-45-generic; Arch: x86_64; |
27 | | CPU : 6 x Intel(R) Xeon(R) CPU E5-2630 v2 @ 2.60GHz |
28 | | 1 socket(s) with 6 core(s) per socket and 1 thread(s) per core |
29 | | Memory : 3.9G |
30 | | Uptime : up 4 days, 14 hours, 15 minutes |
31 | | Users logged in : 0 |
32 | | Last login: Tue Feb 26 19:06:09 2019 from 165.230.132.125 |
33 | | }}} |
34 | | |
35 | | * We can see the available nodes under this sandbox using the ''omf stat -t all'' command. The nodes list below should coinside with the [https://wiki.cosmos-lab.org/cPanel/controlPanel/start Inventory/Status page]. |
36 | | {{{ |
37 | | nilanjan@console:~$ omf stat -t all |
38 | | |
39 | | ----------------------------------------------- |
40 | | Node: srv1-lg1.sb1.cosmos-lab.org State: POWEROFF |
41 | | Node: srv2-lg1.sb1.cosmos-lab.org State: POWEROFF |
42 | | ----------------------------------------------- |
43 | | }}} |
44 | | |
45 | | * For this example we'll use the node ''srv1-lg1.sb1.cosmos-lab.org'' and load the ''baseline-sdr.ndz'' image onto it. This image already has the applications pre-compiled and drivers installed. |
46 | | {{{ |
47 | | console:~$ omf load -i baseline-sdr.ndz -t srv1-lg1.sb1.cosmos-lab.org |
48 | | }}} |
49 | | After the image is successfully loaded turn on the node, give it some time to boot and then ssh into it. |
50 | | {{{ |
51 | | console:~$ omf tell -a on -t srv1-lg1.sb1.cosmos-lab.org |
52 | | console:~$ ssh native@srv1-lg1.sb1.cosmos-lab.org |
53 | | }}} |
54 | | |
55 | | * Once you're in ''srv1-lg1.sb1.cosmos-lab.org'' configure the network interface so it can talk to the N310's data interface. |
56 | | {{{ |
57 | | sudo ifconfig enp1s0 10.115.1.1 netmask 255.255.0.0 mtu 8000 |
58 | | }}} |
| 7 | For this example we used the Krypton SDR on console.sb1.cosmos-lab.org. Follow the steps below to gain access to this console and set up your node with an appropriate image. |
| 8 | 1. Sign up for a [https://cosmos-lab.org/portal-2/ COSMOS account] |
| 9 | 2. [Documentation/Short/CreateRes Create a resource reservation on sandbox 1] |
| 10 | 3. [Documentation/Short/Login Login into your reserved domain.] |
| 11 | 4. Load baseline-uhd1.ndz on your resource. [Documentation/Short/LoadImage - this is done via OMF commands.] |
| 12 | |
| 13 | When opening a terminal into console.sb1.cosmos-lab.org set up a tunnel from localhost:5002 to sdr2-lg1.sb1.cosmos-lab.org:9002. This will be used by the web app to connect to a server running on the Krypton's host. |
| 14 | |
| 15 | === Configure and detect the radio === |
| 16 | * Once your node is ready and turned on, ssh into the Krypton's host |
| 17 | {{{ |
| 18 | console:~$ ssh root@sdr2-lg1.sb1.cosmos-lab.org |
| 19 | }}} |
| 20 | |
| 21 | * Configure and load the appropriate PCIe driver to access the Krypton's radio. Detailed steps for driver install and radio detection are on the [https://wiki.cosmos-lab.org/wiki/tutorials/krypton_usage Krypton usage page]. If the drivers are already pre-install on the image, just start the modules using ''niusrprio_pcie''. |
| 22 | {{{ |
| 23 | root@sdr2-lg1:~# /usr/local/bin/niusrprio_pcie start |
| 24 | }}} |
| 25 | |
69 | | serial: 315A35A |
70 | | addr: 10.115.2.1 |
71 | | claimed: False |
72 | | mgmt_addr: 10.113.2.1 |
73 | | mgmt_addr: 10.115.2.1 |
74 | | product: n310 |
75 | | type: n3xx |
76 | | |
77 | | |
78 | | -------------------------------------------------- |
79 | | -- UHD Device 1 |
80 | | -------------------------------------------------- |
81 | | Device Address: |
82 | | serial: 3176DF7 |
83 | | addr: 10.115.3.1 |
84 | | claimed: False |
85 | | mgmt_addr: 10.113.3.1 |
86 | | mgmt_addr: 10.115.3.1 |
87 | | product: n310 |
88 | | type: n3xx |
89 | | |
90 | | }}} |
91 | | |
92 | | The above output enumerates all the SDRs that were detected. |
93 | | Use the ''uhd_usrp_probe'' command with a ''mgmt_addr'' to get more details on a specific n310. |
94 | | {{{ |
95 | | native@localhost:~$ uhd_usrp_probe --args="mgmt_addr=10.113.2.1,addr=10.115.2.1" |
96 | | [INFO] [UHD] linux; GNU C++ version 7.3.0; Boost_106501; UHD_3.13.1.0-0-unknown |
97 | | [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 |
98 | | [INFO] [0/DmaFIFO_0] Initializing block control (NOC ID: 0xF1F0D00000000004) |
99 | | [INFO] [0/DmaFIFO_0] BIST passed (Throughput: 1346 MB/s) |
100 | | [INFO] [0/DmaFIFO_0] BIST passed (Throughput: 1356 MB/s) |
101 | | [INFO] [0/DmaFIFO_0] BIST passed (Throughput: 1347 MB/s) |
102 | | [INFO] [MPM.PeriphManager] init() called with device args `time_source=internal,clock_source=internal,product=n310,mgmt_addr=10.113.2.1'. |
103 | | [INFO] [0/DmaFIFO_0] BIST passed (Throughput: 1355 MB/s) |
104 | | [INFO] [0/Radio_0] Initializing block control (NOC ID: 0x12AD100000011312) |
105 | | [INFO] [0/Radio_1] Initializing block control (NOC ID: 0x12AD100000011312) |
| 36 | serial: 31557B9 |
| 37 | fpga: HG |
| 38 | name: |
| 39 | product: X310 |
| 40 | resource: RIO0 |
| 41 | type: x300 |
| 42 | |
| 43 | }}} |
| 44 | |
| 45 | The above output enumerates all the SDRs that were detected. Krypton has only one PCIe radio device of type=x300. |
| 46 | |
| 47 | Use the ''uhd_usrp_probe'' command to get more details on the x300. |
| 48 | {{{ |
| 49 | root@sdr2-lg1:~# uhd_usrp_probe --args="type=x300" |
| 50 | |
| 51 | [INFO] [UHD] linux; GNU C++ version 7.4.0; Boost_106501; UHD_3.14.0.HEAD-0-g6875d061 |
| 52 | [INFO] [X300] X300 initialization sequence... |
| 53 | [INFO] [X300] Connecting to niusrpriorpc at localhost:5444... |
| 54 | [INFO] [X300] Using LVBITX bitfile /usr/local/share/uhd/images/usrp_x310_fpga_HG.lvbitx... |
| 55 | [INFO] [X300] Radio 1x clock: 200 MHz |
| 56 | [INFO] [GPS] Found an internal GPSDO: LC_XO, Firmware Rev 0.929a |
| 57 | [INFO] [0/DmaFIFO_0] Initializing block control (NOC ID: 0xF1F0D00000000000) |
| 58 | [INFO] [0/DmaFIFO_0] BIST passed (Throughput: 1301 MB/s) |
| 59 | [INFO] [0/DmaFIFO_0] BIST passed (Throughput: 1303 MB/s) |
| 60 | [INFO] [0/Radio_0] Initializing block control (NOC ID: 0x12AD100000000001) |
| 61 | [INFO] [0/Radio_1] Initializing block control (NOC ID: 0x12AD100000000001) |
115 | | | | Mboard: ni-n3xx-315A35A |
116 | | | | eeprom_version: 1 |
117 | | | | mpm_version: 3.13.1.0-gbbce3e45 |
118 | | | | pid: 16962 |
119 | | | | product: n310 |
120 | | | | rev: 5 |
121 | | | | rpc_connection: remote |
122 | | | | serial: 315A35A |
123 | | | | type: n3xx |
124 | | | | MPM Version: 1.2 |
125 | | | | FPGA Version: 5.2 |
126 | | | | FPGA git hash: d0360f7.clean |
| 71 | | | Mboard: X310 |
| 72 | | | revision: 12 |
| 73 | | | revision_compat: 7 |
| 74 | | | product: 30810 |
| 75 | | | mac-addr0: 00:11:22:33:44:55 |
| 76 | | | mac-addr1: 66:77:88:99:aa:bb |
| 77 | | | gateway: 192.168.10.1 |
| 78 | | | ip-addr0: 192.168.10.2 |
| 79 | | | subnet0: 255.255.255.0 |
| 80 | | | ip-addr1: 192.168.40.2 |
| 81 | | | subnet1: 255.255.255.0 |
| 82 | | | ip-addr2: 255.255.255.255 |
| 83 | | | subnet2: 255.255.255.0 |
| 84 | | | ip-addr3: 255.255.255.255 |
| 85 | | | subnet3: 255.255.255.0 |
| 86 | | | serial: 31557B9 |
| 87 | | | FW Version: 6.0 |
| 88 | | | FPGA Version: 35.1 |
| 89 | | | FPGA git hash: 4c165a5 |
129 | | | | Time sources: internal, external, gpsdo, sfp0 |
130 | | | | Clock sources: external, internal, gpsdo |
131 | | | | Sensors: gps_locked, gps_tpv, ref_locked, fan, gps_sky, gps_time, temp |
| 92 | | | Time sources: internal, external, gpsdo |
| 93 | | | Clock sources: internal, external, gpsdo |
| 94 | | | Sensors: gps_gpgga, gps_gprmc, gps_time, gps_locked, gps_servo, ref_locked |
138 | | | | | | Name: Magnesium |
139 | | | | | | Antennas: TX/RX, RX2, CAL, LOCAL |
140 | | | | | | Sensors: lo_locked, lowband_lo_locked, ad9371_lo_locked |
141 | | | | | | Freq range: 1.000 to 6000.000 MHz |
142 | | | | | | Gain range all: 0.0 to 75.0 step 0.5 dB |
143 | | | | | | Gain range rfic: 0.0 to 0.0 step 0.0 dB |
144 | | | | | | Gain range dsa: 0.0 to 0.0 step 0.0 dB |
145 | | | | | | Gain range amp: 0.0 to 0.0 step 0.0 dB |
146 | | | | | | Bandwidth range: 20000000.0 to 100000000.0 step 0.0 Hz |
| 103 | | | | | Name: UBX RX |
| 104 | | | | | Antennas: TX/RX, RX2, CAL |
| 105 | | | | | Sensors: lo_locked |
| 106 | | | | | Freq range: 10.000 to 6000.000 MHz |
| 107 | | | | | Gain range PGA0: 0.0 to 31.5 step 0.5 dB |
| 108 | | | | | Bandwidth range: 160000000.0 to 160000000.0 step 0.0 Hz |
151 | | | | | | RX Frontend: 1 |
152 | | | | | | Name: Magnesium |
153 | | | | | | Antennas: TX/RX, RX2, CAL, LOCAL |
154 | | | | | | Sensors: lo_locked, lowband_lo_locked, ad9371_lo_locked |
155 | | | | | | Freq range: 1.000 to 6000.000 MHz |
156 | | | | | | Gain range all: 0.0 to 75.0 step 0.5 dB |
157 | | | | | | Gain range rfic: 0.0 to 0.0 step 0.0 dB |
158 | | | | | | Gain range dsa: 0.0 to 0.0 step 0.0 dB |
159 | | | | | | Gain range amp: 0.0 to 0.0 step 0.0 dB |
160 | | | | | | Bandwidth range: 20000000.0 to 100000000.0 step 0.0 Hz |
| 113 | | | | | RX Codec: A |
| 114 | | | | | Name: ads62p48 |
| 115 | | | | | Gain range digital: 0.0 to 6.0 step 0.5 dB |
| 116 | | | _____________________________________________________ |
| 117 | | | / |
| 118 | | | | RX Dboard: B |
| 119 | | | | ID: UBX-TDD (0x0203) |
| 120 | | | | Serial: 31584EE |
| 121 | | | | _____________________________________________________ |
| 122 | | | | / |
| 123 | | | | | RX Frontend: 0 |
| 124 | | | | | Name: UBX RX |
| 125 | | | | | Antennas: TX/RX, RX2, CAL |
| 126 | | | | | Sensors: lo_locked |
| 127 | | | | | Freq range: 10.000 to 6000.000 MHz |
| 128 | | | | | Gain range PGA0: 0.0 to 31.5 step 0.5 dB |
| 129 | | | | | Bandwidth range: 160000000.0 to 160000000.0 step 0.0 Hz |
165 | | | | | | RX Codec: A |
166 | | | | | | Name: AD9371 Dual ADC |
| 134 | | | | | RX Codec: B |
| 135 | | | | | Name: ads62p48 |
| 136 | | | | | Gain range digital: 0.0 to 6.0 step 0.5 dB |
| 137 | | | _____________________________________________________ |
| 138 | | | / |
| 139 | | | | TX Dboard: A |
| 140 | | | | ID: UBX-TDD (0x0202) |
| 141 | | | | Serial: 31584CF |
| 142 | | | | _____________________________________________________ |
| 143 | | | | / |
| 144 | | | | | TX Frontend: 0 |
| 145 | | | | | Name: UBX TX |
| 146 | | | | | Antennas: TX/RX, CAL |
| 147 | | | | | Sensors: lo_locked |
| 148 | | | | | Freq range: 10.000 to 6000.000 MHz |
| 149 | | | | | Gain range PGA0: 0.0 to 31.5 step 0.5 dB |
| 150 | | | | | Bandwidth range: 160000000.0 to 160000000.0 step 0.0 Hz |
| 151 | | | | | Connection Type: QI |
| 152 | | | | | Uses LO offset: No |
| 153 | | | | _____________________________________________________ |
| 154 | | | | / |
| 155 | | | | | TX Codec: A |
| 156 | | | | | Name: ad9146 |
170 | | | | | RX Dboard: B |
171 | | | | | _____________________________________________________ |
172 | | | | | / |
173 | | | | | | RX Frontend: 0 |
174 | | | | | | Name: Magnesium |
175 | | | | | | Antennas: TX/RX, RX2, CAL, LOCAL |
176 | | | | | | Sensors: lo_locked, lowband_lo_locked, ad9371_lo_locked |
177 | | | | | | Freq range: 1.000 to 6000.000 MHz |
178 | | | | | | Gain range all: 0.0 to 75.0 step 0.5 dB |
179 | | | | | | Gain range rfic: 0.0 to 0.0 step 0.0 dB |
180 | | | | | | Gain range dsa: 0.0 to 0.0 step 0.0 dB |
181 | | | | | | Gain range amp: 0.0 to 0.0 step 0.0 dB |
182 | | | | | | Bandwidth range: 20000000.0 to 100000000.0 step 0.0 Hz |
183 | | | | | | Connection Type: IQ |
184 | | | | | | Uses LO offset: No |
185 | | | | | _____________________________________________________ |
186 | | | | | / |
187 | | | | | | RX Frontend: 1 |
188 | | | | | | Name: Magnesium |
189 | | | | | | Antennas: TX/RX, RX2, CAL, LOCAL |
190 | | | | | | Sensors: lo_locked, lowband_lo_locked, ad9371_lo_locked |
191 | | | | | | Freq range: 1.000 to 6000.000 MHz |
192 | | | | | | Gain range all: 0.0 to 75.0 step 0.5 dB |
193 | | | | | | Gain range rfic: 0.0 to 0.0 step 0.0 dB |
194 | | | | | | Gain range dsa: 0.0 to 0.0 step 0.0 dB |
195 | | | | | | Gain range amp: 0.0 to 0.0 step 0.0 dB |
196 | | | | | | Bandwidth range: 20000000.0 to 100000000.0 step 0.0 Hz |
197 | | | | | | Connection Type: IQ |
198 | | | | | | Uses LO offset: No |
199 | | | | | _____________________________________________________ |
200 | | | | | / |
201 | | | | | | RX Codec: B |
202 | | | | | | Name: AD9371 Dual ADC |
203 | | | | | | Gain Elements: None |
204 | | | | _____________________________________________________ |
205 | | | | / |
206 | | | | | TX Dboard: A |
| 160 | | | | TX Dboard: B |
| 161 | | | | ID: UBX-TDD (0x0202) |
| 162 | | | | Serial: 31584EE |
210 | | | | | | Name: Magnesium |
211 | | | | | | Antennas: TX/RX |
212 | | | | | | Sensors: lo_locked, lowband_lo_locked, ad9371_lo_locked |
213 | | | | | | Freq range: 1.000 to 6000.000 MHz |
214 | | | | | | Gain range all: 0.0 to 65.0 step 0.5 dB |
215 | | | | | | Gain range rfic: 0.0 to 0.0 step 0.0 dB |
216 | | | | | | Gain range dsa: 0.0 to 0.0 step 0.0 dB |
217 | | | | | | Gain range amp: 0.0 to 0.0 step 0.0 dB |
218 | | | | | | Bandwidth range: 20000000.0 to 100000000.0 step 0.0 Hz |
219 | | | | | | Connection Type: IQ |
220 | | | | | | Uses LO offset: No |
221 | | | | | _____________________________________________________ |
222 | | | | | / |
223 | | | | | | TX Frontend: 1 |
224 | | | | | | Name: Magnesium |
225 | | | | | | Antennas: TX/RX |
226 | | | | | | Sensors: lo_locked, lowband_lo_locked, ad9371_lo_locked |
227 | | | | | | Freq range: 1.000 to 6000.000 MHz |
228 | | | | | | Gain range all: 0.0 to 65.0 step 0.5 dB |
229 | | | | | | Gain range rfic: 0.0 to 0.0 step 0.0 dB |
230 | | | | | | Gain range dsa: 0.0 to 0.0 step 0.0 dB |
231 | | | | | | Gain range amp: 0.0 to 0.0 step 0.0 dB |
232 | | | | | | Bandwidth range: 20000000.0 to 100000000.0 step 0.0 Hz |
233 | | | | | | Connection Type: IQ |
234 | | | | | | Uses LO offset: No |
235 | | | | | _____________________________________________________ |
236 | | | | | / |
237 | | | | | | TX Codec: A |
238 | | | | | | Name: AD9371 Dual DAC |
239 | | | | | | Gain Elements: None |
240 | | | | _____________________________________________________ |
241 | | | | / |
242 | | | | | TX Dboard: B |
243 | | | | | _____________________________________________________ |
244 | | | | | / |
245 | | | | | | TX Frontend: 0 |
246 | | | | | | Name: Magnesium |
247 | | | | | | Antennas: TX/RX |
248 | | | | | | Sensors: lo_locked, lowband_lo_locked, ad9371_lo_locked |
249 | | | | | | Freq range: 1.000 to 6000.000 MHz |
250 | | | | | | Gain range all: 0.0 to 65.0 step 0.5 dB |
251 | | | | | | Gain range rfic: 0.0 to 0.0 step 0.0 dB |
252 | | | | | | Gain range dsa: 0.0 to 0.0 step 0.0 dB |
253 | | | | | | Gain range amp: 0.0 to 0.0 step 0.0 dB |
254 | | | | | | Bandwidth range: 20000000.0 to 100000000.0 step 0.0 Hz |
255 | | | | | | Connection Type: IQ |
256 | | | | | | Uses LO offset: No |
257 | | | | | _____________________________________________________ |
258 | | | | | / |
259 | | | | | | TX Frontend: 1 |
260 | | | | | | Name: Magnesium |
261 | | | | | | Antennas: TX/RX |
262 | | | | | | Sensors: lo_locked, lowband_lo_locked, ad9371_lo_locked |
263 | | | | | | Freq range: 1.000 to 6000.000 MHz |
264 | | | | | | Gain range all: 0.0 to 65.0 step 0.5 dB |
265 | | | | | | Gain range rfic: 0.0 to 0.0 step 0.0 dB |
266 | | | | | | Gain range dsa: 0.0 to 0.0 step 0.0 dB |
267 | | | | | | Gain range amp: 0.0 to 0.0 step 0.0 dB |
268 | | | | | | Bandwidth range: 20000000.0 to 100000000.0 step 0.0 Hz |
269 | | | | | | Connection Type: IQ |
| 166 | | | | | Name: UBX TX |
| 167 | | | | | Antennas: TX/RX, CAL |
| 168 | | | | | Sensors: lo_locked |
| 169 | | | | | Freq range: 10.000 to 6000.000 MHz |
| 170 | | | | | Gain range PGA0: 0.0 to 31.5 step 0.5 dB |
| 171 | | | | | Bandwidth range: 160000000.0 to 160000000.0 step 0.0 Hz |
| 172 | | | | | Connection Type: QI |