Advertisement
duggabe

str_pkt_11.grc

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