Advertisement
duggabe

str_pkt_1.grc

Feb 6th, 2023 (edited)
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.30 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: Baseband stream packets
  10. gen_cmake: 'On'
  11. gen_linking: dynamic
  12. generate_options: no_gui
  13. hier_block_src_path: '.:'
  14. id: str_pkt_1
  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: str_pkt_1
  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: hdr_format
  37. id: variable
  38. parameters:
  39. comment: header_format_crc
  40. value: digital.header_format_crc(len_key, num_key)
  41. states:
  42. bus_sink: false
  43. bus_source: false
  44. bus_structure: null
  45. coordinate: [528, 12.0]
  46. rotation: 0
  47. state: enabled
  48. - name: len_key
  49. id: variable
  50. parameters:
  51. comment: ''
  52. value: '"packet_len"'
  53. states:
  54. bus_sink: false
  55. bus_source: false
  56. bus_structure: null
  57. coordinate: [296, 12.0]
  58. rotation: 0
  59. state: enabled
  60. - name: num_key
  61. id: variable
  62. parameters:
  63. comment: ''
  64. value: '"packet_num"'
  65. states:
  66. bus_sink: false
  67. bus_source: false
  68. bus_structure: null
  69. coordinate: [408, 12.0]
  70. rotation: 0
  71. state: enabled
  72. - name: samp_rate
  73. id: variable
  74. parameters:
  75. comment: ''
  76. value: '32000'
  77. states:
  78. bus_sink: false
  79. bus_source: false
  80. bus_structure: null
  81. coordinate: [200, 12.0]
  82. rotation: 0
  83. state: enabled
  84. - name: blocks_file_sink_0
  85. id: blocks_file_sink
  86. parameters:
  87. affinity: ''
  88. alias: ''
  89. append: 'False'
  90. comment: ''
  91. file: /dev/stdout
  92. type: byte
  93. unbuffered: 'True'
  94. vlen: '1'
  95. states:
  96. bus_sink: false
  97. bus_source: false
  98. bus_structure: null
  99. coordinate: [1080, 532.0]
  100. rotation: 0
  101. state: true
  102. - name: blocks_file_source_0
  103. id: blocks_file_source
  104. parameters:
  105. affinity: ''
  106. alias: ''
  107. begin_tag: pmt.PMT_NIL
  108. comment: ''
  109. file: /home/barry/Py_prog/buffered.txt
  110. length: '0'
  111. maxoutbuf: '0'
  112. minoutbuf: '0'
  113. offset: '0'
  114. repeat: 'False'
  115. type: byte
  116. vlen: '1'
  117. states:
  118. bus_sink: false
  119. bus_source: false
  120. bus_structure: null
  121. coordinate: [16, 148.0]
  122. rotation: 0
  123. state: true
  124. - name: blocks_repack_bits_bb_1
  125. id: blocks_repack_bits_bb
  126. parameters:
  127. affinity: ''
  128. alias: ''
  129. align_output: 'False'
  130. comment: ''
  131. endianness: gr.GR_MSB_FIRST
  132. k: '8'
  133. l: '1'
  134. len_tag_key: '"packet_len"'
  135. maxoutbuf: '0'
  136. minoutbuf: '0'
  137. states:
  138. bus_sink: false
  139. bus_source: false
  140. bus_structure: null
  141. coordinate: [488, 340.0]
  142. rotation: 0
  143. state: true
  144. - name: blocks_repack_bits_bb_1_0
  145. id: blocks_repack_bits_bb
  146. parameters:
  147. affinity: ''
  148. alias: ''
  149. align_output: 'False'
  150. comment: ''
  151. endianness: gr.GR_MSB_FIRST
  152. k: '1'
  153. l: '8'
  154. len_tag_key: '"packet_len"'
  155. maxoutbuf: '0'
  156. minoutbuf: '0'
  157. states:
  158. bus_sink: false
  159. bus_source: false
  160. bus_structure: null
  161. coordinate: [640, 540.0]
  162. rotation: 0
  163. state: true
  164. - name: blocks_stream_to_tagged_stream_0
  165. id: blocks_stream_to_tagged_stream
  166. parameters:
  167. affinity: ''
  168. alias: ''
  169. comment: ''
  170. len_tag_key: '"packet_len"'
  171. maxoutbuf: '0'
  172. minoutbuf: '0'
  173. packet_len: '240'
  174. type: byte
  175. vlen: '1'
  176. states:
  177. bus_sink: false
  178. bus_source: false
  179. bus_structure: null
  180. coordinate: [416, 172.0]
  181. rotation: 0
  182. state: true
  183. - name: blocks_tagged_stream_mux_0
  184. id: blocks_tagged_stream_mux
  185. parameters:
  186. affinity: ''
  187. alias: ''
  188. comment: ''
  189. lengthtagname: packet_len
  190. maxoutbuf: '0'
  191. minoutbuf: '0'
  192. ninputs: '2'
  193. tag_preserve_head_pos: '0'
  194. type: byte
  195. vlen: '1'
  196. states:
  197. bus_sink: false
  198. bus_source: false
  199. bus_structure: null
  200. coordinate: [248, 336.0]
  201. rotation: 0
  202. state: true
  203. - name: blocks_throttle_0
  204. id: blocks_throttle
  205. parameters:
  206. affinity: ''
  207. alias: ''
  208. comment: ''
  209. ignoretag: 'True'
  210. maxoutbuf: '0'
  211. minoutbuf: '0'
  212. samples_per_second: samp_rate
  213. type: byte
  214. vlen: '1'
  215. states:
  216. bus_sink: false
  217. bus_source: false
  218. bus_structure: null
  219. coordinate: [240, 180.0]
  220. rotation: 0
  221. state: true
  222. - name: digital_crc32_bb_0
  223. id: digital_crc32_bb
  224. parameters:
  225. affinity: ''
  226. alias: ''
  227. check: 'False'
  228. comment: ''
  229. lengthtagname: '"packet_len"'
  230. maxoutbuf: '0'
  231. minoutbuf: '0'
  232. packed: 'True'
  233. states:
  234. bus_sink: false
  235. bus_source: false
  236. bus_structure: null
  237. coordinate: [648, 164.0]
  238. rotation: 0
  239. state: true
  240. - name: digital_crc32_bb_0_0
  241. id: digital_crc32_bb
  242. parameters:
  243. affinity: ''
  244. alias: ''
  245. check: 'True'
  246. comment: ''
  247. lengthtagname: '"packet_len"'
  248. maxoutbuf: '0'
  249. minoutbuf: '0'
  250. packed: 'True'
  251. states:
  252. bus_sink: false
  253. bus_source: false
  254. bus_structure: null
  255. coordinate: [848, 532.0]
  256. rotation: 0
  257. state: true
  258. - name: digital_header_payload_demux_0
  259. id: digital_header_payload_demux
  260. parameters:
  261. affinity: ''
  262. alias: ''
  263. comment: ''
  264. guard_interval: '0'
  265. header_len: '32'
  266. header_padding: '0'
  267. items_per_symbol: '1'
  268. length_tag_key: '"packet_len"'
  269. maxoutbuf: '0'
  270. minoutbuf: '0'
  271. output_symbols: 'False'
  272. samp_rate: int(samp_rate)
  273. special_tags: ()
  274. timing_tag_key: '"burst"'
  275. trigger_tag_key: '"packet_len"'
  276. type: byte
  277. states:
  278. bus_sink: false
  279. bus_source: false
  280. bus_structure: null
  281. coordinate: [256, 468.0]
  282. rotation: 0
  283. state: true
  284. - name: digital_protocol_formatter_bb_0
  285. id: digital_protocol_formatter_bb
  286. parameters:
  287. affinity: ''
  288. alias: ''
  289. comment: ''
  290. format: hdr_format
  291. len_tag_key: '"packet_len"'
  292. maxoutbuf: '0'
  293. minoutbuf: '0'
  294. states:
  295. bus_sink: false
  296. bus_source: false
  297. bus_structure: null
  298. coordinate: [904, 172.0]
  299. rotation: 0
  300. state: true
  301. - name: digital_protocol_parser_b_0
  302. id: digital_protocol_parser_b
  303. parameters:
  304. affinity: ''
  305. alias: ''
  306. comment: ''
  307. format: hdr_format
  308. maxoutbuf: '0'
  309. minoutbuf: '0'
  310. states:
  311. bus_sink: false
  312. bus_source: false
  313. bus_structure: null
  314. coordinate: [312, 652.0]
  315. rotation: 180
  316. state: enabled
  317. - name: header_bits
  318. id: virtual_sink
  319. parameters:
  320. alias: ''
  321. comment: ''
  322. stream_id: Header Bytes
  323. states:
  324. bus_sink: false
  325. bus_source: false
  326. bus_structure: null
  327. coordinate: [1136, 180.0]
  328. rotation: 0
  329. state: enabled
  330. - name: virtual_sink_0_0
  331. id: virtual_sink
  332. parameters:
  333. alias: ''
  334. comment: ''
  335. stream_id: Payload Bytes
  336. states:
  337. bus_sink: false
  338. bus_source: false
  339. bus_structure: null
  340. coordinate: [904, 108.0]
  341. rotation: 0
  342. state: enabled
  343. - name: virtual_sink_1
  344. id: virtual_sink
  345. parameters:
  346. alias: ''
  347. comment: ''
  348. stream_id: pkt_out
  349. states:
  350. bus_sink: false
  351. bus_source: false
  352. bus_structure: null
  353. coordinate: [696, 348.0]
  354. rotation: 0
  355. state: true
  356. - name: virtual_source_0
  357. id: virtual_source
  358. parameters:
  359. alias: ''
  360. comment: ''
  361. stream_id: Header Bytes
  362. states:
  363. bus_sink: false
  364. bus_source: false
  365. bus_structure: null
  366. coordinate: [16, 332.0]
  367. rotation: 0
  368. state: enabled
  369. - name: virtual_source_0_0
  370. id: virtual_source
  371. parameters:
  372. alias: ''
  373. comment: ''
  374. stream_id: Payload Bytes
  375. states:
  376. bus_sink: false
  377. bus_source: false
  378. bus_structure: null
  379. coordinate: [16, 388.0]
  380. rotation: 0
  381. state: enabled
  382. - name: virtual_source_1
  383. id: virtual_source
  384. parameters:
  385. alias: ''
  386. comment: ''
  387. stream_id: pkt_out
  388. states:
  389. bus_sink: false
  390. bus_source: false
  391. bus_structure: null
  392. coordinate: [16, 500.0]
  393. rotation: 0
  394. state: true
  395.  
  396. connections:
  397. - [blocks_file_source_0, '0', blocks_throttle_0, '0']
  398. - [blocks_repack_bits_bb_1, '0', virtual_sink_1, '0']
  399. - [blocks_repack_bits_bb_1_0, '0', digital_crc32_bb_0_0, '0']
  400. - [blocks_stream_to_tagged_stream_0, '0', digital_crc32_bb_0, '0']
  401. - [blocks_tagged_stream_mux_0, '0', blocks_repack_bits_bb_1, '0']
  402. - [blocks_throttle_0, '0', blocks_stream_to_tagged_stream_0, '0']
  403. - [digital_crc32_bb_0, '0', digital_protocol_formatter_bb_0, '0']
  404. - [digital_crc32_bb_0, '0', virtual_sink_0_0, '0']
  405. - [digital_crc32_bb_0_0, '0', blocks_file_sink_0, '0']
  406. - [digital_header_payload_demux_0, '0', digital_protocol_parser_b_0, '0']
  407. - [digital_header_payload_demux_0, '1', blocks_repack_bits_bb_1_0, '0']
  408. - [digital_protocol_formatter_bb_0, '0', header_bits, '0']
  409. - [digital_protocol_parser_b_0, info, digital_header_payload_demux_0, header_data]
  410. - [virtual_source_0, '0', blocks_tagged_stream_mux_0, '0']
  411. - [virtual_source_0_0, '0', blocks_tagged_stream_mux_0, '1']
  412. - [virtual_source_1, '0', digital_header_payload_demux_0, '0']
  413.  
  414. metadata:
  415. file_format: 1
  416. grc_version: 3.10.5.1
  417.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement