Advertisement
duggabe

pkt_fsk_xmt_ma.grc

Nov 5th, 2023
32
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.81 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 FSK xmt
  10. gen_cmake: 'On'
  11. gen_linking: dynamic
  12. generate_options: qt_gui
  13. hier_block_src_path: '.:'
  14. id: pkt_fsk_xmt_ma
  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_fsk_xmt_ma
  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: [856, 12.0]
  46. rotation: 0
  47. state: enabled
  48. - name: baud
  49. id: variable
  50. parameters:
  51. comment: ''
  52. value: '1200'
  53. states:
  54. bus_sink: false
  55. bus_source: false
  56. bus_structure: null
  57. coordinate: [280, 12.0]
  58. rotation: 0
  59. state: true
  60. - name: center
  61. id: variable
  62. parameters:
  63. comment: ''
  64. value: (mark+space)/2
  65. states:
  66. bus_sink: false
  67. bus_source: false
  68. bus_structure: null
  69. coordinate: [240, 108.0]
  70. rotation: 0
  71. state: enabled
  72. - name: fsk_deviation
  73. id: variable
  74. parameters:
  75. comment: ''
  76. value: (abs)(mark-space)
  77. states:
  78. bus_sink: false
  79. bus_source: false
  80. bus_structure: null
  81. coordinate: [400, 108.0]
  82. rotation: 0
  83. state: enabled
  84. - name: hdr_format
  85. id: variable
  86. parameters:
  87. comment: header_format_default
  88. value: digital.header_format_default(access_key, 0)
  89. states:
  90. bus_sink: false
  91. bus_source: false
  92. bus_structure: null
  93. coordinate: [856, 76.0]
  94. rotation: 0
  95. state: enabled
  96. - name: inp_amp
  97. id: variable
  98. parameters:
  99. comment: ''
  100. value: (mark/vco_max)-vco_offset
  101. states:
  102. bus_sink: false
  103. bus_source: false
  104. bus_structure: null
  105. coordinate: [704, 108.0]
  106. rotation: 0
  107. state: true
  108. - name: mark
  109. id: variable
  110. parameters:
  111. comment: ''
  112. value: '59500'
  113. states:
  114. bus_sink: false
  115. bus_source: false
  116. bus_structure: null
  117. coordinate: [360, 12.0]
  118. rotation: 0
  119. state: true
  120. - name: repeat
  121. id: variable
  122. parameters:
  123. comment: ''
  124. value: (int)(samp_rate/baud)
  125. states:
  126. bus_sink: false
  127. bus_source: false
  128. bus_structure: null
  129. coordinate: [320, 108.0]
  130. rotation: 0
  131. state: true
  132. - name: samp_rate
  133. id: variable
  134. parameters:
  135. comment: '|----------------------------------------------------------------------------------------->
  136.  
  137. User set values'
  138. value: '192000'
  139. states:
  140. bus_sink: false
  141. bus_source: false
  142. bus_structure: null
  143. coordinate: [184, 12.0]
  144. rotation: 0
  145. state: enabled
  146. - name: space
  147. id: variable
  148. parameters:
  149. comment: ''
  150. value: '60500'
  151. states:
  152. bus_sink: false
  153. bus_source: false
  154. bus_structure: null
  155. coordinate: [448, 12.0]
  156. rotation: 0
  157. state: true
  158. - name: thresh
  159. id: variable
  160. parameters:
  161. comment: ''
  162. value: '1'
  163. states:
  164. bus_sink: false
  165. bus_source: false
  166. bus_structure: null
  167. coordinate: [536, 12.0]
  168. rotation: 0
  169. state: enabled
  170. - name: vco_max
  171. id: variable
  172. parameters:
  173. comment: ''
  174. value: center+fsk_deviation
  175. states:
  176. bus_sink: false
  177. bus_source: false
  178. bus_structure: null
  179. coordinate: [504, 108.0]
  180. rotation: 0
  181. state: true
  182. - name: vco_offset
  183. id: variable
  184. parameters:
  185. comment: ''
  186. value: space/vco_max
  187. states:
  188. bus_sink: false
  189. bus_source: false
  190. bus_structure: null
  191. coordinate: [592, 108.0]
  192. rotation: 0
  193. state: true
  194. - name: InFile
  195. id: parameter
  196. parameters:
  197. alias: ''
  198. comment: 'Filename is specified on the command line, e.g.:
  199.  
  200. python3 pkt_fsk_xmt_ma.py --InFile="../gr-logo.png"'
  201. hide: none
  202. label: File Name
  203. short_id: ''
  204. type: str
  205. value: default
  206. states:
  207. bus_sink: false
  208. bus_source: false
  209. bus_structure: null
  210. coordinate: [1040, 12.0]
  211. rotation: 0
  212. state: true
  213. - name: blocks_add_const_vxx_0
  214. id: blocks_add_const_vxx
  215. parameters:
  216. affinity: ''
  217. alias: ''
  218. comment: vco_offset
  219. const: vco_offset
  220. maxoutbuf: '0'
  221. minoutbuf: '0'
  222. type: float
  223. vlen: '1'
  224. states:
  225. bus_sink: false
  226. bus_source: false
  227. bus_structure: null
  228. coordinate: [408, 628.0]
  229. rotation: 0
  230. state: true
  231. - name: blocks_multiply_const_vxx_0
  232. id: blocks_multiply_const_vxx
  233. parameters:
  234. affinity: ''
  235. alias: ''
  236. comment: inp_amp
  237. const: inp_amp
  238. maxoutbuf: '0'
  239. minoutbuf: '0'
  240. type: float
  241. vlen: '1'
  242. states:
  243. bus_sink: false
  244. bus_source: false
  245. bus_structure: null
  246. coordinate: [224, 628.0]
  247. rotation: 0
  248. state: true
  249. - name: blocks_repack_bits_bb_1_0
  250. id: blocks_repack_bits_bb
  251. parameters:
  252. affinity: ''
  253. alias: ''
  254. align_output: 'False'
  255. comment: ''
  256. endianness: gr.GR_MSB_FIRST
  257. k: '8'
  258. l: '1'
  259. len_tag_key: ''
  260. maxoutbuf: '0'
  261. minoutbuf: '0'
  262. states:
  263. bus_sink: false
  264. bus_source: false
  265. bus_structure: null
  266. coordinate: [200, 452.0]
  267. rotation: 0
  268. state: true
  269. - name: blocks_repeat_0
  270. id: blocks_repeat
  271. parameters:
  272. affinity: ''
  273. alias: ''
  274. comment: ''
  275. interp: repeat
  276. maxoutbuf: '0'
  277. minoutbuf: '0'
  278. type: byte
  279. vlen: '1'
  280. states:
  281. bus_sink: false
  282. bus_source: false
  283. bus_structure: null
  284. coordinate: [424, 460.0]
  285. rotation: 0
  286. state: enabled
  287. - name: blocks_tagged_stream_mux_0
  288. id: blocks_tagged_stream_mux
  289. parameters:
  290. affinity: ''
  291. alias: ''
  292. comment: ''
  293. lengthtagname: packet_len
  294. maxoutbuf: '0'
  295. minoutbuf: '0'
  296. ninputs: '2'
  297. tag_preserve_head_pos: '0'
  298. type: byte
  299. vlen: '1'
  300. states:
  301. bus_sink: false
  302. bus_source: false
  303. bus_structure: null
  304. coordinate: [1056, 312.0]
  305. rotation: 0
  306. state: true
  307. - name: blocks_throttle2_0
  308. id: blocks_throttle2
  309. parameters:
  310. affinity: ''
  311. alias: ''
  312. comment: ''
  313. ignoretag: 'True'
  314. limit: auto
  315. maximum: '0.1'
  316. maxoutbuf: '0'
  317. minoutbuf: '0'
  318. samples_per_second: samp_rate
  319. type: complex
  320. vlen: '1'
  321. states:
  322. bus_sink: false
  323. bus_source: false
  324. bus_structure: null
  325. coordinate: [792, 620.0]
  326. rotation: 0
  327. state: true
  328. - name: blocks_uchar_to_float_0
  329. id: blocks_uchar_to_float
  330. parameters:
  331. affinity: ''
  332. alias: ''
  333. comment: ''
  334. maxoutbuf: '0'
  335. minoutbuf: '0'
  336. states:
  337. bus_sink: false
  338. bus_source: false
  339. bus_structure: null
  340. coordinate: [616, 464.0]
  341. rotation: 0
  342. state: enabled
  343. - name: blocks_vco_c_0
  344. id: blocks_vco_c
  345. parameters:
  346. affinity: ''
  347. alias: ''
  348. amplitude: '1.0'
  349. comment: ''
  350. maxoutbuf: '0'
  351. minoutbuf: '0'
  352. samp_rate: samp_rate
  353. sensitivity: 2*math.pi*vco_max
  354. states:
  355. bus_sink: false
  356. bus_source: false
  357. bus_structure: null
  358. coordinate: [600, 612.0]
  359. rotation: 0
  360. state: true
  361. - name: customEPB_FStTS_0
  362. id: customEPB_FStTS
  363. parameters:
  364. FileName: InFile
  365. Pkt_len: '384'
  366. Postamble_len: '8'
  367. Preamble_len: '16'
  368. affinity: ''
  369. alias: ''
  370. comment: 'Filename is specified on the command line, e.g.:
  371.  
  372. python3 pkt_fsk_xmt_ma.py --InFile="../gr-logo.png"'
  373. maxoutbuf: '0'
  374. minoutbuf: '0'
  375. states:
  376. bus_sink: false
  377. bus_source: false
  378. bus_structure: null
  379. coordinate: [248, 316.0]
  380. rotation: 0
  381. state: true
  382. - name: digital_crc32_bb_0
  383. id: digital_crc32_bb
  384. parameters:
  385. affinity: ''
  386. alias: ''
  387. check: 'False'
  388. comment: ''
  389. lengthtagname: '"packet_len"'
  390. maxoutbuf: '0'
  391. minoutbuf: '0'
  392. packed: 'True'
  393. states:
  394. bus_sink: false
  395. bus_source: false
  396. bus_structure: null
  397. coordinate: [528, 324.0]
  398. rotation: 0
  399. state: true
  400. - name: digital_protocol_formatter_bb_0
  401. id: digital_protocol_formatter_bb
  402. parameters:
  403. affinity: ''
  404. alias: ''
  405. comment: ''
  406. format: hdr_format
  407. len_tag_key: '"packet_len"'
  408. maxoutbuf: '0'
  409. minoutbuf: '0'
  410. states:
  411. bus_sink: false
  412. bus_source: false
  413. bus_structure: null
  414. coordinate: [792, 260.0]
  415. rotation: 0
  416. state: true
  417. - name: import_0
  418. id: import
  419. parameters:
  420. alias: ''
  421. comment: ''
  422. imports: import math
  423. states:
  424. bus_sink: false
  425. bus_source: false
  426. bus_structure: null
  427. coordinate: [16, 124.0]
  428. rotation: 0
  429. state: enabled
  430. - name: note_0
  431. id: note
  432. parameters:
  433. alias: ''
  434. comment: '|----------------------------------------------------------------------------------------------------------------------------------------------------------|
  435.  
  436. Calculated values:
  437.  
  438. - center freq = (mark+space)/2
  439.  
  440. - repeat = (int)(samp_rate/baud)
  441.  
  442. - fsk_deviation = (abs)(mark-space)
  443.  
  444. - vco_max = center+fsk_deviation
  445.  
  446. - vco_offset = space/vco_max
  447.  
  448. - inp_amp = (mark/vco_max)-vco_offset
  449.  
  450. - vco sensitivity = 2*math.pi*vco_max'
  451. note: ''
  452. states:
  453. bus_sink: false
  454. bus_source: false
  455. bus_structure: null
  456. coordinate: [184, 132.0]
  457. rotation: 0
  458. state: enabled
  459. - name: qtgui_time_sink_x_0
  460. id: qtgui_time_sink_x
  461. parameters:
  462. affinity: ''
  463. alias: ''
  464. alpha1: '1.0'
  465. alpha10: '1.0'
  466. alpha2: '1.0'
  467. alpha3: '1.0'
  468. alpha4: '1.0'
  469. alpha5: '1.0'
  470. alpha6: '1.0'
  471. alpha7: '1.0'
  472. alpha8: '1.0'
  473. alpha9: '1.0'
  474. autoscale: 'False'
  475. axislabels: 'True'
  476. color1: blue
  477. color10: dark blue
  478. color2: red
  479. color3: green
  480. color4: black
  481. color5: cyan
  482. color6: magenta
  483. color7: yellow
  484. color8: dark red
  485. color9: dark green
  486. comment: 1,0,1,3
  487. ctrlpanel: 'False'
  488. entags: 'True'
  489. grid: 'False'
  490. gui_hint: 1,0,1,3
  491. label1: ''
  492. label10: ''
  493. label2: ''
  494. label3: ''
  495. label4: ''
  496. label5: ''
  497. label6: ''
  498. label7: ''
  499. label8: ''
  500. label9: ''
  501. legend: 'True'
  502. marker1: '-1'
  503. marker10: '-1'
  504. marker2: '-1'
  505. marker3: '-1'
  506. marker4: '-1'
  507. marker5: '-1'
  508. marker6: '-1'
  509. marker7: '-1'
  510. marker8: '-1'
  511. marker9: '-1'
  512. name: Transmit data
  513. nconnections: '1'
  514. size: '2048'
  515. srate: samp_rate
  516. stemplot: 'False'
  517. style1: '1'
  518. style10: '1'
  519. style2: '1'
  520. style3: '1'
  521. style4: '1'
  522. style5: '1'
  523. style6: '1'
  524. style7: '1'
  525. style8: '1'
  526. style9: '1'
  527. tr_chan: '0'
  528. tr_delay: '0.0'
  529. tr_level: '0.1'
  530. tr_mode: qtgui.TRIG_MODE_NORM
  531. tr_slope: qtgui.TRIG_SLOPE_POS
  532. tr_tag: '"packet_len"'
  533. type: float
  534. update_time: '0.10'
  535. width1: '1'
  536. width10: '1'
  537. width2: '1'
  538. width3: '1'
  539. width4: '1'
  540. width5: '1'
  541. width6: '1'
  542. width7: '1'
  543. width8: '1'
  544. width9: '1'
  545. ylabel: Amplitude
  546. ymax: '1.1'
  547. ymin: '-0.1'
  548. yunit: '""'
  549. states:
  550. bus_sink: false
  551. bus_source: false
  552. bus_structure: null
  553. coordinate: [960, 436.0]
  554. rotation: 0
  555. state: enabled
  556. - name: virtual_sink_0
  557. id: virtual_sink
  558. parameters:
  559. alias: ''
  560. comment: ''
  561. stream_id: t2
  562. states:
  563. bus_sink: false
  564. bus_source: false
  565. bus_structure: null
  566. coordinate: [816, 508.0]
  567. rotation: 0
  568. state: true
  569. - name: virtual_sink_0_0
  570. id: virtual_sink
  571. parameters:
  572. alias: ''
  573. comment: ''
  574. stream_id: t1
  575. states:
  576. bus_sink: false
  577. bus_source: false
  578. bus_structure: null
  579. coordinate: [1296, 324.0]
  580. rotation: 0
  581. state: true
  582. - name: virtual_source_0
  583. id: virtual_source
  584. parameters:
  585. alias: ''
  586. comment: ''
  587. stream_id: t2
  588. states:
  589. bus_sink: false
  590. bus_source: false
  591. bus_structure: null
  592. coordinate: [64, 628.0]
  593. rotation: 0
  594. state: true
  595. - name: virtual_source_0_0
  596. id: virtual_source
  597. parameters:
  598. alias: ''
  599. comment: ''
  600. stream_id: t1
  601. states:
  602. bus_sink: false
  603. bus_source: false
  604. bus_structure: null
  605. coordinate: [32, 460.0]
  606. rotation: 0
  607. state: true
  608. - name: zeromq_pub_sink_0
  609. id: zeromq_pub_sink
  610. parameters:
  611. address: tcp://127.0.0.1:49600
  612. affinity: ''
  613. alias: ''
  614. bind: 'True'
  615. comment: ''
  616. drop_on_hwm: 'True'
  617. hwm: '-1'
  618. key: ''
  619. pass_tags: 'False'
  620. timeout: '100'
  621. type: complex
  622. vlen: '1'
  623. states:
  624. bus_sink: false
  625. bus_source: false
  626. bus_structure: null
  627. coordinate: [968, 596.0]
  628. rotation: 0
  629. state: true
  630.  
  631. connections:
  632. - [blocks_add_const_vxx_0, '0', blocks_vco_c_0, '0']
  633. - [blocks_multiply_const_vxx_0, '0', blocks_add_const_vxx_0, '0']
  634. - [blocks_repack_bits_bb_1_0, '0', blocks_repeat_0, '0']
  635. - [blocks_repeat_0, '0', blocks_uchar_to_float_0, '0']
  636. - [blocks_tagged_stream_mux_0, '0', virtual_sink_0_0, '0']
  637. - [blocks_throttle2_0, '0', zeromq_pub_sink_0, '0']
  638. - [blocks_uchar_to_float_0, '0', qtgui_time_sink_x_0, '0']
  639. - [blocks_uchar_to_float_0, '0', virtual_sink_0, '0']
  640. - [blocks_vco_c_0, '0', blocks_throttle2_0, '0']
  641. - [customEPB_FStTS_0, '0', digital_crc32_bb_0, '0']
  642. - [digital_crc32_bb_0, '0', blocks_tagged_stream_mux_0, '1']
  643. - [digital_crc32_bb_0, '0', digital_protocol_formatter_bb_0, '0']
  644. - [digital_protocol_formatter_bb_0, '0', blocks_tagged_stream_mux_0, '0']
  645. - [virtual_source_0, '0', blocks_multiply_const_vxx_0, '0']
  646. - [virtual_source_0_0, '0', blocks_repack_bits_bb_1_0, '0']
  647.  
  648. metadata:
  649. file_format: 1
  650. grc_version: 3.10.8.0
  651.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement