Vasil Velichkov | 14ea82d | 2019-08-28 18:46:34 +0000 | [diff] [blame] | 1 | # auto-generated by grc.converter |
| 2 | |
| 3 | id: gsm_message_source |
| 4 | label: Message Source |
| 5 | |
| 6 | parameters: |
| 7 | - id: messages |
| 8 | label: Messages |
| 9 | dtype: raw |
| 10 | default: '["02 04 01 00 00 00 c9 00 00 1d 3c e5 02 00 01 00 15 06 21 00 01 f0 |
| 11 | 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b", |
| 12 | |
| 13 | "02 04 01 00 00 00 ca 00 00 1d 3c e9 02 00 02 00 15 06 21 00 01 f0 2b 2b 2b |
| 14 | 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b", |
| 15 | |
| 16 | "02 04 01 00 00 00 cb 00 00 1d 3d 0e 01 00 00 00 59 06 1a 00 00 00 00 00 00 |
| 17 | 00 00 00 00 00 00 00 00 00 00 ff e5 04 00", |
| 18 | |
| 19 | "02 04 01 00 00 00 cb 00 00 1d 3d 12 02 00 00 00 15 06 21 00 01 f0 2b 2b 2b |
| 20 | 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b"]' |
| 21 | hide: 'true' |
| 22 | |
| 23 | outputs: |
| 24 | - domain: message |
| 25 | id: msgs |
| 26 | |
| 27 | templates: |
| 28 | imports: import grgsm |
| 29 | make: grgsm.message_source(${messages}) |
| 30 | |
| 31 | documentation: |- |
| 32 | This block is a basic message source for testing purposes. |
| 33 | |
| 34 | It takes a list of strings as input, where each string |
| 35 | is a whitespace-separated list of hexadecimal values representing the data bytes of a message including the gsmtap header. |
| 36 | |
| 37 | Such strings can be obtained using the message printer with option "Print GSMTap header" |
| 38 | |
| 39 | file_format: 1 |