Advertisement
duggabe

FSK_example.grc

Mar 2nd, 2022
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 15.80 KB | None | 0 0
  1. options:
  2. parameters:
  3. author: Barry Duggan
  4. catch_exceptions: 'True'
  5. category: '[GRC Hier Blocks]'
  6. cmake_opt: ''
  7. comment: ''
  8. copyright: ''
  9. description: FSK_example
  10. gen_cmake: 'On'
  11. gen_linking: dynamic
  12. generate_options: qt_gui
  13. hier_block_src_path: '.:'
  14. id: FSK_example
  15. max_nouts: '0'
  16. output_language: python
  17. placement: (0,0)
  18. qt_qss_theme: ''
  19. realtime_scheduling: ''
  20. run: 'True'
  21. run_command: '{python} -u {filename}'
  22. run_options: prompt
  23. sizing_mode: fixed
  24. thread_safe_setters: ''
  25. title: FSK_example
  26. window_size: (1000,1000)
  27. states:
  28. bus_sink: false
  29. bus_source: false
  30. bus_structure: null
  31. coordinate: [16, 12.0]
  32. rotation: 0
  33. state: enabled
  34.  
  35. blocks:
  36. - name: baud
  37. id: variable
  38. parameters:
  39. comment: ''
  40. value: 1/0.022
  41. states:
  42. bus_sink: false
  43. bus_source: false
  44. bus_structure: null
  45. coordinate: [288, 76.0]
  46. rotation: 0
  47. state: enabled
  48. - name: center
  49. id: variable
  50. parameters:
  51. comment: ''
  52. value: '2210'
  53. states:
  54. bus_sink: false
  55. bus_source: false
  56. bus_structure: null
  57. coordinate: [280, 12.0]
  58. rotation: 0
  59. state: enabled
  60. - name: delay
  61. id: variable_qtgui_range
  62. parameters:
  63. comment: ''
  64. gui_hint: ''
  65. label: Delay
  66. min_len: '200'
  67. orient: QtCore.Qt.Horizontal
  68. rangeType: float
  69. start: '0'
  70. step: '1'
  71. stop: '250'
  72. value: '145'
  73. widget: counter_slider
  74. states:
  75. bus_sink: false
  76. bus_source: false
  77. bus_structure: null
  78. coordinate: [848, 12.0]
  79. rotation: 0
  80. state: enabled
  81. - name: fsk_deviation
  82. id: variable
  83. parameters:
  84. comment: ''
  85. value: '170'
  86. states:
  87. bus_sink: false
  88. bus_source: false
  89. bus_structure: null
  90. coordinate: [368, 12.0]
  91. rotation: 0
  92. state: enabled
  93. - name: inp_amp
  94. id: variable
  95. parameters:
  96. comment: ''
  97. value: ((center+(fsk_deviation/2))/vco_max)-vco_offset
  98. states:
  99. bus_sink: false
  100. bus_source: false
  101. bus_structure: null
  102. coordinate: [648, 12.0]
  103. rotation: 0
  104. state: true
  105. - name: repeat
  106. id: variable
  107. parameters:
  108. comment: ''
  109. value: (int)(samp_rate*0.022)
  110. states:
  111. bus_sink: false
  112. bus_source: false
  113. bus_structure: null
  114. coordinate: [192, 76.0]
  115. rotation: 0
  116. state: true
  117. - name: samp_rate
  118. id: variable
  119. parameters:
  120. comment: ''
  121. value: '48000'
  122. states:
  123. bus_sink: false
  124. bus_source: false
  125. bus_structure: null
  126. coordinate: [192, 12.0]
  127. rotation: 0
  128. state: enabled
  129. - name: sps
  130. id: variable
  131. parameters:
  132. comment: ''
  133. value: '11'
  134. states:
  135. bus_sink: false
  136. bus_source: false
  137. bus_structure: null
  138. coordinate: [384, 76.0]
  139. rotation: 0
  140. state: true
  141. - name: sq_lvl
  142. id: variable_qtgui_range
  143. parameters:
  144. comment: ''
  145. gui_hint: ''
  146. label: Squelch
  147. min_len: '200'
  148. orient: QtCore.Qt.Horizontal
  149. rangeType: float
  150. start: '-100'
  151. step: '5'
  152. stop: '0'
  153. value: '-70'
  154. widget: counter_slider
  155. states:
  156. bus_sink: false
  157. bus_source: false
  158. bus_structure: null
  159. coordinate: [728, 12.0]
  160. rotation: 0
  161. state: enabled
  162. - name: vco_max
  163. id: variable
  164. parameters:
  165. comment: ''
  166. value: '2500'
  167. states:
  168. bus_sink: false
  169. bus_source: false
  170. bus_structure: null
  171. coordinate: [472, 12.0]
  172. rotation: 0
  173. state: true
  174. - name: vco_offset
  175. id: variable
  176. parameters:
  177. comment: ''
  178. value: (center-(fsk_deviation/2))/vco_max
  179. states:
  180. bus_sink: false
  181. bus_source: false
  182. bus_structure: null
  183. coordinate: [560, 12.0]
  184. rotation: 0
  185. state: true
  186. - name: analog_quadrature_demod_cf_1
  187. id: analog_quadrature_demod_cf
  188. parameters:
  189. affinity: ''
  190. alias: ''
  191. comment: ''
  192. gain: samp_rate/(2*math.pi*fsk_deviation)
  193. maxoutbuf: '0'
  194. minoutbuf: '0'
  195. states:
  196. bus_sink: false
  197. bus_source: false
  198. bus_structure: null
  199. coordinate: [624, 420.0]
  200. rotation: 0
  201. state: enabled
  202. - name: analog_random_source_x_0
  203. id: analog_random_source_x
  204. parameters:
  205. affinity: ''
  206. alias: ''
  207. comment: ''
  208. max: '256'
  209. maxoutbuf: '0'
  210. min: '0'
  211. minoutbuf: '0'
  212. num_samps: '1024'
  213. repeat: 'True'
  214. type: byte
  215. states:
  216. bus_sink: false
  217. bus_source: false
  218. bus_structure: null
  219. coordinate: [16, 148.0]
  220. rotation: 0
  221. state: true
  222. - name: analog_simple_squelch_cc_0
  223. id: analog_simple_squelch_cc
  224. parameters:
  225. affinity: ''
  226. alias: ''
  227. alpha: '1'
  228. comment: ''
  229. maxoutbuf: '0'
  230. minoutbuf: '0'
  231. threshold: sq_lvl
  232. states:
  233. bus_sink: false
  234. bus_source: false
  235. bus_structure: null
  236. coordinate: [448, 412.0]
  237. rotation: 0
  238. state: enabled
  239. - name: blocks_add_const_vxx_0
  240. id: blocks_add_const_vxx
  241. parameters:
  242. affinity: ''
  243. alias: ''
  244. comment: vco_offset
  245. const: vco_offset
  246. maxoutbuf: '0'
  247. minoutbuf: '0'
  248. type: float
  249. vlen: '1'
  250. states:
  251. bus_sink: false
  252. bus_source: false
  253. bus_structure: null
  254. coordinate: [472, 284.0]
  255. rotation: 0
  256. state: true
  257. - name: blocks_delay_0
  258. id: blocks_delay
  259. parameters:
  260. affinity: ''
  261. alias: ''
  262. comment: ''
  263. delay: int(delay)
  264. maxoutbuf: '0'
  265. minoutbuf: '0'
  266. num_ports: '1'
  267. type: float
  268. vlen: '1'
  269. states:
  270. bus_sink: false
  271. bus_source: false
  272. bus_structure: null
  273. coordinate: [856, 536.0]
  274. rotation: 0
  275. state: enabled
  276. - name: blocks_multiply_const_vxx_0
  277. id: blocks_multiply_const_vxx
  278. parameters:
  279. affinity: ''
  280. alias: ''
  281. comment: inp_amp
  282. const: inp_amp
  283. maxoutbuf: '0'
  284. minoutbuf: '0'
  285. type: float
  286. vlen: '1'
  287. states:
  288. bus_sink: false
  289. bus_source: false
  290. bus_structure: null
  291. coordinate: [304, 284.0]
  292. rotation: 0
  293. state: true
  294. - name: blocks_repeat_0
  295. id: blocks_repeat
  296. parameters:
  297. affinity: ''
  298. alias: ''
  299. comment: ''
  300. interp: repeat
  301. maxoutbuf: '0'
  302. minoutbuf: '0'
  303. type: byte
  304. vlen: '1'
  305. states:
  306. bus_sink: false
  307. bus_source: false
  308. bus_structure: null
  309. coordinate: [352, 172.0]
  310. rotation: 0
  311. state: enabled
  312. - name: blocks_sub_xx_0
  313. id: blocks_sub_xx
  314. parameters:
  315. affinity: ''
  316. alias: ''
  317. comment: ''
  318. maxoutbuf: '0'
  319. minoutbuf: '0'
  320. num_inputs: '2'
  321. type: float
  322. vlen: '1'
  323. states:
  324. bus_sink: false
  325. bus_source: false
  326. bus_structure: null
  327. coordinate: [1000, 480.0]
  328. rotation: 0
  329. state: true
  330. - name: blocks_throttle_0
  331. id: blocks_throttle
  332. parameters:
  333. affinity: ''
  334. alias: ''
  335. comment: ''
  336. ignoretag: 'True'
  337. maxoutbuf: '0'
  338. minoutbuf: '0'
  339. samples_per_second: samp_rate
  340. type: byte
  341. vlen: '1'
  342. states:
  343. bus_sink: false
  344. bus_source: false
  345. bus_structure: null
  346. coordinate: [536, 172.0]
  347. rotation: 0
  348. state: true
  349. - name: blocks_uchar_to_float_0
  350. id: blocks_uchar_to_float
  351. parameters:
  352. affinity: ''
  353. alias: ''
  354. comment: ''
  355. maxoutbuf: '0'
  356. minoutbuf: '0'
  357. states:
  358. bus_sink: false
  359. bus_source: false
  360. bus_structure: null
  361. coordinate: [704, 176.0]
  362. rotation: 0
  363. state: enabled
  364. - name: blocks_uchar_to_float_0_0
  365. id: blocks_uchar_to_float
  366. parameters:
  367. affinity: ''
  368. alias: ''
  369. comment: ''
  370. maxoutbuf: '0'
  371. minoutbuf: '0'
  372. states:
  373. bus_sink: false
  374. bus_source: false
  375. bus_structure: null
  376. coordinate: [952, 424.0]
  377. rotation: 0
  378. state: enabled
  379. - name: blocks_unpack_k_bits_bb_0
  380. id: blocks_unpack_k_bits_bb
  381. parameters:
  382. affinity: ''
  383. alias: ''
  384. comment: ''
  385. k: '8'
  386. maxoutbuf: '0'
  387. minoutbuf: '0'
  388. states:
  389. bus_sink: false
  390. bus_source: false
  391. bus_structure: null
  392. coordinate: [200, 172.0]
  393. rotation: 0
  394. state: true
  395. - name: blocks_vco_f_0
  396. id: blocks_vco_f
  397. parameters:
  398. affinity: ''
  399. alias: ''
  400. amplitude: '0.5'
  401. comment: ''
  402. maxoutbuf: '0'
  403. minoutbuf: '0'
  404. samp_rate: samp_rate
  405. sensitivity: '15708'
  406. states:
  407. bus_sink: false
  408. bus_source: false
  409. bus_structure: null
  410. coordinate: [632, 268.0]
  411. rotation: 0
  412. state: true
  413. - name: digital_binary_slicer_fb_0
  414. id: digital_binary_slicer_fb
  415. parameters:
  416. affinity: ''
  417. alias: ''
  418. comment: ''
  419. maxoutbuf: '0'
  420. minoutbuf: '0'
  421. states:
  422. bus_sink: false
  423. bus_source: false
  424. bus_structure: null
  425. coordinate: [808, 424.0]
  426. rotation: 0
  427. state: enabled
  428. - name: freq_xlating_fir_filter_xxx_0
  429. id: freq_xlating_fir_filter_xxx
  430. parameters:
  431. affinity: ''
  432. alias: ''
  433. center_freq: center
  434. comment: ''
  435. decim: '1'
  436. maxoutbuf: '0'
  437. minoutbuf: '0'
  438. samp_rate: samp_rate
  439. taps: firdes.low_pass(1.0,samp_rate,1000,400)
  440. type: fcf
  441. states:
  442. bus_sink: false
  443. bus_source: false
  444. bus_structure: null
  445. coordinate: [208, 396.0]
  446. rotation: 0
  447. state: enabled
  448. - name: qtgui_eye_sink_x_0
  449. id: qtgui_eye_sink_x
  450. parameters:
  451. affinity: ''
  452. alias: ''
  453. alpha1: '1.0'
  454. alpha10: '1.0'
  455. alpha2: '1.0'
  456. alpha3: '1.0'
  457. alpha4: '1.0'
  458. alpha5: '1.0'
  459. alpha6: '1.0'
  460. alpha7: '1.0'
  461. alpha8: '1.0'
  462. alpha9: '1.0'
  463. autoscale: 'False'
  464. axislabels: 'True'
  465. color1: blue
  466. color10: blue
  467. color2: blue
  468. color3: blue
  469. color4: blue
  470. color5: blue
  471. color6: blue
  472. color7: blue
  473. color8: blue
  474. color9: blue
  475. comment: ''
  476. ctrlpanel: 'False'
  477. entags: 'True'
  478. grid: 'False'
  479. gui_hint: ''
  480. label1: Signal 1
  481. label10: Signal 10
  482. label2: Signal 2
  483. label3: Signal 3
  484. label4: Signal 4
  485. label5: Signal 5
  486. label6: Signal 6
  487. label7: Signal 7
  488. label8: Signal 8
  489. label9: Signal 9
  490. legend: 'True'
  491. marker1: '-1'
  492. marker10: '-1'
  493. marker2: '-1'
  494. marker3: '-1'
  495. marker4: '-1'
  496. marker5: '-1'
  497. marker6: '-1'
  498. marker7: '-1'
  499. marker8: '-1'
  500. marker9: '-1'
  501. nconnections: '1'
  502. samp_per_symbol: sps
  503. size: '1024'
  504. srate: '500'
  505. style1: '1'
  506. style10: '1'
  507. style2: '1'
  508. style3: '1'
  509. style4: '1'
  510. style5: '1'
  511. style6: '1'
  512. style7: '1'
  513. style8: '1'
  514. style9: '1'
  515. tr_chan: '0'
  516. tr_delay: '0'
  517. tr_level: '0.0'
  518. tr_mode: qtgui.TRIG_MODE_AUTO
  519. tr_slope: qtgui.TRIG_SLOPE_POS
  520. tr_tag: ''
  521. type: float
  522. update_time: '0.10'
  523. width1: '1'
  524. width10: '1'
  525. width2: '1'
  526. width3: '1'
  527. width4: '1'
  528. width5: '1'
  529. width6: '1'
  530. width7: '1'
  531. width8: '1'
  532. width9: '1'
  533. ylabel: Amplitude
  534. ymax: '1'
  535. ymin: '-1'
  536. yunit: '""'
  537. states:
  538. bus_sink: false
  539. bus_source: false
  540. bus_structure: null
  541. coordinate: [1200, 284.0]
  542. rotation: 0
  543. state: true
  544. - name: qtgui_time_sink_x_0
  545. id: qtgui_time_sink_x
  546. parameters:
  547. affinity: ''
  548. alias: ''
  549. alpha1: '1.0'
  550. alpha10: '1.0'
  551. alpha2: '1.0'
  552. alpha3: '1.0'
  553. alpha4: '1.0'
  554. alpha5: '1.0'
  555. alpha6: '1.0'
  556. alpha7: '1.0'
  557. alpha8: '1.0'
  558. alpha9: '1.0'
  559. autoscale: 'False'
  560. axislabels: 'True'
  561. color1: blue
  562. color10: dark blue
  563. color2: red
  564. color3: green
  565. color4: black
  566. color5: cyan
  567. color6: magenta
  568. color7: yellow
  569. color8: dark red
  570. color9: dark green
  571. comment: ''
  572. ctrlpanel: 'True'
  573. entags: 'True'
  574. grid: 'False'
  575. gui_hint: ''
  576. label1: Signal 1
  577. label10: Signal 10
  578. label2: Signal 2
  579. label3: Signal 3
  580. label4: Signal 4
  581. label5: Signal 5
  582. label6: Signal 6
  583. label7: Signal 7
  584. label8: Signal 8
  585. label9: Signal 9
  586. legend: 'True'
  587. marker1: '-1'
  588. marker10: '-1'
  589. marker2: '-1'
  590. marker3: '-1'
  591. marker4: '-1'
  592. marker5: '-1'
  593. marker6: '-1'
  594. marker7: '-1'
  595. marker8: '-1'
  596. marker9: '-1'
  597. name: '""'
  598. nconnections: '3'
  599. size: '16384'
  600. srate: samp_rate
  601. stemplot: 'False'
  602. style1: '1'
  603. style10: '1'
  604. style2: '1'
  605. style3: '1'
  606. style4: '1'
  607. style5: '1'
  608. style6: '1'
  609. style7: '1'
  610. style8: '1'
  611. style9: '1'
  612. tr_chan: '0'
  613. tr_delay: '0'
  614. tr_level: '0.5'
  615. tr_mode: qtgui.TRIG_MODE_NORM
  616. tr_slope: qtgui.TRIG_SLOPE_NEG
  617. tr_tag: '""'
  618. type: float
  619. update_time: '0.10'
  620. width1: '1'
  621. width10: '1'
  622. width2: '1'
  623. width3: '1'
  624. width4: '1'
  625. width5: '1'
  626. width6: '1'
  627. width7: '1'
  628. width8: '1'
  629. width9: '1'
  630. ylabel: Amplitude
  631. ymax: '1'
  632. ymin: '-1'
  633. yunit: '""'
  634. states:
  635. bus_sink: false
  636. bus_source: false
  637. bus_structure: null
  638. coordinate: [1136, 464.0]
  639. rotation: 0
  640. state: true
  641. - name: rational_resampler_xxx_0_0
  642. id: rational_resampler_xxx
  643. parameters:
  644. affinity: ''
  645. alias: ''
  646. comment: 'sample rate 500 ->
  647.  
  648. 11 samples per symbol'
  649. decim: '96'
  650. fbw: '0'
  651. interp: '1'
  652. maxoutbuf: '0'
  653. minoutbuf: '0'
  654. taps: ''
  655. type: fff
  656. states:
  657. bus_sink: false
  658. bus_source: false
  659. bus_structure: null
  660. coordinate: [1008, 284.0]
  661. rotation: 0
  662. state: enabled
  663. - name: virtual_sink_0
  664. id: virtual_sink
  665. parameters:
  666. alias: ''
  667. comment: ''
  668. stream_id: '"xmt_data"'
  669. states:
  670. bus_sink: false
  671. bus_source: false
  672. bus_structure: null
  673. coordinate: [864, 172.0]
  674. rotation: 0
  675. state: true
  676. - name: virtual_sink_1
  677. id: virtual_sink
  678. parameters:
  679. alias: ''
  680. comment: ''
  681. stream_id: '"fsk_out"'
  682. states:
  683. bus_sink: false
  684. bus_source: false
  685. bus_structure: null
  686. coordinate: [816, 284.0]
  687. rotation: 0
  688. state: true
  689. - name: virtual_source_0
  690. id: virtual_source
  691. parameters:
  692. alias: ''
  693. comment: ''
  694. stream_id: '"xmt_data"'
  695. states:
  696. bus_sink: false
  697. bus_source: false
  698. bus_structure: null
  699. coordinate: [104, 284.0]
  700. rotation: 0
  701. state: true
  702. - name: virtual_source_0_0
  703. id: virtual_source
  704. parameters:
  705. alias: ''
  706. comment: ''
  707. stream_id: '"xmt_data"'
  708. states:
  709. bus_sink: false
  710. bus_source: false
  711. bus_structure: null
  712. coordinate: [648, 532.0]
  713. rotation: 0
  714. state: true
  715. - name: virtual_source_1
  716. id: virtual_source
  717. parameters:
  718. alias: ''
  719. comment: ''
  720. stream_id: '"fsk_out"'
  721. states:
  722. bus_sink: false
  723. bus_source: false
  724. bus_structure: null
  725. coordinate: [16, 404.0]
  726. rotation: 0
  727. state: true
  728.  
  729. connections:
  730. - [analog_quadrature_demod_cf_1, '0', digital_binary_slicer_fb_0, '0']
  731. - [analog_quadrature_demod_cf_1, '0', rational_resampler_xxx_0_0, '0']
  732. - [analog_random_source_x_0, '0', blocks_unpack_k_bits_bb_0, '0']
  733. - [analog_simple_squelch_cc_0, '0', analog_quadrature_demod_cf_1, '0']
  734. - [blocks_add_const_vxx_0, '0', blocks_vco_f_0, '0']
  735. - [blocks_delay_0, '0', blocks_sub_xx_0, '1']
  736. - [blocks_delay_0, '0', qtgui_time_sink_x_0, '2']
  737. - [blocks_multiply_const_vxx_0, '0', blocks_add_const_vxx_0, '0']
  738. - [blocks_repeat_0, '0', blocks_throttle_0, '0']
  739. - [blocks_sub_xx_0, '0', qtgui_time_sink_x_0, '1']
  740. - [blocks_throttle_0, '0', blocks_uchar_to_float_0, '0']
  741. - [blocks_uchar_to_float_0, '0', virtual_sink_0, '0']
  742. - [blocks_uchar_to_float_0_0, '0', blocks_sub_xx_0, '0']
  743. - [blocks_uchar_to_float_0_0, '0', qtgui_time_sink_x_0, '0']
  744. - [blocks_unpack_k_bits_bb_0, '0', blocks_repeat_0, '0']
  745. - [blocks_vco_f_0, '0', virtual_sink_1, '0']
  746. - [digital_binary_slicer_fb_0, '0', blocks_uchar_to_float_0_0, '0']
  747. - [freq_xlating_fir_filter_xxx_0, '0', analog_simple_squelch_cc_0, '0']
  748. - [rational_resampler_xxx_0_0, '0', qtgui_eye_sink_x_0, '0']
  749. - [virtual_source_0, '0', blocks_multiply_const_vxx_0, '0']
  750. - [virtual_source_0_0, '0', blocks_delay_0, '0']
  751. - [virtual_source_1, '0', freq_xlating_fir_filter_xxx_0, '0']
  752.  
  753. metadata:
  754. file_format: 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement