Change in osmocom-bb[master]: firmware/layer1: add scheduler tasks for CBCH

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/.

Vadim Yanitskiy gerrit-no-reply at lists.osmocom.org
Mon Oct 1 19:33:44 UTC 2018


Vadim Yanitskiy has uploaded this change for review. ( https://gerrit.osmocom.org/11181


Change subject: firmware/layer1: add scheduler tasks for CBCH
......................................................................

firmware/layer1: add scheduler tasks for CBCH

According to GSM TS 05.02, section 3.3.5, Cell Broadcast Channel
(CBCH) is a downlink only channel, which is used to carry the
short message service cell broadcast (SMSCB). CBCH is optional,
and uses the same physical channel as SDCCH. More precisely,
CBCH replaces sub-slot number 2 of SDCCH channels when enabled.

This change introduces the CBCH related tasks only, there is no
way to enable them yet.

Change-Id: I1d7f02cba1cd8f6527360589d2d2747b6426f78b
---
M src/target/firmware/include/layer1/mframe_sched.h
M src/target/firmware/layer1/mframe_sched.c
2 files changed, 22 insertions(+), 0 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmocom-bb refs/changes/81/11181/1

diff --git a/src/target/firmware/include/layer1/mframe_sched.h b/src/target/firmware/include/layer1/mframe_sched.h
index ecdb1ec..74e2d27 100644
--- a/src/target/firmware/include/layer1/mframe_sched.h
+++ b/src/target/firmware/include/layer1/mframe_sched.h
@@ -23,6 +23,9 @@
 	MF_TASK_SDCCH8_6,
 	MF_TASK_SDCCH8_7,
 
+	MF_TASK_SDCCH4_CBCH,
+	MF_TASK_SDCCH8_CBCH,
+
 	MF_TASK_TCH_F_EVEN,
 	MF_TASK_TCH_F_ODD,
 	MF_TASK_TCH_H_0,
diff --git a/src/target/firmware/layer1/mframe_sched.c b/src/target/firmware/layer1/mframe_sched.c
index 01ae167..9be8380 100644
--- a/src/target/firmware/layer1/mframe_sched.c
+++ b/src/target/firmware/layer1/mframe_sched.c
@@ -198,6 +198,16 @@
 	{ .sched_set = NULL }
 };
 
+/* CBCH replaces sub-slot 2 of SDCCH, see GSM 05.02, section 6.4 */
+static const struct mframe_sched_item mf_sdcch8_cbch[] = {
+	{ .sched_set = NB_QUAD_FH_DL, .modulo = 51, .frame_nr = 8 },
+	{ .sched_set = NULL }
+};
+static const struct mframe_sched_item mf_sdcch4_cbch[] = {
+	{ .sched_set = NB_QUAD_DL, .modulo = 51, .frame_nr = 32 },
+	{ .sched_set = NULL }
+};
+
 /* Measurement for MF 51 C0 */
 static const struct mframe_sched_item mf_neigh_pm51_c0t0[] = {
 	{ .sched_set = NEIGH_PM   , .modulo = 51, .frame_nr = 0 },
@@ -327,6 +337,9 @@
 	[MF_TASK_SDCCH8_6] = mf_sdcch8_6,
 	[MF_TASK_SDCCH8_7] = mf_sdcch8_7,
 
+	[MF_TASK_SDCCH4_CBCH] = mf_sdcch4_cbch,
+	[MF_TASK_SDCCH8_CBCH] = mf_sdcch8_cbch,
+
 	[MF_TASK_TCH_F_EVEN] = mf_tch_f_even,
 	[MF_TASK_TCH_F_ODD]  = mf_tch_f_odd,
 	[MF_TASK_TCH_H_0]    = mf_tch_h_0,
@@ -401,6 +414,12 @@
 		cbits = 0x02 + 1;
 		break;
 
+	/* Osmocom specific extensions */
+	case MF_TASK_SDCCH4_CBCH:
+	case MF_TASK_SDCCH8_CBCH:
+		cbits = 0xc8;
+		break;
+
 	case MF_TASK_UL_ALL_NB:
 	default:
 		printd("ERROR: cannot express mf_task=%d as "

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

Gerrit-Project: osmocom-bb
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I1d7f02cba1cd8f6527360589d2d2747b6426f78b
Gerrit-Change-Number: 11181
Gerrit-PatchSet: 1
Gerrit-Owner: Vadim Yanitskiy <axilirator at gmail.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20181001/9aca9ed4/attachment.htm>


More information about the gerrit-log mailing list