Vasil Velichkov | 14ea82d | 2019-08-28 18:46:34 +0000 | [diff] [blame] | 1 | # auto-generated by grc.converter |
| 2 | |
| 3 | id: gsm_bursts_printer |
| 4 | label: Bursts Printer |
| 5 | |
| 6 | parameters: |
| 7 | - id: prepend_string |
| 8 | label: Prepend String |
| 9 | dtype: string |
| 10 | hide: part |
| 11 | - id: prepend_fnr |
| 12 | label: Prepend Frame Number |
| 13 | dtype: bool |
| 14 | default: 'False' |
| 15 | options: ['False', 'True'] |
| 16 | - id: prepend_frame_count |
| 17 | label: Prepend Frame Count |
| 18 | dtype: bool |
| 19 | default: 'False' |
| 20 | options: ['False', 'True'] |
| 21 | - id: print_payload_only |
| 22 | label: Print payload only |
| 23 | dtype: bool |
| 24 | default: 'False' |
| 25 | options: ['False', 'True'] |
| 26 | - id: ignore_dummy_bursts |
| 27 | label: Ignore dummy bursts |
| 28 | dtype: bool |
| 29 | default: 'False' |
| 30 | options: ['False', 'True'] |
| 31 | |
| 32 | inputs: |
| 33 | - domain: message |
| 34 | id: bursts |
| 35 | |
| 36 | templates: |
| 37 | imports: |- |
| 38 | import grgsm |
| 39 | import pmt |
| 40 | make: |- |
| 41 | grgsm.bursts_printer(pmt.intern(${prepend_string}), ${prepend_fnr}, |
| 42 | ${prepend_frame_count}, ${print_payload_only}, ${ignore_dummy_bursts}) |
| 43 | |
| 44 | documentation: |- |
| 45 | This block prints bursts to output. By default the whole burst including tail bits, stealing bits and training sequence is printed. |
| 46 | |
| 47 | If "Prepend Frame Number" is enabled, then the framenumber is prepended to each burst. |
| 48 | |
| 49 | If "Prepend Frame Count" is enabled, then the frame count for A5 is prependend to each burst. |
| 50 | |
| 51 | If "Print payload only" is enabled, then only the two data blocks of a burst are printed, tail bits, stealing bits and training sequence are omitted. |
| 52 | |
| 53 | If "Ignore dummy bursts" is enabled, then the burst printer will not print dummy bursts (see GSM 05.02) |
| 54 | |
| 55 | Enabling first three options (or all four options) results in an output that is similar to the output of airprobe, i.e. the format is "frame_nr frame_count: databits" |
| 56 | |
| 57 | file_format: 1 |