duggabe

pkt_13.grc

Jan 27th, 2025
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.88 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 format
  10. gen_cmake: 'On'
  11. gen_linking: dynamic
  12. generate_options: no_gui
  13. hier_block_src_path: '.:'
  14. id: pkt_13
  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_13
  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: [288, 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: [472, 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: [192, 12.0]
  70. rotation: 0
  71. state: enabled
  72. - name: blocks_message_debug_0
  73. id: blocks_message_debug
  74. parameters:
  75. affinity: ''
  76. alias: ''
  77. comment: ''
  78. en_uvec: 'True'
  79. log_level: info
  80. states:
  81. bus_sink: false
  82. bus_source: false
  83. bus_structure: null
  84. coordinate: [896, 24.0]
  85. rotation: 0
  86. state: disabled
  87. - name: blocks_message_debug_0_0
  88. id: blocks_message_debug
  89. parameters:
  90. affinity: ''
  91. alias: ''
  92. comment: ''
  93. en_uvec: 'True'
  94. log_level: info
  95. states:
  96. bus_sink: false
  97. bus_source: false
  98. bus_structure: null
  99. coordinate: [1136, 512.0]
  100. rotation: 0
  101. state: enabled
  102. - name: blocks_message_strobe_0
  103. id: blocks_message_strobe
  104. parameters:
  105. affinity: ''
  106. alias: ''
  107. comment: ''
  108. maxoutbuf: '0'
  109. minoutbuf: '0'
  110. msg: pmt.cons(pmt.PMT_NIL,pmt.init_u8vector(9,(71,78,85,32,82,97,100,105,111)))
  111. period: '2000'
  112. states:
  113. bus_sink: false
  114. bus_source: false
  115. bus_structure: null
  116. coordinate: [88, 184.0]
  117. rotation: 0
  118. state: enabled
  119. - name: blocks_repack_bits_bb_1
  120. id: blocks_repack_bits_bb
  121. parameters:
  122. affinity: ''
  123. alias: ''
  124. align_output: 'False'
  125. comment: ''
  126. endianness: gr.GR_MSB_FIRST
  127. k: '8'
  128. l: '1'
  129. len_tag_key: '"packet_len"'
  130. maxoutbuf: '0'
  131. minoutbuf: '0'
  132. states:
  133. bus_sink: false
  134. bus_source: false
  135. bus_structure: null
  136. coordinate: [360, 360.0]
  137. rotation: 0
  138. state: true
  139. - name: blocks_repack_bits_bb_1_0
  140. id: blocks_repack_bits_bb
  141. parameters:
  142. affinity: ''
  143. alias: ''
  144. align_output: 'False'
  145. comment: ''
  146. endianness: gr.GR_MSB_FIRST
  147. k: '1'
  148. l: '8'
  149. len_tag_key: '"packet_len"'
  150. maxoutbuf: '0'
  151. minoutbuf: '0'
  152. states:
  153. bus_sink: false
  154. bus_source: false
  155. bus_structure: null
  156. coordinate: [816, 360.0]
  157. rotation: 0
  158. state: true
  159. - name: blocks_tagged_stream_mux_0
  160. id: blocks_tagged_stream_mux
  161. parameters:
  162. affinity: ''
  163. alias: ''
  164. comment: ''
  165. lengthtagname: packet_len
  166. maxoutbuf: '0'
  167. minoutbuf: '0'
  168. ninputs: '2'
  169. tag_preserve_head_pos: '0'
  170. type: byte
  171. vlen: '1'
  172. states:
  173. bus_sink: false
  174. bus_source: false
  175. bus_structure: null
  176. coordinate: [1104, 184.0]
  177. rotation: 0
  178. state: true
  179. - name: blocks_throttle2_0
  180. id: blocks_throttle2
  181. parameters:
  182. affinity: ''
  183. alias: ''
  184. comment: ''
  185. ignoretag: 'True'
  186. limit: auto
  187. maximum: '0.1'
  188. maxoutbuf: '0'
  189. minoutbuf: '0'
  190. samples_per_second: samp_rate
  191. type: byte
  192. vlen: '1'
  193. states:
  194. bus_sink: false
  195. bus_source: false
  196. bus_structure: null
  197. coordinate: [200, 360.0]
  198. rotation: 0
  199. state: enabled
  200. - name: digital_correlate_access_code_xx_ts_0
  201. id: digital_correlate_access_code_xx_ts
  202. parameters:
  203. access_code: ' ''11100001010110101110100010010011'''
  204. affinity: ''
  205. alias: ''
  206. comment: ''
  207. maxoutbuf: '0'
  208. minoutbuf: '0'
  209. tagname: packet_len
  210. threshold: '0'
  211. type: byte
  212. states:
  213. bus_sink: false
  214. bus_source: false
  215. bus_structure: null
  216. coordinate: [552, 352.0]
  217. rotation: 0
  218. state: true
  219. - name: digital_crc_append_0
  220. id: digital_crc_append
  221. parameters:
  222. affinity: ''
  223. alias: ''
  224. comment: ''
  225. final_xor: '0xFFFFFFFF'
  226. initial_value: '0xFFFFFFFF'
  227. input_reflected: 'True'
  228. maxoutbuf: '0'
  229. minoutbuf: '0'
  230. num_bits: '32'
  231. poly: '0x4C11DB7'
  232. result_reflected: 'True'
  233. skip_header_bytes: '0'
  234. swap_endianness: 'False'
  235. states:
  236. bus_sink: false
  237. bus_source: false
  238. bus_structure: null
  239. coordinate: [336, 192.0]
  240. rotation: 0
  241. state: true
  242. - name: digital_crc_check_0
  243. id: digital_crc_check
  244. parameters:
  245. affinity: ''
  246. alias: ''
  247. comment: ''
  248. discard_crc: 'False'
  249. final_xor: '0xFFFFFFFF'
  250. initial_value: '0xFFFFFFFF'
  251. input_reflected: 'True'
  252. maxoutbuf: '0'
  253. minoutbuf: '0'
  254. num_bits: '32'
  255. poly: '0x4C11DB7'
  256. result_reflected: 'True'
  257. skip_header_bytes: '0'
  258. swap_endianness: 'False'
  259. states:
  260. bus_sink: false
  261. bus_source: false
  262. bus_structure: null
  263. coordinate: [840, 512.0]
  264. rotation: 0
  265. state: true
  266. - name: digital_protocol_formatter_async_0
  267. id: digital_protocol_formatter_async
  268. parameters:
  269. affinity: ''
  270. alias: ''
  271. comment: ''
  272. format: hdr_format
  273. maxoutbuf: '0'
  274. minoutbuf: '0'
  275. states:
  276. bus_sink: false
  277. bus_source: false
  278. bus_structure: null
  279. coordinate: [560, 184.0]
  280. rotation: 0
  281. state: enabled
  282. - name: pdu_pdu_to_tagged_stream_0
  283. id: pdu_pdu_to_tagged_stream
  284. parameters:
  285. affinity: ''
  286. alias: ''
  287. comment: ''
  288. maxoutbuf: '0'
  289. minoutbuf: '0'
  290. tag: packet_len
  291. type: byte
  292. states:
  293. bus_sink: false
  294. bus_source: false
  295. bus_structure: null
  296. coordinate: [872, 236.0]
  297. rotation: 0
  298. state: true
  299. - name: pdu_pdu_to_tagged_stream_0_0
  300. id: pdu_pdu_to_tagged_stream
  301. parameters:
  302. affinity: ''
  303. alias: ''
  304. comment: ''
  305. maxoutbuf: '0'
  306. minoutbuf: '0'
  307. tag: packet_len
  308. type: byte
  309. states:
  310. bus_sink: false
  311. bus_source: false
  312. bus_structure: null
  313. coordinate: [872, 176.0]
  314. rotation: 0
  315. state: true
  316. - name: pdu_tagged_stream_to_pdu_0
  317. id: pdu_tagged_stream_to_pdu
  318. parameters:
  319. affinity: ''
  320. alias: ''
  321. comment: ''
  322. maxoutbuf: '0'
  323. minoutbuf: '0'
  324. tag: packet_len
  325. type: byte
  326. states:
  327. bus_sink: false
  328. bus_source: false
  329. bus_structure: null
  330. coordinate: [1008, 368.0]
  331. rotation: 0
  332. state: enabled
  333. - name: virtual_sink_1
  334. id: virtual_sink
  335. parameters:
  336. alias: ''
  337. comment: ''
  338. stream_id: pkt_out
  339. states:
  340. bus_sink: false
  341. bus_source: false
  342. bus_structure: null
  343. coordinate: [1328, 192.0]
  344. rotation: 0
  345. state: true
  346. - name: virtual_source_1
  347. id: virtual_source
  348. parameters:
  349. alias: ''
  350. comment: ''
  351. stream_id: pkt_out
  352. states:
  353. bus_sink: false
  354. bus_source: false
  355. bus_structure: null
  356. coordinate: [32, 368.0]
  357. rotation: 0
  358. state: true
  359.  
  360. connections:
  361. - [blocks_message_strobe_0, strobe, digital_crc_append_0, in]
  362. - [blocks_repack_bits_bb_1, '0', digital_correlate_access_code_xx_ts_0, '0']
  363. - [blocks_repack_bits_bb_1_0, '0', pdu_tagged_stream_to_pdu_0, '0']
  364. - [blocks_tagged_stream_mux_0, '0', virtual_sink_1, '0']
  365. - [blocks_throttle2_0, '0', blocks_repack_bits_bb_1, '0']
  366. - [digital_correlate_access_code_xx_ts_0, '0', blocks_repack_bits_bb_1_0, '0']
  367. - [digital_crc_append_0, out, digital_protocol_formatter_async_0, in]
  368. - [digital_crc_check_0, fail, blocks_message_debug_0_0, print]
  369. - [digital_crc_check_0, ok, blocks_message_debug_0_0, print]
  370. - [digital_protocol_formatter_async_0, header, blocks_message_debug_0, print]
  371. - [digital_protocol_formatter_async_0, header, pdu_pdu_to_tagged_stream_0_0, pdus]
  372. - [digital_protocol_formatter_async_0, payload, blocks_message_debug_0, print]
  373. - [digital_protocol_formatter_async_0, payload, pdu_pdu_to_tagged_stream_0, pdus]
  374. - [pdu_pdu_to_tagged_stream_0, '0', blocks_tagged_stream_mux_0, '1']
  375. - [pdu_pdu_to_tagged_stream_0_0, '0', blocks_tagged_stream_mux_0, '0']
  376. - [pdu_tagged_stream_to_pdu_0, pdus, digital_crc_check_0, in]
  377. - [virtual_source_1, '0', blocks_throttle2_0, '0']
  378.  
  379. metadata:
  380. file_format: 1
  381. grc_version: 3.10.9.2
  382.  
Advertisement
Add Comment
Please, Sign In to add comment