Change in osmo-ttcn3-hacks[master]: L1CTL_Types: Add support to set L1 Header params during SACCH tx

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

Harald Welte gerrit-no-reply at lists.osmocom.org
Wed Oct 3 21:39:10 UTC 2018


Harald Welte has submitted this change and it was merged. ( https://gerrit.osmocom.org/11147 )

Change subject: L1CTL_Types: Add support to set L1 Header params during SACCH tx
......................................................................

L1CTL_Types: Add support to set L1 Header params during SACCH tx

Change-Id: Id014f790ee2ede8ae796c37b1c6b25c4af9034d2
---
M library/GSM_RR_Types.ttcn
M library/L1CTL_Types.ttcn
2 files changed, 38 insertions(+), 0 deletions(-)

Approvals:
  Harald Welte: Looks good to me, approved
  Jenkins Builder: Verified



diff --git a/library/GSM_RR_Types.ttcn b/library/GSM_RR_Types.ttcn
index ef209e4..675271f 100644
--- a/library/GSM_RR_Types.ttcn
+++ b/library/GSM_RR_Types.ttcn
@@ -158,6 +158,21 @@
 		message_type := msg_type
 	}
 
+	/* TS 44.004 7.2.1 */
+	type record SacchL1Header {
+		uint2_t		reserved,
+		boolean		fpc,
+		uint5_t		ms_power_lvl,
+		uint8_t		actual_ta
+	} with { variant "FIELDORDER(msb)" };
+
+	template (value) SacchL1Header ts_SacchL1Header(uint5_t ms_power_lvl, boolean fpc, uint8_t actual_ta) := {
+		reserved := 0,
+		fpc := fpc,
+		ms_power_lvl := ms_power_lvl,
+		actual_ta := actual_ta
+	};
+
 	type record MaioHsn {
 	} with { variant "" };
 
diff --git a/library/L1CTL_Types.ttcn b/library/L1CTL_Types.ttcn
index 656f292..39732be 100644
--- a/library/L1CTL_Types.ttcn
+++ b/library/L1CTL_Types.ttcn
@@ -263,6 +263,11 @@
 		OCT2		padding
 	} with { variant "" };
 
+	type record L1ctlDataReq {
+		SacchL1Header	l1header optional,
+		octetstring	l2_payload
+	} with { variant "" };
+
 	type record L1ctlH1 {
 		uint8_t		hsn,
 		uint8_t		maio,
@@ -320,6 +325,7 @@
 		L1CtlCryptoReq		crypto_req,
 		L1ctlTrafficReq		traffic_req,
 		L1ctlTbfCfgReq		tbf_cfg_req,
+		L1ctlDataReq		data_req,
 		octetstring		other
 	} with {
 		variant (other) "BYTEORDER(first)"
@@ -351,6 +357,7 @@
 					     crypto_req, header.msg_type = L1CTL_CRYPTO_REQ;
 					     traffic_req, header.msg_type = L1CTL_TRAFFIC_REQ;
 					     tbf_cfg_req, header.msg_type = L1CTL_TBF_CFG_REQ;
+					     data_req, header.msg_type = L1CTL_DATA_REQ;
 					     other, OTHERWISE;
 				)" };
 
@@ -542,6 +549,22 @@
 		}
 	}
 
+	template (value) L1ctlUlMessage ts_L1CTL_DATA_REQ_SACCH(template (value) RslChannelNr chan_nr,
+							 template (value) RslLinkId link_id,
+							 L1ctlDataReq data_req) := {
+		header := ts_L1ctlHeader(L1CTL_DATA_REQ),
+		ul_info := {
+			chan_nr := chan_nr,
+			link_id := link_id,
+			padding := '0000'O
+		},
+		ul_info_tbf := omit,
+		ul_info_abs := omit,
+		payload := {
+			data_req := data_req
+		}
+	}
+
 	template (value) L1ctlUlMessage ts_L1CTL_TBF_CFG_REQ(boolean is_uplink, TfiUsfArr tfi_usf) := {
 		header := ts_L1ctlHeader(L1CTL_TBF_CFG_REQ),
 		ul_info := omit,

-- 
To view, visit https://gerrit.osmocom.org/11147
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: Id014f790ee2ede8ae796c37b1c6b25c4af9034d2
Gerrit-Change-Number: 11147
Gerrit-PatchSet: 4
Gerrit-Owner: Pau Espin Pedrol <pespin at sysmocom.de>
Gerrit-Reviewer: Harald Welte <laforge at gnumonks.org>
Gerrit-Reviewer: Jenkins Builder (1000002)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20181003/ac7a38ac/attachment.htm>


More information about the gerrit-log mailing list