Advertisement
duggabe

str_pkt_12.grc

Mar 12th, 2023 (edited)
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.50 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: qt_gui
  13. hier_block_src_path: '.:'
  14. id: str_pkt_12
  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_12
  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: digital_python.packet_header_default
  40. value: digital.digital_python.packet_header_default(4,len_key,num_key,8)
  41. states:
  42. bus_sink: false
  43. bus_source: false
  44. bus_structure: null
  45. coordinate: [544, 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: [416, 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: [192, 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: output.txt
  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: [960, 500.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/GRdev/padded.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_message_debug_0
  125. id: blocks_message_debug
  126. parameters:
  127. affinity: ''
  128. alias: ''
  129. comment: ''
  130. en_uvec: 'True'
  131. states:
  132. bus_sink: false
  133. bus_source: false
  134. bus_structure: null
  135. coordinate: [1176, 328.0]
  136. rotation: 180
  137. state: enabled
  138. - name: blocks_repack_bits_bb_1
  139. id: blocks_repack_bits_bb
  140. parameters:
  141. affinity: ''
  142. alias: ''
  143. align_output: 'False'
  144. comment: ''
  145. endianness: gr.GR_MSB_FIRST
  146. k: '8'
  147. l: '1'
  148. len_tag_key: '"packet_len"'
  149. maxoutbuf: '0'
  150. minoutbuf: '0'
  151. states:
  152. bus_sink: false
  153. bus_source: false
  154. bus_structure: null
  155. coordinate: [488, 340.0]
  156. rotation: 0
  157. state: true
  158. - name: blocks_repack_bits_bb_1_0
  159. id: blocks_repack_bits_bb
  160. parameters:
  161. affinity: ''
  162. alias: ''
  163. align_output: 'False'
  164. comment: ''
  165. endianness: gr.GR_MSB_FIRST
  166. k: '1'
  167. l: '8'
  168. len_tag_key: '"packet_len"'
  169. maxoutbuf: '0'
  170. minoutbuf: '0'
  171. states:
  172. bus_sink: false
  173. bus_source: false
  174. bus_structure: null
  175. coordinate: [520, 508.0]
  176. rotation: 0
  177. state: true
  178. - name: blocks_stream_to_tagged_stream_0
  179. id: blocks_stream_to_tagged_stream
  180. parameters:
  181. affinity: ''
  182. alias: ''
  183. comment: ''
  184. len_tag_key: '"packet_len"'
  185. maxoutbuf: '0'
  186. minoutbuf: '0'
  187. packet_len: '252'
  188. type: byte
  189. vlen: '1'
  190. states:
  191. bus_sink: false
  192. bus_source: false
  193. bus_structure: null
  194. coordinate: [416, 172.0]
  195. rotation: 0
  196. state: true
  197. - name: blocks_tagged_stream_mux_0
  198. id: blocks_tagged_stream_mux
  199. parameters:
  200. affinity: ''
  201. alias: ''
  202. comment: ''
  203. lengthtagname: packet_len
  204. maxoutbuf: '0'
  205. minoutbuf: '0'
  206. ninputs: '2'
  207. tag_preserve_head_pos: '0'
  208. type: byte
  209. vlen: '1'
  210. states:
  211. bus_sink: false
  212. bus_source: false
  213. bus_structure: null
  214. coordinate: [248, 336.0]
  215. rotation: 0
  216. state: true
  217. - name: blocks_throttle_0
  218. id: blocks_throttle
  219. parameters:
  220. affinity: ''
  221. alias: ''
  222. comment: ''
  223. ignoretag: 'True'
  224. maxoutbuf: '0'
  225. minoutbuf: '0'
  226. samples_per_second: samp_rate
  227. type: byte
  228. vlen: '1'
  229. states:
  230. bus_sink: false
  231. bus_source: false
  232. bus_structure: null
  233. coordinate: [240, 180.0]
  234. rotation: 0
  235. state: true
  236. - name: digital_correlate_access_code_xx_ts_0
  237. id: digital_correlate_access_code_xx_ts
  238. parameters:
  239. access_code: ' ''11100001010110101110100010010011'''
  240. affinity: ''
  241. alias: ''
  242. comment: ''
  243. maxoutbuf: '0'
  244. minoutbuf: '0'
  245. tagname: packet_len
  246. threshold: '0'
  247. type: byte
  248. states:
  249. bus_sink: false
  250. bus_source: false
  251. bus_structure: null
  252. coordinate: [224, 500.0]
  253. rotation: 0
  254. state: true
  255. - name: digital_crc32_bb_0
  256. id: digital_crc32_bb
  257. parameters:
  258. affinity: ''
  259. alias: ''
  260. check: 'False'
  261. comment: ''
  262. lengthtagname: '"packet_len"'
  263. maxoutbuf: '0'
  264. minoutbuf: '0'
  265. packed: 'True'
  266. states:
  267. bus_sink: false
  268. bus_source: false
  269. bus_structure: null
  270. coordinate: [648, 164.0]
  271. rotation: 0
  272. state: true
  273. - name: digital_crc32_bb_0_0
  274. id: digital_crc32_bb
  275. parameters:
  276. affinity: ''
  277. alias: ''
  278. check: 'True'
  279. comment: ''
  280. lengthtagname: '"packet_len"'
  281. maxoutbuf: '0'
  282. minoutbuf: '0'
  283. packed: 'True'
  284. states:
  285. bus_sink: false
  286. bus_source: false
  287. bus_structure: null
  288. coordinate: [728, 500.0]
  289. rotation: 0
  290. state: true
  291. - name: digital_packet_headergenerator_bb_0
  292. id: digital_packet_headergenerator_bb
  293. parameters:
  294. affinity: ''
  295. alias: ''
  296. comment: ''
  297. header_formatter: hdr_format
  298. len_tag_key: '"packet_len"'
  299. maxoutbuf: '0'
  300. minoutbuf: '0'
  301. states:
  302. bus_sink: false
  303. bus_source: false
  304. bus_structure: null
  305. coordinate: [904, 172.0]
  306. rotation: 0
  307. state: true
  308. - name: header_bits
  309. id: virtual_sink
  310. parameters:
  311. alias: ''
  312. comment: ''
  313. stream_id: Header Bytes
  314. states:
  315. bus_sink: false
  316. bus_source: false
  317. bus_structure: null
  318. coordinate: [1160, 180.0]
  319. rotation: 0
  320. state: enabled
  321. - name: pdu_tagged_stream_to_pdu_0
  322. id: pdu_tagged_stream_to_pdu
  323. parameters:
  324. affinity: ''
  325. alias: ''
  326. comment: ''
  327. maxoutbuf: '0'
  328. minoutbuf: '0'
  329. tag: packet_len
  330. type: byte
  331. states:
  332. bus_sink: false
  333. bus_source: false
  334. bus_structure: null
  335. coordinate: [1144, 252.0]
  336. rotation: 0
  337. state: true
  338. - name: virtual_sink_0_0
  339. id: virtual_sink
  340. parameters:
  341. alias: ''
  342. comment: ''
  343. stream_id: Payload Bytes
  344. states:
  345. bus_sink: false
  346. bus_source: false
  347. bus_structure: null
  348. coordinate: [904, 108.0]
  349. rotation: 0
  350. state: enabled
  351. - name: virtual_sink_1
  352. id: virtual_sink
  353. parameters:
  354. alias: ''
  355. comment: ''
  356. stream_id: pkt_out
  357. states:
  358. bus_sink: false
  359. bus_source: false
  360. bus_structure: null
  361. coordinate: [696, 348.0]
  362. rotation: 0
  363. state: true
  364. - name: virtual_source_0
  365. id: virtual_source
  366. parameters:
  367. alias: ''
  368. comment: ''
  369. stream_id: Header Bytes
  370. states:
  371. bus_sink: false
  372. bus_source: false
  373. bus_structure: null
  374. coordinate: [16, 332.0]
  375. rotation: 0
  376. state: enabled
  377. - name: virtual_source_0_0
  378. id: virtual_source
  379. parameters:
  380. alias: ''
  381. comment: ''
  382. stream_id: Payload Bytes
  383. states:
  384. bus_sink: false
  385. bus_source: false
  386. bus_structure: null
  387. coordinate: [16, 388.0]
  388. rotation: 0
  389. state: enabled
  390. - name: virtual_source_1
  391. id: virtual_source
  392. parameters:
  393. alias: ''
  394. comment: ''
  395. stream_id: pkt_out
  396. states:
  397. bus_sink: false
  398. bus_source: false
  399. bus_structure: null
  400. coordinate: [24, 516.0]
  401. rotation: 0
  402. state: true
  403.  
  404. connections:
  405. - [blocks_file_source_0, '0', blocks_throttle_0, '0']
  406. - [blocks_repack_bits_bb_1, '0', virtual_sink_1, '0']
  407. - [blocks_repack_bits_bb_1_0, '0', digital_crc32_bb_0_0, '0']
  408. - [blocks_stream_to_tagged_stream_0, '0', digital_crc32_bb_0, '0']
  409. - [blocks_tagged_stream_mux_0, '0', blocks_repack_bits_bb_1, '0']
  410. - [blocks_throttle_0, '0', blocks_stream_to_tagged_stream_0, '0']
  411. - [digital_correlate_access_code_xx_ts_0, '0', blocks_repack_bits_bb_1_0, '0']
  412. - [digital_crc32_bb_0, '0', digital_packet_headergenerator_bb_0, '0']
  413. - [digital_crc32_bb_0, '0', virtual_sink_0_0, '0']
  414. - [digital_crc32_bb_0_0, '0', blocks_file_sink_0, '0']
  415. - [digital_packet_headergenerator_bb_0, '0', header_bits, '0']
  416. - [digital_packet_headergenerator_bb_0, '0', pdu_tagged_stream_to_pdu_0, '0']
  417. - [pdu_tagged_stream_to_pdu_0, pdus, blocks_message_debug_0, print]
  418. - [virtual_source_0, '0', blocks_tagged_stream_mux_0, '0']
  419. - [virtual_source_0_0, '0', blocks_tagged_stream_mux_0, '1']
  420. - [virtual_source_1, '0', digital_correlate_access_code_xx_ts_0, '0']
  421.  
  422. metadata:
  423. file_format: 1
  424. grc_version: 3.10.5.1
  425.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement