Advertisement
duggabe

pkt_fsk_rcv_ma.grc

Nov 5th, 2023
34
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 17.46 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: packet FSK receive
  10. gen_cmake: 'On'
  11. gen_linking: dynamic
  12. generate_options: qt_gui
  13. hier_block_src_path: '.:'
  14. id: pkt_fsk_rcv_ma
  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: pkt_fsk_rcv_ma
  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: access_key
  37. id: variable
  38. parameters:
  39. comment: ''
  40. value: '''11100001010110101110100010010011'''
  41. states:
  42. bus_sink: false
  43. bus_source: false
  44. bus_structure: null
  45. coordinate: [1264, 12.0]
  46. rotation: 0
  47. state: enabled
  48. - name: baud
  49. id: variable
  50. parameters:
  51. comment: ''
  52. value: '1200'
  53. states:
  54. bus_sink: false
  55. bus_source: false
  56. bus_structure: null
  57. coordinate: [280, 12.0]
  58. rotation: 0
  59. state: true
  60. - name: center
  61. id: variable
  62. parameters:
  63. comment: ''
  64. value: (mark+space)/2
  65. states:
  66. bus_sink: false
  67. bus_source: false
  68. bus_structure: null
  69. coordinate: [240, 124.0]
  70. rotation: 0
  71. state: enabled
  72. - name: decim
  73. id: variable
  74. parameters:
  75. comment: ''
  76. value: '8'
  77. states:
  78. bus_sink: false
  79. bus_source: false
  80. bus_structure: null
  81. coordinate: [608, 12.0]
  82. rotation: 0
  83. state: true
  84. - name: fsk_deviation
  85. id: variable
  86. parameters:
  87. comment: ''
  88. value: (abs)(mark-space)
  89. states:
  90. bus_sink: false
  91. bus_source: false
  92. bus_structure: null
  93. coordinate: [400, 124.0]
  94. rotation: 0
  95. state: enabled
  96. - name: hdr_format
  97. id: variable
  98. parameters:
  99. comment: header_format_default
  100. value: digital.header_format_default(access_key, 0)
  101. states:
  102. bus_sink: false
  103. bus_source: false
  104. bus_structure: null
  105. coordinate: [1264, 76.0]
  106. rotation: 0
  107. state: enabled
  108. - name: low_pass_filter
  109. id: variable_low_pass_filter_taps
  110. parameters:
  111. beta: '6.76'
  112. comment: ''
  113. cutoff_freq: '3000'
  114. gain: '1.0'
  115. samp_rate: samp_rate
  116. value: ''
  117. width: '1000'
  118. win: window.WIN_HAMMING
  119. states:
  120. bus_sink: false
  121. bus_source: false
  122. bus_structure: null
  123. coordinate: [864, 12.0]
  124. rotation: 0
  125. state: true
  126. - name: mark
  127. id: variable
  128. parameters:
  129. comment: ''
  130. value: '59500'
  131. states:
  132. bus_sink: false
  133. bus_source: false
  134. bus_structure: null
  135. coordinate: [360, 12.0]
  136. rotation: 0
  137. state: true
  138. - name: phase_bw
  139. id: variable
  140. parameters:
  141. comment: ''
  142. value: math.pi/32
  143. states:
  144. bus_sink: false
  145. bus_source: false
  146. bus_structure: null
  147. coordinate: [680, 12.0]
  148. rotation: 0
  149. state: true
  150. - name: repeat
  151. id: variable
  152. parameters:
  153. comment: ''
  154. value: (int)(samp_rate/baud)
  155. states:
  156. bus_sink: false
  157. bus_source: false
  158. bus_structure: null
  159. coordinate: [320, 124.0]
  160. rotation: 0
  161. state: true
  162. - name: reverse
  163. id: variable_qtgui_chooser
  164. parameters:
  165. comment: 0,0,1,1
  166. gui_hint: 0,0,1,1
  167. label: ''
  168. label0: Normal
  169. label1: Reverse
  170. label2: ''
  171. label3: ''
  172. label4: ''
  173. labels: '[]'
  174. num_opts: '2'
  175. option0: '1'
  176. option1: '-1'
  177. option2: '2'
  178. option3: '3'
  179. option4: '4'
  180. options: '[0, 1, 2]'
  181. orient: Qt.QVBoxLayout
  182. type: int
  183. value: '-1'
  184. widget: radio_buttons
  185. states:
  186. bus_sink: false
  187. bus_source: false
  188. bus_structure: null
  189. coordinate: [1024, 12.0]
  190. rotation: 0
  191. state: enabled
  192. - name: samp_rate
  193. id: variable
  194. parameters:
  195. comment: '|----------------------------------------------------------------------------------------->
  196.  
  197. User set values'
  198. value: '192000'
  199. states:
  200. bus_sink: false
  201. bus_source: false
  202. bus_structure: null
  203. coordinate: [184, 12.0]
  204. rotation: 0
  205. state: enabled
  206. - name: space
  207. id: variable
  208. parameters:
  209. comment: ''
  210. value: '60500'
  211. states:
  212. bus_sink: false
  213. bus_source: false
  214. bus_structure: null
  215. coordinate: [448, 12.0]
  216. rotation: 0
  217. state: true
  218. - name: sps
  219. id: variable
  220. parameters:
  221. comment: ''
  222. value: (int)(repeat/decim)
  223. states:
  224. bus_sink: false
  225. bus_source: false
  226. bus_structure: null
  227. coordinate: [504, 124.0]
  228. rotation: 0
  229. state: enabled
  230. - name: sq_lvl
  231. id: variable_qtgui_range
  232. parameters:
  233. comment: 0,1,1,1
  234. gui_hint: 0,1,1,1
  235. label: Squelch
  236. min_len: '200'
  237. orient: QtCore.Qt.Horizontal
  238. rangeType: float
  239. start: '-100'
  240. step: '5'
  241. stop: '0'
  242. value: '-50'
  243. widget: counter
  244. states:
  245. bus_sink: false
  246. bus_source: false
  247. bus_structure: null
  248. coordinate: [1144, 12.0]
  249. rotation: 0
  250. state: enabled
  251. - name: thresh
  252. id: variable
  253. parameters:
  254. comment: ''
  255. value: '1'
  256. states:
  257. bus_sink: false
  258. bus_source: false
  259. bus_structure: null
  260. coordinate: [536, 12.0]
  261. rotation: 0
  262. state: enabled
  263. - name: analog_agc_xx_0
  264. id: analog_agc_xx
  265. parameters:
  266. affinity: ''
  267. alias: ''
  268. comment: ''
  269. gain: '1.0'
  270. max_gain: '2.0'
  271. maxoutbuf: '0'
  272. minoutbuf: '0'
  273. rate: 1e-4
  274. reference: '1.0'
  275. type: float
  276. states:
  277. bus_sink: false
  278. bus_source: false
  279. bus_structure: null
  280. coordinate: [1040, 332.0]
  281. rotation: 0
  282. state: true
  283. - name: analog_quadrature_demod_cf_0
  284. id: analog_quadrature_demod_cf
  285. parameters:
  286. affinity: ''
  287. alias: ''
  288. comment: ''
  289. gain: samp_rate/(2*math.pi*fsk_deviation)
  290. maxoutbuf: '0'
  291. minoutbuf: '0'
  292. states:
  293. bus_sink: false
  294. bus_source: false
  295. bus_structure: null
  296. coordinate: [680, 356.0]
  297. rotation: 0
  298. state: true
  299. - name: analog_simple_squelch_cc_0
  300. id: analog_simple_squelch_cc
  301. parameters:
  302. affinity: ''
  303. alias: ''
  304. alpha: '1'
  305. comment: ''
  306. maxoutbuf: '0'
  307. minoutbuf: '0'
  308. threshold: sq_lvl
  309. states:
  310. bus_sink: false
  311. bus_source: false
  312. bus_structure: null
  313. coordinate: [496, 348.0]
  314. rotation: 0
  315. state: enabled
  316. - name: blocks_file_sink_0
  317. id: blocks_file_sink
  318. parameters:
  319. affinity: ''
  320. alias: ''
  321. append: 'False'
  322. comment: ''
  323. file: ./output.tmp
  324. type: byte
  325. unbuffered: 'True'
  326. vlen: '1'
  327. states:
  328. bus_sink: false
  329. bus_source: false
  330. bus_structure: null
  331. coordinate: [1344, 532.0]
  332. rotation: 0
  333. state: enabled
  334. - name: blocks_multiply_const_vxx_0
  335. id: blocks_multiply_const_vxx
  336. parameters:
  337. affinity: ''
  338. alias: ''
  339. comment: Normal/Reverse
  340. const: reverse
  341. maxoutbuf: '0'
  342. minoutbuf: '0'
  343. type: float
  344. vlen: '1'
  345. states:
  346. bus_sink: false
  347. bus_source: false
  348. bus_structure: null
  349. coordinate: [872, 356.0]
  350. rotation: 0
  351. state: enabled
  352. - name: blocks_repack_bits_bb_1_0
  353. id: blocks_repack_bits_bb
  354. parameters:
  355. affinity: ''
  356. alias: ''
  357. align_output: 'False'
  358. comment: MSB
  359. endianness: gr.GR_MSB_FIRST
  360. k: '1'
  361. l: '8'
  362. len_tag_key: '"packet_len"'
  363. maxoutbuf: '0'
  364. minoutbuf: '0'
  365. states:
  366. bus_sink: false
  367. bus_source: false
  368. bus_structure: null
  369. coordinate: [728, 540.0]
  370. rotation: 0
  371. state: true
  372. - name: blocks_throttle2_0_0
  373. id: blocks_throttle2
  374. parameters:
  375. affinity: ''
  376. alias: ''
  377. comment: ''
  378. ignoretag: 'True'
  379. limit: auto
  380. maximum: '0.1'
  381. maxoutbuf: '0'
  382. minoutbuf: '0'
  383. samples_per_second: samp_rate
  384. type: byte
  385. vlen: '1'
  386. states:
  387. bus_sink: false
  388. bus_source: false
  389. bus_structure: null
  390. coordinate: [1168, 540.0]
  391. rotation: 0
  392. state: true
  393. - name: blocks_uchar_to_float_0_0
  394. id: blocks_uchar_to_float
  395. parameters:
  396. affinity: ''
  397. alias: ''
  398. comment: ''
  399. maxoutbuf: '0'
  400. minoutbuf: '0'
  401. states:
  402. bus_sink: false
  403. bus_source: false
  404. bus_structure: null
  405. coordinate: [368, 664.0]
  406. rotation: 0
  407. state: enabled
  408. - name: blocks_uchar_to_float_0_0_0
  409. id: blocks_uchar_to_float
  410. parameters:
  411. affinity: ''
  412. alias: ''
  413. comment: ''
  414. maxoutbuf: '0'
  415. minoutbuf: '0'
  416. states:
  417. bus_sink: false
  418. bus_source: false
  419. bus_structure: null
  420. coordinate: [760, 672.0]
  421. rotation: 0
  422. state: enabled
  423. - name: digital_binary_slicer_fb_0
  424. id: digital_binary_slicer_fb
  425. parameters:
  426. affinity: ''
  427. alias: ''
  428. comment: ''
  429. maxoutbuf: '0'
  430. minoutbuf: '0'
  431. states:
  432. bus_sink: false
  433. bus_source: false
  434. bus_structure: null
  435. coordinate: [232, 552.0]
  436. rotation: 0
  437. state: enabled
  438. - name: digital_correlate_access_code_xx_ts_0
  439. id: digital_correlate_access_code_xx_ts
  440. parameters:
  441. access_code: '"11100001010110101110100010010011"'
  442. affinity: ''
  443. alias: ''
  444. comment: ''
  445. maxoutbuf: '0'
  446. minoutbuf: '0'
  447. tagname: packet_len
  448. threshold: thresh
  449. type: byte
  450. states:
  451. bus_sink: false
  452. bus_source: false
  453. bus_structure: null
  454. coordinate: [408, 532.0]
  455. rotation: 0
  456. state: true
  457. - name: digital_crc32_bb_0_0
  458. id: digital_crc32_bb
  459. parameters:
  460. affinity: ''
  461. alias: ''
  462. check: 'True'
  463. comment: ''
  464. lengthtagname: '"packet_len"'
  465. maxoutbuf: '0'
  466. minoutbuf: '0'
  467. packed: 'True'
  468. states:
  469. bus_sink: false
  470. bus_source: false
  471. bus_structure: null
  472. coordinate: [936, 532.0]
  473. rotation: 0
  474. state: true
  475. - name: digital_symbol_sync_xx_0
  476. id: digital_symbol_sync_xx
  477. parameters:
  478. affinity: ''
  479. alias: ''
  480. comment: ''
  481. constellation: digital.constellation_bpsk().base()
  482. damping: '1.0'
  483. loop_bw: phase_bw
  484. max_dev: '1.5'
  485. maxoutbuf: '0'
  486. minoutbuf: '0'
  487. nfilters: '128'
  488. osps: '1'
  489. pfb_mf_taps: '[]'
  490. resamp_type: digital.IR_MMSE_8TAP
  491. sps: sps
  492. ted_gain: '1.0'
  493. ted_type: digital.TED_EARLY_LATE
  494. type: ff
  495. states:
  496. bus_sink: false
  497. bus_source: false
  498. bus_structure: null
  499. coordinate: [1192, 300.0]
  500. rotation: 0
  501. state: enabled
  502. - name: freq_xlating_fir_filter_xxx_0
  503. id: freq_xlating_fir_filter_xxx
  504. parameters:
  505. affinity: ''
  506. alias: ''
  507. center_freq: center
  508. comment: ''
  509. decim: decim
  510. maxoutbuf: '0'
  511. minoutbuf: '0'
  512. samp_rate: samp_rate
  513. taps: low_pass_filter
  514. type: ccf
  515. states:
  516. bus_sink: false
  517. bus_source: false
  518. bus_structure: null
  519. coordinate: [248, 332.0]
  520. rotation: 0
  521. state: enabled
  522. - name: import_0
  523. id: import
  524. parameters:
  525. alias: ''
  526. comment: ''
  527. imports: import math
  528. states:
  529. bus_sink: false
  530. bus_source: false
  531. bus_structure: null
  532. coordinate: [16, 124.0]
  533. rotation: 0
  534. state: enabled
  535. - name: note_0
  536. id: note
  537. parameters:
  538. alias: ''
  539. comment: '|----------------------------------------------------------------------------------------->
  540.  
  541. Calculated values:
  542.  
  543. - center freq = (mark+space)/2
  544.  
  545. - repeat = (int)(samp_rate/baud)
  546.  
  547. - fsk_deviation = (abs)(mark-space)
  548.  
  549. - sps = (int)(repeat/decim)
  550.  
  551. - Quad Demod Gain = samp_rate/(2*math.pi*fsk_deviation)'
  552. note: ''
  553. states:
  554. bus_sink: false
  555. bus_source: false
  556. bus_structure: null
  557. coordinate: [184, 140.0]
  558. rotation: 0
  559. state: enabled
  560. - name: qtgui_time_sink_x_0_0
  561. id: qtgui_time_sink_x
  562. parameters:
  563. affinity: ''
  564. alias: ''
  565. alpha1: '1.0'
  566. alpha10: '1.0'
  567. alpha2: '1.0'
  568. alpha3: '1.0'
  569. alpha4: '1.0'
  570. alpha5: '1.0'
  571. alpha6: '1.0'
  572. alpha7: '1.0'
  573. alpha8: '1.0'
  574. alpha9: '1.0'
  575. autoscale: 'False'
  576. axislabels: 'True'
  577. color1: blue
  578. color10: dark blue
  579. color2: red
  580. color3: green
  581. color4: black
  582. color5: cyan
  583. color6: magenta
  584. color7: yellow
  585. color8: dark red
  586. color9: dark green
  587. comment: 3,0,1,3
  588. ctrlpanel: 'False'
  589. entags: 'True'
  590. grid: 'False'
  591. gui_hint: 3,0,1,3
  592. label1: ''
  593. label10: ''
  594. label2: ''
  595. label3: ''
  596. label4: ''
  597. label5: ''
  598. label6: ''
  599. label7: ''
  600. label8: ''
  601. label9: ''
  602. legend: 'True'
  603. marker1: '-1'
  604. marker10: '-1'
  605. marker2: '-1'
  606. marker3: '-1'
  607. marker4: '-1'
  608. marker5: '-1'
  609. marker6: '-1'
  610. marker7: '-1'
  611. marker8: '-1'
  612. marker9: '-1'
  613. name: Correlate Output
  614. nconnections: '1'
  615. size: '128'
  616. srate: samp_rate
  617. stemplot: 'False'
  618. style1: '1'
  619. style10: '1'
  620. style2: '1'
  621. style3: '1'
  622. style4: '1'
  623. style5: '1'
  624. style6: '1'
  625. style7: '1'
  626. style8: '1'
  627. style9: '1'
  628. tr_chan: '0'
  629. tr_delay: '0.0'
  630. tr_level: '0.1'
  631. tr_mode: qtgui.TRIG_MODE_TAG
  632. tr_slope: qtgui.TRIG_SLOPE_POS
  633. tr_tag: '"packet_len"'
  634. type: float
  635. update_time: '0.10'
  636. width1: '1'
  637. width10: '1'
  638. width2: '1'
  639. width3: '1'
  640. width4: '1'
  641. width5: '1'
  642. width6: '1'
  643. width7: '1'
  644. width8: '1'
  645. width9: '1'
  646. ylabel: Amplitude
  647. ymax: '1.1'
  648. ymin: '-0.1'
  649. yunit: '""'
  650. states:
  651. bus_sink: false
  652. bus_source: false
  653. bus_structure: null
  654. coordinate: [928, 644.0]
  655. rotation: 0
  656. state: enabled
  657. - name: qtgui_time_sink_x_0_2
  658. id: qtgui_time_sink_x
  659. parameters:
  660. affinity: ''
  661. alias: ''
  662. alpha1: '1.0'
  663. alpha10: '1.0'
  664. alpha2: '1.0'
  665. alpha3: '1.0'
  666. alpha4: '1.0'
  667. alpha5: '1.0'
  668. alpha6: '1.0'
  669. alpha7: '1.0'
  670. alpha8: '1.0'
  671. alpha9: '1.0'
  672. autoscale: 'False'
  673. axislabels: 'True'
  674. color1: blue
  675. color10: dark blue
  676. color2: red
  677. color3: green
  678. color4: black
  679. color5: cyan
  680. color6: magenta
  681. color7: yellow
  682. color8: dark red
  683. color9: dark green
  684. comment: 2,0,1,3
  685. ctrlpanel: 'False'
  686. entags: 'True'
  687. grid: 'False'
  688. gui_hint: 2,0,1,3
  689. label1: ''
  690. label10: ''
  691. label2: ''
  692. label3: ''
  693. label4: ''
  694. label5: ''
  695. label6: ''
  696. label7: ''
  697. label8: ''
  698. label9: ''
  699. legend: 'True'
  700. marker1: '-1'
  701. marker10: '-1'
  702. marker2: '-1'
  703. marker3: '-1'
  704. marker4: '-1'
  705. marker5: '-1'
  706. marker6: '-1'
  707. marker7: '-1'
  708. marker8: '-1'
  709. marker9: '-1'
  710. name: Correlate input
  711. nconnections: '1'
  712. size: '128'
  713. srate: samp_rate
  714. stemplot: 'False'
  715. style1: '1'
  716. style10: '1'
  717. style2: '1'
  718. style3: '1'
  719. style4: '1'
  720. style5: '1'
  721. style6: '1'
  722. style7: '1'
  723. style8: '1'
  724. style9: '1'
  725. tr_chan: '0'
  726. tr_delay: '0.0'
  727. tr_level: '0.2'
  728. tr_mode: qtgui.TRIG_MODE_FREE
  729. tr_slope: qtgui.TRIG_SLOPE_POS
  730. tr_tag: '"packet_len"'
  731. type: float
  732. update_time: '0.10'
  733. width1: '1'
  734. width10: '1'
  735. width2: '1'
  736. width3: '1'
  737. width4: '1'
  738. width5: '1'
  739. width6: '1'
  740. width7: '1'
  741. width8: '1'
  742. width9: '1'
  743. ylabel: Amplitude
  744. ymax: '1.1'
  745. ymin: '-0.1'
  746. yunit: '""'
  747. states:
  748. bus_sink: false
  749. bus_source: false
  750. bus_structure: null
  751. coordinate: [536, 636.0]
  752. rotation: 0
  753. state: enabled
  754. - name: virtual_sink_0_0
  755. id: virtual_sink
  756. parameters:
  757. alias: ''
  758. comment: ''
  759. stream_id: r1
  760. states:
  761. bus_sink: false
  762. bus_source: false
  763. bus_structure: null
  764. coordinate: [1352, 244.0]
  765. rotation: 180
  766. state: true
  767. - name: virtual_source_2
  768. id: virtual_source
  769. parameters:
  770. alias: ''
  771. comment: ''
  772. stream_id: r1
  773. states:
  774. bus_sink: false
  775. bus_source: false
  776. bus_structure: null
  777. coordinate: [64, 548.0]
  778. rotation: 0
  779. state: true
  780. - name: zeromq_sub_source_0
  781. id: zeromq_sub_source
  782. parameters:
  783. address: tcp://127.0.0.1:49600
  784. affinity: ''
  785. alias: ''
  786. bind: 'False'
  787. comment: ''
  788. hwm: '-1'
  789. key: ''
  790. maxoutbuf: '0'
  791. minoutbuf: '0'
  792. pass_tags: 'False'
  793. timeout: '100'
  794. type: complex
  795. vlen: '1'
  796. states:
  797. bus_sink: false
  798. bus_source: false
  799. bus_structure: null
  800. coordinate: [16, 308.0]
  801. rotation: 0
  802. state: true
  803.  
  804. connections:
  805. - [analog_agc_xx_0, '0', digital_symbol_sync_xx_0, '0']
  806. - [analog_quadrature_demod_cf_0, '0', blocks_multiply_const_vxx_0, '0']
  807. - [analog_simple_squelch_cc_0, '0', analog_quadrature_demod_cf_0, '0']
  808. - [blocks_multiply_const_vxx_0, '0', analog_agc_xx_0, '0']
  809. - [blocks_repack_bits_bb_1_0, '0', digital_crc32_bb_0_0, '0']
  810. - [blocks_throttle2_0_0, '0', blocks_file_sink_0, '0']
  811. - [blocks_uchar_to_float_0_0, '0', qtgui_time_sink_x_0_2, '0']
  812. - [blocks_uchar_to_float_0_0_0, '0', qtgui_time_sink_x_0_0, '0']
  813. - [digital_binary_slicer_fb_0, '0', blocks_uchar_to_float_0_0, '0']
  814. - [digital_binary_slicer_fb_0, '0', digital_correlate_access_code_xx_ts_0, '0']
  815. - [digital_correlate_access_code_xx_ts_0, '0', blocks_repack_bits_bb_1_0, '0']
  816. - [digital_correlate_access_code_xx_ts_0, '0', blocks_uchar_to_float_0_0_0, '0']
  817. - [digital_crc32_bb_0_0, '0', blocks_throttle2_0_0, '0']
  818. - [digital_symbol_sync_xx_0, '0', virtual_sink_0_0, '0']
  819. - [freq_xlating_fir_filter_xxx_0, '0', analog_simple_squelch_cc_0, '0']
  820. - [virtual_source_2, '0', digital_binary_slicer_fb_0, '0']
  821. - [zeromq_sub_source_0, '0', freq_xlating_fir_filter_xxx_0, '0']
  822.  
  823. metadata:
  824. file_format: 1
  825. grc_version: 3.10.8.0
  826.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement