Advertisement
m4rtinpf

packet_tx.grc

Nov 9th, 2021
181
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. options:
  2. parameters:
  3. author: ''
  4. category: Packet Operators
  5. cmake_opt: ''
  6. comment: ''
  7. copyright: ''
  8. description: ''
  9. gen_cmake: 'On'
  10. gen_linking: dynamic
  11. generate_options: hb
  12. hier_block_src_path: '.:'
  13. id: packet_tx
  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: ''
  25. window_size: ''
  26. states:
  27. bus_sink: false
  28. bus_source: false
  29. bus_structure: null
  30. coordinate: [8, 11]
  31. rotation: 0
  32. state: enabled
  33.  
  34. blocks:
  35. - name: filt_delay
  36. id: variable
  37. parameters:
  38. comment: ''
  39. value: int(1+(taps_per_filt-1)//2)
  40. states:
  41. bus_sink: false
  42. bus_source: false
  43. bus_structure: null
  44. coordinate: [832, 444.0]
  45. rotation: 0
  46. state: enabled
  47. - name: nfilts
  48. id: variable
  49. parameters:
  50. comment: ''
  51. value: '32'
  52. states:
  53. bus_sink: false
  54. bus_source: false
  55. bus_structure: null
  56. coordinate: [1240, 84.0]
  57. rotation: 0
  58. state: enabled
  59. - name: taps_per_filt
  60. id: variable
  61. parameters:
  62. comment: ''
  63. value: len(psf_taps)/nfilts
  64. states:
  65. bus_sink: false
  66. bus_source: false
  67. bus_structure: null
  68. coordinate: [736, 444.0]
  69. rotation: 0
  70. state: enabled
  71. - name: blocks_pdu_to_tagged_stream_0
  72. id: blocks_pdu_to_tagged_stream
  73. parameters:
  74. affinity: ''
  75. alias: ''
  76. comment: ''
  77. maxoutbuf: '0'
  78. minoutbuf: '0'
  79. tag: packet_len
  80. type: byte
  81. states:
  82. bus_sink: false
  83. bus_source: false
  84. bus_structure: null
  85. coordinate: [544, 252.0]
  86. rotation: 0
  87. state: enabled
  88. - name: blocks_pdu_to_tagged_stream_0_0
  89. id: blocks_pdu_to_tagged_stream
  90. parameters:
  91. affinity: ''
  92. alias: ''
  93. comment: ''
  94. maxoutbuf: '0'
  95. minoutbuf: '0'
  96. tag: packet_len
  97. type: byte
  98. states:
  99. bus_sink: false
  100. bus_source: false
  101. bus_structure: null
  102. coordinate: [544, 180.0]
  103. rotation: 0
  104. state: enabled
  105. - name: blocks_repack_bits_bb_0
  106. id: blocks_repack_bits_bb
  107. parameters:
  108. affinity: ''
  109. alias: ''
  110. align_output: 'False'
  111. comment: ''
  112. endianness: gr.GR_MSB_FIRST
  113. k: '8'
  114. l: hdr_const.bits_per_symbol()
  115. len_tag_key: packet_len
  116. maxoutbuf: '0'
  117. minoutbuf: '0'
  118. states:
  119. bus_sink: false
  120. bus_source: false
  121. bus_structure: null
  122. coordinate: [768, 172.0]
  123. rotation: 0
  124. state: enabled
  125. - name: blocks_repack_bits_bb_0_0
  126. id: blocks_repack_bits_bb
  127. parameters:
  128. affinity: ''
  129. alias: ''
  130. align_output: 'False'
  131. comment: ''
  132. endianness: gr.GR_MSB_FIRST
  133. k: '8'
  134. l: pld_const.bits_per_symbol()
  135. len_tag_key: packet_len
  136. maxoutbuf: '0'
  137. minoutbuf: '0'
  138. states:
  139. bus_sink: false
  140. bus_source: false
  141. bus_structure: null
  142. coordinate: [768, 244.0]
  143. rotation: 0
  144. state: enabled
  145. - name: blocks_tagged_stream_multiply_length_0
  146. id: blocks_tagged_stream_multiply_length
  147. parameters:
  148. affinity: ''
  149. alias: ''
  150. c: sps
  151. comment: ''
  152. lengthtagname: packet_len
  153. maxoutbuf: '0'
  154. minoutbuf: '0'
  155. type: complex
  156. vlen: '1'
  157. states:
  158. bus_sink: false
  159. bus_source: false
  160. bus_structure: null
  161. coordinate: [992, 376.0]
  162. rotation: 0
  163. state: enabled
  164. - name: blocks_tagged_stream_mux_0
  165. id: blocks_tagged_stream_mux
  166. parameters:
  167. affinity: ''
  168. alias: ''
  169. comment: ''
  170. lengthtagname: packet_len
  171. maxoutbuf: '0'
  172. minoutbuf: '0'
  173. ninputs: '2'
  174. tag_preserve_head_pos: '0'
  175. type: complex
  176. vlen: '1'
  177. states:
  178. bus_sink: false
  179. bus_source: false
  180. bus_structure: null
  181. coordinate: [216, 360.0]
  182. rotation: 0
  183. state: enabled
  184. - name: digital_burst_shaper_xx_0
  185. id: digital_burst_shaper_xx
  186. parameters:
  187. affinity: ''
  188. alias: ''
  189. comment: ''
  190. insert_phasing: 'True'
  191. length_tag_name: packet_len
  192. maxoutbuf: '0'
  193. minoutbuf: '0'
  194. post_padding: filt_delay
  195. pre_padding: '0'
  196. type: complex
  197. window: firdes.window(firdes.WIN_HANN, 20, 0)
  198. states:
  199. bus_sink: false
  200. bus_source: false
  201. bus_structure: null
  202. coordinate: [472, 340.0]
  203. rotation: 0
  204. state: enabled
  205. - name: digital_chunks_to_symbols_xx_0
  206. id: digital_chunks_to_symbols_xx
  207. parameters:
  208. affinity: ''
  209. alias: ''
  210. comment: ''
  211. dimension: '1'
  212. in_type: byte
  213. maxoutbuf: '0'
  214. minoutbuf: '0'
  215. num_ports: '1'
  216. out_type: complex
  217. symbol_table: hdr_const.points()
  218. states:
  219. bus_sink: false
  220. bus_source: false
  221. bus_structure: null
  222. coordinate: [1104, 184.0]
  223. rotation: 0
  224. state: enabled
  225. - name: digital_chunks_to_symbols_xx_0_0
  226. id: digital_chunks_to_symbols_xx
  227. parameters:
  228. affinity: ''
  229. alias: ''
  230. comment: ''
  231. dimension: '1'
  232. in_type: byte
  233. maxoutbuf: '0'
  234. minoutbuf: '0'
  235. num_ports: '1'
  236. out_type: complex
  237. symbol_table: pld_const.points()
  238. states:
  239. bus_sink: false
  240. bus_source: false
  241. bus_structure: null
  242. coordinate: [1104, 256.0]
  243. rotation: 0
  244. state: enabled
  245. - name: digital_crc32_async_bb_1
  246. id: digital_crc32_async_bb
  247. parameters:
  248. affinity: ''
  249. alias: ''
  250. check: 'False'
  251. comment: ''
  252. maxoutbuf: '0'
  253. minoutbuf: '0'
  254. states:
  255. bus_sink: false
  256. bus_source: false
  257. bus_structure: null
  258. coordinate: [312, 107]
  259. rotation: 180
  260. state: enabled
  261. - name: digital_map_bb_1
  262. id: digital_map_bb
  263. parameters:
  264. affinity: ''
  265. alias: ''
  266. comment: ''
  267. map: hdr_const.pre_diff_code()
  268. maxoutbuf: '0'
  269. minoutbuf: '0'
  270. states:
  271. bus_sink: false
  272. bus_source: false
  273. bus_structure: null
  274. coordinate: [960, 180.0]
  275. rotation: 0
  276. state: enabled
  277. - name: digital_map_bb_1_0
  278. id: digital_map_bb
  279. parameters:
  280. affinity: ''
  281. alias: ''
  282. comment: ''
  283. map: pld_const.pre_diff_code()
  284. maxoutbuf: '0'
  285. minoutbuf: '0'
  286. states:
  287. bus_sink: false
  288. bus_source: false
  289. bus_structure: null
  290. coordinate: [960, 252.0]
  291. rotation: 0
  292. state: enabled
  293. - name: digital_protocol_formatter_async_0
  294. id: digital_protocol_formatter_async
  295. parameters:
  296. affinity: ''
  297. alias: ''
  298. comment: ''
  299. format: hdr_format
  300. maxoutbuf: '0'
  301. minoutbuf: '0'
  302. states:
  303. bus_sink: false
  304. bus_source: false
  305. bus_structure: null
  306. coordinate: [56, 225]
  307. rotation: 0
  308. state: enabled
  309. - name: fec_async_encoder_0
  310. id: fec_async_encoder
  311. parameters:
  312. affinity: ''
  313. alias: ''
  314. comment: ''
  315. encoder: pld_enc
  316. maxoutbuf: '0'
  317. minoutbuf: '0'
  318. mtu: '1500'
  319. packed: 'True'
  320. rev_pack: 'False'
  321. rev_unpack: 'False'
  322. states:
  323. bus_sink: false
  324. bus_source: false
  325. bus_structure: null
  326. coordinate: [64, 99]
  327. rotation: 180
  328. state: enabled
  329. - name: fec_async_encoder_0_0
  330. id: fec_async_encoder
  331. parameters:
  332. affinity: ''
  333. alias: ''
  334. comment: ''
  335. encoder: hdr_enc
  336. maxoutbuf: '0'
  337. minoutbuf: '0'
  338. mtu: '1500'
  339. packed: 'True'
  340. rev_pack: 'False'
  341. rev_unpack: 'False'
  342. states:
  343. bus_sink: false
  344. bus_source: false
  345. bus_structure: null
  346. coordinate: [312, 172.0]
  347. rotation: 0
  348. state: enabled
  349. - name: hdr_const
  350. id: parameter
  351. parameters:
  352. alias: ''
  353. comment: ''
  354. hide: none
  355. label: Header constellation
  356. short_id: ''
  357. type: ''
  358. value: digital.constellation_calcdist((digital.psk_2()[0]), (digital.psk_2()[1]),
  359. 2, 1).base()
  360. states:
  361. bus_sink: false
  362. bus_source: false
  363. bus_structure: null
  364. coordinate: [552, 11]
  365. rotation: 0
  366. state: enabled
  367. - name: hdr_enc
  368. id: parameter
  369. parameters:
  370. alias: ''
  371. comment: ''
  372. hide: none
  373. label: Header FEC encoder
  374. short_id: ''
  375. type: ''
  376. value: ' fec.dummy_encoder_make(8000)'
  377. states:
  378. bus_sink: false
  379. bus_source: false
  380. bus_structure: null
  381. coordinate: [192, 11]
  382. rotation: 0
  383. state: enabled
  384. - name: hdr_format
  385. id: parameter
  386. parameters:
  387. alias: ''
  388. comment: ''
  389. hide: none
  390. label: Header Formatter
  391. short_id: ''
  392. type: ''
  393. value: digital.header_format_default(digital.packet_utils.default_access_code,
  394. 0)
  395. states:
  396. bus_sink: false
  397. bus_source: false
  398. bus_structure: null
  399. coordinate: [904, 11]
  400. rotation: 0
  401. state: enabled
  402. - name: mod_header
  403. id: virtual_sink
  404. parameters:
  405. alias: ''
  406. comment: ''
  407. stream_id: Mod Header
  408. states:
  409. bus_sink: false
  410. bus_source: false
  411. bus_structure: null
  412. coordinate: [1296, 180.0]
  413. rotation: 0
  414. state: enabled
  415. - name: mod_payload
  416. id: virtual_sink
  417. parameters:
  418. alias: ''
  419. comment: ''
  420. stream_id: Mod Payload
  421. states:
  422. bus_sink: false
  423. bus_source: false
  424. bus_structure: null
  425. coordinate: [1296, 252.0]
  426. rotation: 0
  427. state: enabled
  428. - name: pad_sink_0
  429. id: pad_sink
  430. parameters:
  431. affinity: ''
  432. alias: ''
  433. comment: ''
  434. label: out
  435. num_streams: '1'
  436. optional: 'False'
  437. type: complex
  438. vlen: '1'
  439. states:
  440. bus_sink: false
  441. bus_source: false
  442. bus_structure: null
  443. coordinate: [1280, 388.0]
  444. rotation: 0
  445. state: enabled
  446. - name: pad_sink_1
  447. id: pad_sink
  448. parameters:
  449. affinity: ''
  450. alias: ''
  451. comment: ''
  452. label: postcrc
  453. num_streams: '1'
  454. optional: 'True'
  455. type: message
  456. vlen: '1'
  457. states:
  458. bus_sink: false
  459. bus_source: false
  460. bus_structure: null
  461. coordinate: [144, 163]
  462. rotation: 180
  463. state: enabled
  464. - name: pad_sink_2
  465. id: pad_sink
  466. parameters:
  467. affinity: ''
  468. alias: ''
  469. comment: ''
  470. label: mux
  471. num_streams: '1'
  472. optional: 'True'
  473. type: complex
  474. vlen: '1'
  475. states:
  476. bus_sink: false
  477. bus_source: false
  478. bus_structure: null
  479. coordinate: [472, 508.0]
  480. rotation: 0
  481. state: enabled
  482. - name: pad_sink_3
  483. id: pad_sink
  484. parameters:
  485. affinity: ''
  486. alias: ''
  487. comment: ''
  488. label: burst
  489. num_streams: '1'
  490. optional: 'True'
  491. type: complex
  492. vlen: '1'
  493. states:
  494. bus_sink: false
  495. bus_source: false
  496. bus_structure: null
  497. coordinate: [736, 508.0]
  498. rotation: 0
  499. state: enabled
  500. - name: pad_source_0
  501. id: pad_source
  502. parameters:
  503. affinity: ''
  504. alias: ''
  505. comment: ''
  506. label: in
  507. maxoutbuf: '0'
  508. minoutbuf: '0'
  509. num_streams: '1'
  510. optional: 'False'
  511. type: message
  512. vlen: '1'
  513. states:
  514. bus_sink: false
  515. bus_source: false
  516. bus_structure: null
  517. coordinate: [504, 107]
  518. rotation: 180
  519. state: enabled
  520. - name: pfb_arb_resampler_xxx_0
  521. id: pfb_arb_resampler_xxx
  522. parameters:
  523. affinity: ''
  524. alias: ''
  525. atten: '100'
  526. comment: ''
  527. maxoutbuf: '0'
  528. minoutbuf: '0'
  529. nfilts: nfilts
  530. rrate: sps
  531. samp_delay: filt_delay
  532. taps: psf_taps
  533. type: ccf
  534. states:
  535. bus_sink: false
  536. bus_source: false
  537. bus_structure: null
  538. coordinate: [728, 348.0]
  539. rotation: 0
  540. state: enabled
  541. - name: pld_const
  542. id: parameter
  543. parameters:
  544. alias: ''
  545. comment: ''
  546. hide: none
  547. label: Payload constellation
  548. short_id: ''
  549. type: ''
  550. value: digital.constellation_calcdist((digital.psk_2()[0]), (digital.psk_2()[1]),
  551. 2, 1).base()
  552. states:
  553. bus_sink: false
  554. bus_source: false
  555. bus_structure: null
  556. coordinate: [728, 11]
  557. rotation: 0
  558. state: enabled
  559. - name: pld_enc
  560. id: parameter
  561. parameters:
  562. alias: ''
  563. comment: ''
  564. hide: none
  565. label: Payload FEC encoder
  566. short_id: ''
  567. type: ''
  568. value: ' fec.dummy_encoder_make(8000)'
  569. states:
  570. bus_sink: false
  571. bus_source: false
  572. bus_structure: null
  573. coordinate: [368, 11]
  574. rotation: 0
  575. state: enabled
  576. - name: psf_taps
  577. id: parameter
  578. parameters:
  579. alias: ''
  580. comment: ''
  581. hide: none
  582. label: Pulse Shape Filter
  583. short_id: ''
  584. type: ''
  585. value: '[0,]'
  586. states:
  587. bus_sink: false
  588. bus_source: false
  589. bus_structure: null
  590. coordinate: [1240, 11]
  591. rotation: 0
  592. state: enabled
  593. - name: rx_mod_header
  594. id: virtual_source
  595. parameters:
  596. alias: ''
  597. comment: ''
  598. stream_id: Mod Header
  599. states:
  600. bus_sink: false
  601. bus_source: false
  602. bus_structure: null
  603. coordinate: [16, 331]
  604. rotation: 0
  605. state: enabled
  606. - name: rx_mod_payload
  607. id: virtual_source
  608. parameters:
  609. alias: ''
  610. comment: ''
  611. stream_id: Mod Payload
  612. states:
  613. bus_sink: false
  614. bus_source: false
  615. bus_structure: null
  616. coordinate: [16, 388.0]
  617. rotation: 0
  618. state: enabled
  619. - name: sps
  620. id: parameter
  621. parameters:
  622. alias: ''
  623. comment: ''
  624. hide: none
  625. label: Samples per Symbol
  626. short_id: ''
  627. type: eng_float
  628. value: '2'
  629. states:
  630. bus_sink: false
  631. bus_source: false
  632. bus_structure: null
  633. coordinate: [1080, 11]
  634. rotation: 0
  635. state: enabled
  636.  
  637. connections:
  638. - [blocks_pdu_to_tagged_stream_0, '0', blocks_repack_bits_bb_0_0, '0']
  639. - [blocks_pdu_to_tagged_stream_0_0, '0', blocks_repack_bits_bb_0, '0']
  640. - [blocks_repack_bits_bb_0, '0', digital_map_bb_1, '0']
  641. - [blocks_repack_bits_bb_0_0, '0', digital_map_bb_1_0, '0']
  642. - [blocks_tagged_stream_multiply_length_0, '0', pad_sink_0, '0']
  643. - [blocks_tagged_stream_mux_0, '0', digital_burst_shaper_xx_0, '0']
  644. - [blocks_tagged_stream_mux_0, '0', pad_sink_2, '0']
  645. - [digital_burst_shaper_xx_0, '0', pad_sink_3, '0']
  646. - [digital_burst_shaper_xx_0, '0', pfb_arb_resampler_xxx_0, '0']
  647. - [digital_chunks_to_symbols_xx_0, '0', mod_header, '0']
  648. - [digital_chunks_to_symbols_xx_0_0, '0', mod_payload, '0']
  649. - [digital_crc32_async_bb_1, out, fec_async_encoder_0, in]
  650. - [digital_crc32_async_bb_1, out, pad_sink_1, in]
  651. - [digital_map_bb_1, '0', digital_chunks_to_symbols_xx_0, '0']
  652. - [digital_map_bb_1_0, '0', digital_chunks_to_symbols_xx_0_0, '0']
  653. - [digital_protocol_formatter_async_0, header, fec_async_encoder_0_0, in]
  654. - [digital_protocol_formatter_async_0, payload, blocks_pdu_to_tagged_stream_0, pdus]
  655. - [fec_async_encoder_0, out, digital_protocol_formatter_async_0, in]
  656. - [fec_async_encoder_0_0, out, blocks_pdu_to_tagged_stream_0_0, pdus]
  657. - [pad_source_0, out, digital_crc32_async_bb_1, in]
  658. - [pfb_arb_resampler_xxx_0, '0', blocks_tagged_stream_multiply_length_0, '0']
  659. - [rx_mod_header, '0', blocks_tagged_stream_mux_0, '0']
  660. - [rx_mod_payload, '0', blocks_tagged_stream_mux_0, '1']
  661.  
  662. metadata:
  663. file_format: 1
Advertisement
Advertisement
Advertisement
RAW Paste Data Copied
Advertisement