1options: 2 parameters: 3 author: '' 4 category: Custom 5 cmake_opt: '' 6 comment: '' 7 copyright: '' 8 description: Transmit a pre-defined signal (a complex sine) as OFDM packets. 9 gen_cmake: 'On' 10 gen_linking: dynamic 11 generate_options: qt_gui 12 hier_block_src_path: '.:' 13 id: ofdm_loopback_example 14 max_nouts: '0' 15 output_language: python 16 placement: (0,0) 17 qt_qss_theme: '' 18 realtime_scheduling: '' 19 run: 'True' 20 run_command: '{python} -u {filename}' 21 run_options: prompt 22 sizing_mode: fixed 23 thread_safe_setters: '' 24 title: OFDM Loopback Example 25 window_size: 1280, 1024 26 states: 27 coordinate: [8, 12.0] 28 rotation: 0 29 state: enabled 30 31blocks: 32- name: fft_len 33 id: variable 34 parameters: 35 comment: '' 36 value: '64' 37 states: 38 coordinate: [408, 20.0] 39 rotation: 0 40 state: enabled 41- name: freq_offset 42 id: variable_qtgui_range 43 parameters: 44 comment: '' 45 gui_hint: '' 46 label: Frequency Offset (Multiples of Sub-carrier spacing) 47 min_len: '200' 48 orient: Qt.Horizontal 49 rangeType: float 50 start: '-3' 51 step: '.01' 52 stop: '3' 53 value: '0' 54 widget: counter_slider 55 states: 56 coordinate: [528, 548.0] 57 rotation: 0 58 state: enabled 59- name: len_tag_key 60 id: variable 61 parameters: 62 comment: '' 63 value: '"packet_len"' 64 states: 65 coordinate: [288, 20.0] 66 rotation: 0 67 state: enabled 68- name: noise_voltage 69 id: variable_qtgui_range 70 parameters: 71 comment: '' 72 gui_hint: '' 73 label: Noise Amplitude 74 min_len: '200' 75 orient: Qt.Horizontal 76 rangeType: float 77 start: '0' 78 step: '.01' 79 stop: '1' 80 value: '0.1' 81 widget: counter_slider 82 states: 83 coordinate: [704, 548.0] 84 rotation: 0 85 state: enabled 86- name: packet_len 87 id: variable 88 parameters: 89 comment: '' 90 value: '50' 91 states: 92 coordinate: [200, 20.0] 93 rotation: 0 94 state: enabled 95- name: samp_rate 96 id: variable 97 parameters: 98 comment: '' 99 value: '100000' 100 states: 101 coordinate: [504, 20.0] 102 rotation: 0 103 state: enabled 104- name: blocks_stream_to_tagged_stream_0 105 id: blocks_stream_to_tagged_stream 106 parameters: 107 affinity: '' 108 alias: '' 109 comment: '' 110 len_tag_key: len_tag_key 111 maxoutbuf: '0' 112 minoutbuf: '0' 113 packet_len: packet_len 114 type: byte 115 vlen: '1' 116 states: 117 coordinate: [224, 140.0] 118 rotation: 0 119 state: enabled 120- name: blocks_tag_debug_0 121 id: blocks_tag_debug 122 parameters: 123 affinity: '' 124 alias: '' 125 comment: '' 126 display: 'False' 127 filter: '""' 128 name: Rx Packets 129 num_inputs: '1' 130 type: byte 131 vlen: '1' 132 states: 133 coordinate: [352, 508.0] 134 rotation: 0 135 state: enabled 136- name: blocks_throttle_0 137 id: blocks_throttle 138 parameters: 139 affinity: '' 140 alias: '' 141 comment: '' 142 ignoretag: 'True' 143 maxoutbuf: '0' 144 minoutbuf: '0' 145 samples_per_second: samp_rate 146 type: complex 147 vlen: '1' 148 states: 149 coordinate: [80, 300.0] 150 rotation: 180 151 state: enabled 152- name: blocks_uchar_to_float_0 153 id: blocks_uchar_to_float 154 parameters: 155 affinity: '' 156 alias: '' 157 comment: '' 158 maxoutbuf: '0' 159 minoutbuf: '0' 160 states: 161 coordinate: [352, 448.0] 162 rotation: 0 163 state: enabled 164- name: blocks_vector_source_x_0 165 id: blocks_vector_source_x 166 parameters: 167 affinity: '' 168 alias: '' 169 comment: '' 170 maxoutbuf: '0' 171 minoutbuf: '0' 172 repeat: 'True' 173 tags: () 174 type: byte 175 vector: range(packet_len) 176 vlen: '1' 177 states: 178 coordinate: [16, 132.0] 179 rotation: 0 180 state: enabled 181- name: channels_channel_model_0 182 id: channels_channel_model 183 parameters: 184 affinity: '' 185 alias: '' 186 block_tags: 'True' 187 comment: '' 188 epsilon: '1.0' 189 freq_offset: freq_offset * 1.0/fft_len 190 maxoutbuf: '0' 191 minoutbuf: '0' 192 noise_voltage: noise_voltage 193 seed: '0' 194 taps: 1.0 + 1.0j 195 states: 196 coordinate: [528, 268.0] 197 rotation: 180 198 state: enabled 199- name: digital_ofdm_rx_0 200 id: digital_ofdm_rx 201 parameters: 202 affinity: '' 203 alias: '' 204 comment: '' 205 cp_len: fft_len//4 206 fft_len: fft_len 207 header_mod: '"BPSK"' 208 log: 'False' 209 maxoutbuf: '0' 210 minoutbuf: '0' 211 occupied_carriers: ((-4,-3,-2,-1,1,2,3,4),) 212 packet_len_key: '"rx_len"' 213 payload_mod: '"QPSK"' 214 pilot_carriers: ((-6,-5,5,6),) 215 pilot_symbols: ((-1,1,-1,1),) 216 scramble_bits: 'False' 217 sync_word1: None 218 sync_word2: None 219 states: 220 coordinate: [80, 380.0] 221 rotation: 0 222 state: enabled 223- name: digital_ofdm_tx_0 224 id: digital_ofdm_tx 225 parameters: 226 affinity: '' 227 alias: '' 228 comment: '' 229 cp_len: fft_len//4 230 fft_len: fft_len 231 header_mod: '"BPSK"' 232 log: 'False' 233 maxoutbuf: '0' 234 minoutbuf: '0' 235 occupied_carriers: ((-4,-3,-2,-1,1,2,3,4),) 236 packet_len_key: len_tag_key 237 payload_mod: '"QPSK"' 238 pilot_carriers: ((-6,-5,5,6),) 239 pilot_symbols: ((-1,1,-1,1),) 240 rolloff: '0' 241 scramble_bits: 'False' 242 sync_word1: None 243 sync_word2: None 244 states: 245 coordinate: [480, 76.0] 246 rotation: 0 247 state: enabled 248- name: qtgui_freq_sink_x_0 249 id: qtgui_freq_sink_x 250 parameters: 251 affinity: '' 252 alias: '' 253 alpha1: '1.0' 254 alpha10: '1.0' 255 alpha2: '1.0' 256 alpha3: '1.0' 257 alpha4: '1.0' 258 alpha5: '1.0' 259 alpha6: '1.0' 260 alpha7: '1.0' 261 alpha8: '1.0' 262 alpha9: '1.0' 263 autoscale: 'False' 264 average: '1.0' 265 axislabels: 'True' 266 bw: samp_rate 267 color1: '"blue"' 268 color10: '"dark blue"' 269 color2: '"red"' 270 color3: '"green"' 271 color4: '"black"' 272 color5: '"cyan"' 273 color6: '"magenta"' 274 color7: '"yellow"' 275 color8: '"dark red"' 276 color9: '"dark green"' 277 comment: '' 278 ctrlpanel: 'False' 279 fc: '0' 280 fftsize: '1024' 281 freqhalf: 'True' 282 grid: 'False' 283 gui_hint: '' 284 label: Relative Gain 285 label1: Rx Spectrum 286 label10: '' 287 label2: '' 288 label3: '' 289 label4: '' 290 label5: '' 291 label6: '' 292 label7: '' 293 label8: '' 294 label9: '' 295 legend: 'True' 296 maxoutbuf: '0' 297 minoutbuf: '0' 298 name: Rx Spectrum 299 nconnections: '1' 300 showports: 'True' 301 tr_chan: '0' 302 tr_level: '0.0' 303 tr_mode: qtgui.TRIG_MODE_FREE 304 tr_tag: '""' 305 type: complex 306 units: dB 307 update_time: '0.10' 308 width1: '1' 309 width10: '1' 310 width2: '1' 311 width3: '1' 312 width4: '1' 313 width5: '1' 314 width6: '1' 315 width7: '1' 316 width8: '1' 317 width9: '1' 318 wintype: firdes.WIN_BLACKMAN_hARRIS 319 ymax: '10' 320 ymin: '-140' 321 states: 322 coordinate: [80, 564.0] 323 rotation: 0 324 state: enabled 325- name: qtgui_time_sink_x_0 326 id: qtgui_time_sink_x 327 parameters: 328 affinity: '' 329 alias: '' 330 alpha1: '1.0' 331 alpha10: '1.0' 332 alpha2: '1.0' 333 alpha3: '1.0' 334 alpha4: '1.0' 335 alpha5: '1.0' 336 alpha6: '1.0' 337 alpha7: '1.0' 338 alpha8: '1.0' 339 alpha9: '1.0' 340 autoscale: 'True' 341 axislabels: 'True' 342 color1: '"blue"' 343 color10: '"blue"' 344 color2: '"red"' 345 color3: '"green"' 346 color4: '"black"' 347 color5: '"cyan"' 348 color6: '"magenta"' 349 color7: '"yellow"' 350 color8: '"dark red"' 351 color9: '"dark green"' 352 comment: '' 353 ctrlpanel: 'False' 354 entags: 'True' 355 grid: 'False' 356 gui_hint: '' 357 label1: '' 358 label10: '' 359 label2: '' 360 label3: '' 361 label4: '' 362 label5: '' 363 label6: '' 364 label7: '' 365 label8: '' 366 label9: '' 367 legend: 'True' 368 marker1: '-1' 369 marker10: '-1' 370 marker2: '-1' 371 marker3: '-1' 372 marker4: '-1' 373 marker5: '-1' 374 marker6: '-1' 375 marker7: '-1' 376 marker8: '-1' 377 marker9: '-1' 378 name: Scope Plot 379 nconnections: '1' 380 size: '1024' 381 srate: samp_rate 382 stemplot: 'False' 383 style1: '1' 384 style10: '1' 385 style2: '1' 386 style3: '1' 387 style4: '1' 388 style5: '1' 389 style6: '1' 390 style7: '1' 391 style8: '1' 392 style9: '1' 393 tr_chan: '0' 394 tr_delay: '0' 395 tr_level: '0.0' 396 tr_mode: qtgui.TRIG_MODE_FREE 397 tr_slope: qtgui.TRIG_SLOPE_POS 398 tr_tag: '""' 399 type: float 400 update_time: '0.10' 401 width1: '1' 402 width10: '1' 403 width2: '1' 404 width3: '1' 405 width4: '1' 406 width5: '1' 407 width6: '1' 408 width7: '1' 409 width8: '1' 410 width9: '1' 411 ylabel: Amplitude 412 ymax: '1' 413 ymin: '-1' 414 yunit: '""' 415 states: 416 coordinate: [528, 420.0] 417 rotation: 0 418 state: enabled 419 420connections: 421- [blocks_stream_to_tagged_stream_0, '0', digital_ofdm_tx_0, '0'] 422- [blocks_throttle_0, '0', digital_ofdm_rx_0, '0'] 423- [blocks_throttle_0, '0', qtgui_freq_sink_x_0, '0'] 424- [blocks_uchar_to_float_0, '0', qtgui_time_sink_x_0, '0'] 425- [blocks_vector_source_x_0, '0', blocks_stream_to_tagged_stream_0, '0'] 426- [channels_channel_model_0, '0', blocks_throttle_0, '0'] 427- [digital_ofdm_rx_0, '0', blocks_tag_debug_0, '0'] 428- [digital_ofdm_rx_0, '0', blocks_uchar_to_float_0, '0'] 429- [digital_ofdm_tx_0, '0', channels_channel_model_0, '0'] 430 431metadata: 432 file_format: 1 433