Advertisement
duggabe

pkt_fsk_xmt.grc

Dec 15th, 2021
250
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 16.68 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 xmt
  10. gen_cmake: 'On'
  11. gen_linking: dynamic
  12. generate_options: qt_gui
  13. hier_block_src_path: '.:'
  14. id: pkt_fsk_xmt
  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_xmt
  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: '48'
  41. states:
  42. bus_sink: false
  43. bus_source: false
  44. bus_structure: null
  45. coordinate: [192, 76.0]
  46. rotation: 0
  47. state: enabled
  48. - name: center
  49. id: variable
  50. parameters:
  51. comment: ''
  52. value: (mark+space)/2
  53. states:
  54. bus_sink: false
  55. bus_source: false
  56. bus_structure: null
  57. coordinate: [288, 12.0]
  58. rotation: 0
  59. state: enabled
  60. - name: hdr_format
  61. id: variable_header_format_default
  62. parameters:
  63. access_code: '11100001010110101110100010010011'
  64. bps: sps
  65. comment: ''
  66. threshold: thresh
  67. states:
  68. bus_sink: false
  69. bus_source: false
  70. bus_structure: null
  71. coordinate: [792, 12.0]
  72. rotation: 0
  73. state: enabled
  74. - name: inp_amp
  75. id: variable
  76. parameters:
  77. comment: ''
  78. value: (mark/vco_max)-vco_offset
  79. states:
  80. bus_sink: false
  81. bus_source: false
  82. bus_structure: null
  83. coordinate: [704, 12.0]
  84. rotation: 0
  85. state: true
  86. - name: mark
  87. id: variable
  88. parameters:
  89. comment: ''
  90. value: '1200'
  91. states:
  92. bus_sink: false
  93. bus_source: false
  94. bus_structure: null
  95. coordinate: [456, 12.0]
  96. rotation: 0
  97. state: true
  98. - name: phase_bw
  99. id: variable
  100. parameters:
  101. comment: ''
  102. value: '0.0628'
  103. states:
  104. bus_sink: false
  105. bus_source: false
  106. bus_structure: null
  107. coordinate: [480, 76.0]
  108. rotation: 0
  109. state: true
  110. - name: repeat
  111. id: variable
  112. parameters:
  113. comment: ''
  114. value: (int)(samp_rate/baud)
  115. states:
  116. bus_sink: false
  117. bus_source: false
  118. bus_structure: null
  119. coordinate: [264, 76.0]
  120. rotation: 0
  121. state: true
  122. - name: samp_rate
  123. id: variable
  124. parameters:
  125. comment: ''
  126. value: '48000'
  127. states:
  128. bus_sink: false
  129. bus_source: false
  130. bus_structure: null
  131. coordinate: [192, 12.0]
  132. rotation: 0
  133. state: enabled
  134. - name: space
  135. id: variable
  136. parameters:
  137. comment: ''
  138. value: '2200'
  139. states:
  140. bus_sink: false
  141. bus_source: false
  142. bus_structure: null
  143. coordinate: [536, 12.0]
  144. rotation: 0
  145. state: true
  146. - name: sps
  147. id: variable
  148. parameters:
  149. comment: ''
  150. value: '20'
  151. states:
  152. bus_sink: false
  153. bus_source: false
  154. bus_structure: null
  155. coordinate: [408, 76.0]
  156. rotation: 0
  157. state: enabled
  158. - name: thresh
  159. id: variable
  160. parameters:
  161. comment: ''
  162. value: '3'
  163. states:
  164. bus_sink: false
  165. bus_source: false
  166. bus_structure: null
  167. coordinate: [336, 76.0]
  168. rotation: 0
  169. state: enabled
  170. - name: vco_max
  171. id: variable
  172. parameters:
  173. comment: ''
  174. value: '2500'
  175. states:
  176. bus_sink: false
  177. bus_source: false
  178. bus_structure: null
  179. coordinate: [368, 12.0]
  180. rotation: 0
  181. state: true
  182. - name: vco_offset
  183. id: variable
  184. parameters:
  185. comment: ''
  186. value: space/vco_max
  187. states:
  188. bus_sink: false
  189. bus_source: false
  190. bus_structure: null
  191. coordinate: [616, 12.0]
  192. rotation: 0
  193. state: true
  194. - name: analog_quadrature_demod_cf_0
  195. id: analog_quadrature_demod_cf
  196. parameters:
  197. affinity: ''
  198. alias: ''
  199. comment: ''
  200. gain: '0.33'
  201. maxoutbuf: '0'
  202. minoutbuf: '0'
  203. states:
  204. bus_sink: false
  205. bus_source: false
  206. bus_structure: null
  207. coordinate: [192, 524.0]
  208. rotation: 0
  209. state: true
  210. - name: blocks_add_const_vxx_0
  211. id: blocks_add_const_vxx
  212. parameters:
  213. affinity: ''
  214. alias: ''
  215. comment: vco_offset
  216. const: vco_offset
  217. maxoutbuf: '0'
  218. minoutbuf: '0'
  219. type: float
  220. vlen: '1'
  221. states:
  222. bus_sink: false
  223. bus_source: false
  224. bus_structure: null
  225. coordinate: [600, 396.0]
  226. rotation: 0
  227. state: true
  228. - name: blocks_char_to_float_0
  229. id: blocks_char_to_float
  230. parameters:
  231. affinity: ''
  232. alias: ''
  233. comment: ''
  234. maxoutbuf: '0'
  235. minoutbuf: '0'
  236. scale: '1'
  237. vlen: '1'
  238. states:
  239. bus_sink: false
  240. bus_source: false
  241. bus_structure: null
  242. coordinate: [992, 580.0]
  243. rotation: 0
  244. state: true
  245. - name: blocks_message_strobe_0
  246. id: blocks_message_strobe
  247. parameters:
  248. affinity: ''
  249. alias: ''
  250. comment: ''
  251. maxoutbuf: '0'
  252. minoutbuf: '0'
  253. msg: pmt.cons(pmt.PMT_NIL,pmt.init_u8vector(9,(71,78,85,32,82,97,100,105,111)))
  254. period: '5000'
  255. states:
  256. bus_sink: false
  257. bus_source: false
  258. bus_structure: null
  259. coordinate: [64, 172.0]
  260. rotation: 0
  261. state: enabled
  262. - name: blocks_multiply_const_vxx_0
  263. id: blocks_multiply_const_vxx
  264. parameters:
  265. affinity: ''
  266. alias: ''
  267. comment: inp_amp
  268. const: inp_amp
  269. maxoutbuf: '0'
  270. minoutbuf: '0'
  271. type: float
  272. vlen: '1'
  273. states:
  274. bus_sink: false
  275. bus_source: false
  276. bus_structure: null
  277. coordinate: [432, 396.0]
  278. rotation: 0
  279. state: true
  280. - name: blocks_repack_bits_bb_1_0
  281. id: blocks_repack_bits_bb
  282. parameters:
  283. affinity: ''
  284. alias: ''
  285. align_output: 'False'
  286. comment: ''
  287. endianness: gr.GR_MSB_FIRST
  288. k: '8'
  289. l: '1'
  290. len_tag_key: ''
  291. maxoutbuf: '0'
  292. minoutbuf: '0'
  293. states:
  294. bus_sink: false
  295. bus_source: false
  296. bus_structure: null
  297. coordinate: [200, 252.0]
  298. rotation: 0
  299. state: true
  300. - name: blocks_repeat_0
  301. id: blocks_repeat
  302. parameters:
  303. affinity: ''
  304. alias: ''
  305. comment: ''
  306. interp: repeat
  307. maxoutbuf: '0'
  308. minoutbuf: '0'
  309. type: byte
  310. vlen: '1'
  311. states:
  312. bus_sink: false
  313. bus_source: false
  314. bus_structure: null
  315. coordinate: [408, 260.0]
  316. rotation: 0
  317. state: enabled
  318. - name: blocks_throttle_0
  319. id: blocks_throttle
  320. parameters:
  321. affinity: ''
  322. alias: ''
  323. comment: ''
  324. ignoretag: 'True'
  325. maxoutbuf: '0'
  326. minoutbuf: '0'
  327. samples_per_second: samp_rate
  328. type: complex
  329. vlen: '1'
  330. states:
  331. bus_sink: false
  332. bus_source: false
  333. bus_structure: null
  334. coordinate: [896, 316.0]
  335. rotation: 0
  336. state: true
  337. - name: blocks_uchar_to_float_0
  338. id: blocks_uchar_to_float
  339. parameters:
  340. affinity: ''
  341. alias: ''
  342. comment: ''
  343. maxoutbuf: '0'
  344. minoutbuf: '0'
  345. states:
  346. bus_sink: false
  347. bus_source: false
  348. bus_structure: null
  349. coordinate: [576, 264.0]
  350. rotation: 0
  351. state: enabled
  352. - name: blocks_vco_c_0
  353. id: blocks_vco_c
  354. parameters:
  355. affinity: ''
  356. alias: ''
  357. amplitude: '0.75'
  358. comment: ''
  359. maxoutbuf: '0'
  360. minoutbuf: '0'
  361. samp_rate: samp_rate
  362. sensitivity: '15708'
  363. states:
  364. bus_sink: false
  365. bus_source: false
  366. bus_structure: null
  367. coordinate: [760, 380.0]
  368. rotation: 0
  369. state: true
  370. - name: digital_binary_slicer_fb_0
  371. id: digital_binary_slicer_fb
  372. parameters:
  373. affinity: ''
  374. alias: ''
  375. comment: ''
  376. maxoutbuf: '0'
  377. minoutbuf: '0'
  378. states:
  379. bus_sink: false
  380. bus_source: false
  381. bus_structure: null
  382. coordinate: [824, 584.0]
  383. rotation: 0
  384. state: enabled
  385. - name: digital_crc32_async_bb_1
  386. id: digital_crc32_async_bb
  387. parameters:
  388. affinity: ''
  389. alias: ''
  390. check: 'False'
  391. comment: ''
  392. maxoutbuf: '0'
  393. minoutbuf: '0'
  394. states:
  395. bus_sink: false
  396. bus_source: false
  397. bus_structure: null
  398. coordinate: [320, 180.0]
  399. rotation: 0
  400. state: enabled
  401. - name: digital_symbol_sync_xx_0
  402. id: digital_symbol_sync_xx
  403. parameters:
  404. affinity: ''
  405. alias: ''
  406. comment: ''
  407. constellation: digital.constellation_bpsk().base()
  408. damping: '1.0'
  409. loop_bw: phase_bw
  410. max_dev: '1.5'
  411. maxoutbuf: '0'
  412. minoutbuf: '0'
  413. nfilters: '128'
  414. osps: '1'
  415. pfb_mf_taps: '[]'
  416. resamp_type: digital.IR_MMSE_8TAP
  417. sps: sps
  418. ted_gain: '1.0'
  419. ted_type: digital.TED_SIGNAL_TIMES_SLOPE_ML
  420. type: ff
  421. states:
  422. bus_sink: false
  423. bus_source: false
  424. bus_structure: null
  425. coordinate: [408, 596.0]
  426. rotation: 0
  427. state: disabled
  428. - name: epy_block_0
  429. id: epy_block
  430. parameters:
  431. _source_code: "\"\"\"\nEmbedded Python Block\n\"\"\"\n\nimport numpy as np\nfrom\
  432. \ gnuradio import gr\nimport pmt\n\nclass blk(gr.sync_block):\n \"\"\"Packet\
  433. \ Format\"\"\"\n\n def __init__(self):\n gr.sync_block.__init__(self,\n\
  434. \ name = \"Packet Format\",\n in_sig = None,\n \
  435. \ out_sig = None)\n self.message_port_register_in(pmt.intern('PDU_in'))\n\
  436. \ self.message_port_register_out(pmt.intern('PDU_out'))\n self.set_msg_handler(pmt.intern('PDU_in'),\
  437. \ self.handle_msg)\n\n def handle_msg(self, msg):\n inMsg = pmt.to_python\
  438. \ (msg)\n pld = inMsg[1]\n # print (pld)\n mLen = len(pld)\n\
  439. \ # print (mLen)\n if (mLen > 0):\n char_list = [85,85,85,85,225,90,232,147]\n\
  440. \ char_list.append (mLen >> 8)\n char_list.append (mLen\
  441. \ & 255)\n char_list.append (mLen >> 8)\n char_list.append\
  442. \ (mLen & 255)\n char_list.extend (pld)\n # print (char_list)\n\
  443. \ out_len = len(char_list)\n # print (out_len)\n \
  444. \ self.message_port_pub(pmt.intern('PDU_out'), pmt.cons(pmt.PMT_NIL,pmt.init_u8vector(out_len,(char_list))))\n"
  445. affinity: ''
  446. alias: ''
  447. comment: ''
  448. maxoutbuf: '0'
  449. minoutbuf: '0'
  450. states:
  451. _io_cache: ('Packet Format', 'blk', [], [('PDU_in', 'message', 1)], [('PDU_out',
  452. 'message', 1)], 'Packet Format', [])
  453. bus_sink: false
  454. bus_source: false
  455. bus_structure: null
  456. coordinate: [536, 184.0]
  457. rotation: 0
  458. state: true
  459. - name: freq_xlating_fir_filter_xxx_0
  460. id: freq_xlating_fir_filter_xxx
  461. parameters:
  462. affinity: ''
  463. alias: ''
  464. center_freq: center
  465. comment: ''
  466. decim: '50'
  467. maxoutbuf: '0'
  468. minoutbuf: '0'
  469. samp_rate: samp_rate
  470. taps: firdes.low_pass(1.0,samp_rate,3000,400)
  471. type: ccf
  472. states:
  473. bus_sink: false
  474. bus_source: false
  475. bus_structure: null
  476. coordinate: [1080, 308.0]
  477. rotation: 0
  478. state: enabled
  479. - name: low_pass_filter_0
  480. id: low_pass_filter
  481. parameters:
  482. affinity: ''
  483. alias: ''
  484. beta: '6.76'
  485. comment: ''
  486. cutoff_freq: space+1000
  487. decim: '1'
  488. gain: '1'
  489. interp: '1'
  490. maxoutbuf: '0'
  491. minoutbuf: '0'
  492. samp_rate: samp_rate
  493. type: fir_filter_fff
  494. width: '1000'
  495. win: window.WIN_HAMMING
  496. states:
  497. bus_sink: false
  498. bus_source: false
  499. bus_structure: null
  500. coordinate: [240, 348.0]
  501. rotation: 0
  502. state: true
  503. - name: note_0
  504. id: note
  505. parameters:
  506. alias: ''
  507. comment: ''
  508. note: sample rate 960
  509. states:
  510. bus_sink: false
  511. bus_source: false
  512. bus_structure: null
  513. coordinate: [192, 580.0]
  514. rotation: 0
  515. state: enabled
  516. - name: pdu_pdu_to_tagged_stream_0
  517. id: pdu_pdu_to_tagged_stream
  518. parameters:
  519. affinity: ''
  520. alias: ''
  521. comment: ''
  522. maxoutbuf: '0'
  523. minoutbuf: '0'
  524. tag: packet_len
  525. type: byte
  526. states:
  527. bus_sink: false
  528. bus_source: false
  529. bus_structure: null
  530. coordinate: [752, 180.0]
  531. rotation: 0
  532. state: true
  533. - name: qtgui_time_sink_x_0
  534. id: qtgui_time_sink_x
  535. parameters:
  536. affinity: ''
  537. alias: ''
  538. alpha1: '1.0'
  539. alpha10: '1.0'
  540. alpha2: '1.0'
  541. alpha3: '1.0'
  542. alpha4: '1.0'
  543. alpha5: '1.0'
  544. alpha6: '1.0'
  545. alpha7: '1.0'
  546. alpha8: '1.0'
  547. alpha9: '1.0'
  548. autoscale: 'False'
  549. axislabels: 'True'
  550. color1: blue
  551. color10: dark blue
  552. color2: red
  553. color3: green
  554. color4: black
  555. color5: cyan
  556. color6: magenta
  557. color7: yellow
  558. color8: dark red
  559. color9: dark green
  560. comment: ''
  561. ctrlpanel: 'True'
  562. entags: 'True'
  563. grid: 'False'
  564. gui_hint: ''
  565. label1: Signal 1
  566. label10: Signal 10
  567. label2: Signal 2
  568. label3: Signal 3
  569. label4: Signal 4
  570. label5: Signal 5
  571. label6: Signal 6
  572. label7: Signal 7
  573. label8: Signal 8
  574. label9: Signal 9
  575. legend: 'True'
  576. marker1: '-1'
  577. marker10: '-1'
  578. marker2: '-1'
  579. marker3: '-1'
  580. marker4: '-1'
  581. marker5: '-1'
  582. marker6: '-1'
  583. marker7: '-1'
  584. marker8: '-1'
  585. marker9: '-1'
  586. name: '""'
  587. nconnections: '2'
  588. size: '1024'
  589. srate: '960'
  590. stemplot: 'False'
  591. style1: '1'
  592. style10: '1'
  593. style2: '1'
  594. style3: '1'
  595. style4: '1'
  596. style5: '1'
  597. style6: '1'
  598. style7: '1'
  599. style8: '1'
  600. style9: '1'
  601. tr_chan: '0'
  602. tr_delay: '0'
  603. tr_level: '0.5'
  604. tr_mode: qtgui.TRIG_MODE_FREE
  605. tr_slope: qtgui.TRIG_SLOPE_NEG
  606. tr_tag: '"packet_len"'
  607. type: float
  608. update_time: '0.10'
  609. width1: '1'
  610. width10: '1'
  611. width2: '1'
  612. width3: '1'
  613. width4: '1'
  614. width5: '1'
  615. width6: '1'
  616. width7: '1'
  617. width8: '1'
  618. width9: '1'
  619. ylabel: Amplitude
  620. ymax: '1.5'
  621. ymin: '-1'
  622. yunit: '""'
  623. states:
  624. bus_sink: false
  625. bus_source: false
  626. bus_structure: null
  627. coordinate: [1184, 524.0]
  628. rotation: 0
  629. state: enabled
  630. - name: virtual_sink_0
  631. id: virtual_sink
  632. parameters:
  633. alias: ''
  634. comment: ''
  635. stream_id: '"xmt_data"'
  636. states:
  637. bus_sink: false
  638. bus_source: false
  639. bus_structure: null
  640. coordinate: [744, 260.0]
  641. rotation: 0
  642. state: true
  643. - name: virtual_sink_1
  644. id: virtual_sink
  645. parameters:
  646. alias: ''
  647. comment: ''
  648. stream_id: t1
  649. states:
  650. bus_sink: false
  651. bus_source: false
  652. bus_structure: null
  653. coordinate: [1320, 332.0]
  654. rotation: 0
  655. state: true
  656. - name: virtual_sink_1_0
  657. id: virtual_sink
  658. parameters:
  659. alias: ''
  660. comment: ''
  661. stream_id: pkt_out
  662. states:
  663. bus_sink: false
  664. bus_source: false
  665. bus_structure: null
  666. coordinate: [984, 180.0]
  667. rotation: 0
  668. state: true
  669. - name: virtual_source_0
  670. id: virtual_source
  671. parameters:
  672. alias: ''
  673. comment: ''
  674. stream_id: '"xmt_data"'
  675. states:
  676. bus_sink: false
  677. bus_source: false
  678. bus_structure: null
  679. coordinate: [32, 396.0]
  680. rotation: 0
  681. state: true
  682. - name: virtual_source_1
  683. id: virtual_source
  684. parameters:
  685. alias: ''
  686. comment: ''
  687. stream_id: t1
  688. states:
  689. bus_sink: false
  690. bus_source: false
  691. bus_structure: null
  692. coordinate: [24, 524.0]
  693. rotation: 0
  694. state: true
  695. - name: virtual_source_1_0
  696. id: virtual_source
  697. parameters:
  698. alias: ''
  699. comment: ''
  700. stream_id: pkt_out
  701. states:
  702. bus_sink: false
  703. bus_source: false
  704. bus_structure: null
  705. coordinate: [24, 260.0]
  706. rotation: 0
  707. state: true
  708.  
  709. connections:
  710. - [analog_quadrature_demod_cf_0, '0', digital_binary_slicer_fb_0, '0']
  711. - [analog_quadrature_demod_cf_0, '0', digital_symbol_sync_xx_0, '0']
  712. - [analog_quadrature_demod_cf_0, '0', qtgui_time_sink_x_0, '0']
  713. - [blocks_add_const_vxx_0, '0', blocks_vco_c_0, '0']
  714. - [blocks_char_to_float_0, '0', qtgui_time_sink_x_0, '1']
  715. - [blocks_message_strobe_0, strobe, digital_crc32_async_bb_1, in]
  716. - [blocks_multiply_const_vxx_0, '0', blocks_add_const_vxx_0, '0']
  717. - [blocks_repack_bits_bb_1_0, '0', blocks_repeat_0, '0']
  718. - [blocks_repeat_0, '0', blocks_uchar_to_float_0, '0']
  719. - [blocks_throttle_0, '0', freq_xlating_fir_filter_xxx_0, '0']
  720. - [blocks_uchar_to_float_0, '0', virtual_sink_0, '0']
  721. - [blocks_vco_c_0, '0', blocks_throttle_0, '0']
  722. - [digital_binary_slicer_fb_0, '0', blocks_char_to_float_0, '0']
  723. - [digital_crc32_async_bb_1, out, epy_block_0, PDU_in]
  724. - [digital_symbol_sync_xx_0, '0', digital_binary_slicer_fb_0, '0']
  725. - [epy_block_0, PDU_out, pdu_pdu_to_tagged_stream_0, pdus]
  726. - [freq_xlating_fir_filter_xxx_0, '0', virtual_sink_1, '0']
  727. - [low_pass_filter_0, '0', blocks_multiply_const_vxx_0, '0']
  728. - [pdu_pdu_to_tagged_stream_0, '0', virtual_sink_1_0, '0']
  729. - [virtual_source_0, '0', low_pass_filter_0, '0']
  730. - [virtual_source_1, '0', analog_quadrature_demod_cf_0, '0']
  731. - [virtual_source_1_0, '0', blocks_repack_bits_bb_1_0, '0']
  732.  
  733. metadata:
  734. file_format: 1
  735.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement