Pau Espin Pedrol | 4ff118a | 2022-07-28 17:37:47 +0200 | [diff] [blame] | 1 | /* ECBE (REST) interface client of osmo-cbc test suite in TTCN-3 |
| 2 | * (C) 2022 by sysmocom - s.f.m.c. GmbH <info@sysmocom.de> |
| 3 | * All rights reserved. |
| 4 | * |
| 5 | * Released under the terms of GNU General Public License, Version 2 or |
| 6 | * (at your option) any later version. |
| 7 | * |
| 8 | * SPDX-License-Identifier: GPL-2.0-or-later |
| 9 | */ |
| 10 | |
| 11 | module CBS_Message { |
| 12 | |
| 13 | import from Osmocom_Types all; |
| 14 | |
| 15 | import from BSSAP_Types all; |
| 16 | import from BSSMAP_Templates all; |
| 17 | |
| 18 | import from CBSP_Types all; |
| 19 | |
Pau Espin Pedrol | db247f8 | 2022-08-01 17:55:22 +0200 | [diff] [blame] | 20 | /* Messages used for coordination between handlers and test_CT: */ |
| 21 | const charstring COORD_MSG_CONNECTED := "COORD_MSG_CONNECTED"; |
| 22 | |
| 23 | |
Pau Espin Pedrol | 4ff118a | 2022-07-28 17:37:47 +0200 | [diff] [blame] | 24 | type record CBS_Message { |
| 25 | uint16_t msg_id, |
| 26 | uint16_t ser_nr, |
| 27 | uint16_t old_ser_nr optional, |
| 28 | BSSMAP_FIELD_CellIdentificationList cell_list, |
Pau Espin Pedrol | ad5d2db | 2022-08-03 14:02:02 +0200 | [diff] [blame] | 29 | uint8_t channel_ind optional, |
Pau Espin Pedrol | 4ff118a | 2022-07-28 17:37:47 +0200 | [diff] [blame] | 30 | CBSP_Category category, |
| 31 | uint16_t rep_period, |
| 32 | uint16_t num_bcast_req, |
| 33 | uint8_t dcs, |
| 34 | CBS_MessageContents content |
| 35 | }; |
| 36 | type record CBS_MessageContent { |
| 37 | octetstring payload, |
| 38 | uint8_t user_len |
| 39 | }; |
| 40 | type record of CBS_MessageContent CBS_MessageContents; |
| 41 | |
Pau Espin Pedrol | ad5d2db | 2022-08-03 14:02:02 +0200 | [diff] [blame] | 42 | function msg_id_is_etws(uint16_t msg_id) return boolean |
| 43 | { |
| 44 | if (msg_id >= 4352 and msg_id <= 4359) { |
| 45 | return true; |
| 46 | } |
| 47 | return false; |
| 48 | } |
| 49 | |
Pau Espin Pedrol | 4ff118a | 2022-07-28 17:37:47 +0200 | [diff] [blame] | 50 | } |