Change in osmo-bts[master]: pcu_sock: send SI1, SI3 and SI3 along with PCUIF info indication

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

dexter gerrit-no-reply at lists.osmocom.org
Thu Jan 21 20:04:12 UTC 2021


dexter has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-bts/+/22367 )


Change subject: pcu_sock: send SI1, SI3 and SI3 along with PCUIF info indication
......................................................................

pcu_sock: send SI1, SI3 and SI3 along with PCUIF info indication

The new version (0x0b) of the PCUIF offers fields to transfer system
information 1, 3 and 13 with the info indication that is sent by
osmo-bts on startup. The system information is needed by the NACC RIM
application which runs inside osmo-pcu.

Depends osmo-pcu TODO!!!!!!!!!!!!!!!!!
Change-Id: I1726c9e29cc59c499dfabbdaf63c0f1a09984764
Related: SYS#5103

Change-Id: Ie8c3467b6cf8b8bfdeee9a281412d814cbc379b8
---
M include/osmo-bts/pcuif_proto.h
M src/common/pcu_sock.c
2 files changed, 25 insertions(+), 1 deletion(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-bts refs/changes/67/22367/1

diff --git a/include/osmo-bts/pcuif_proto.h b/include/osmo-bts/pcuif_proto.h
index 8f72602..7c48835 100644
--- a/include/osmo-bts/pcuif_proto.h
+++ b/include/osmo-bts/pcuif_proto.h
@@ -6,7 +6,7 @@
 
 #define PCU_SOCK_DEFAULT	"/tmp/pcu_bts"
 
-#define PCU_IF_VERSION		0x0a
+#define PCU_IF_VERSION		0x0b
 #define TXT_MAX_LEN	128
 
 /* msg_type */
@@ -175,6 +175,13 @@
 		struct in_addr v4;
 		struct in6_addr v6;
 	} remote_ip[2];
+	/* RIM */
+	uint8_t         si1[GSM_MACBLOCK_LEN];
+	uint8_t         si1_is_set;
+	uint8_t         si3[GSM_MACBLOCK_LEN];
+	uint8_t         si3_is_set;
+	uint8_t         si13[GSM_MACBLOCK_LEN];
+	uint8_t         si13_is_set;
 } __attribute__ ((packed));
 
 struct gsm_pcu_if_act_req {
diff --git a/src/common/pcu_sock.c b/src/common/pcu_sock.c
index 0466698..b5c5f4b 100644
--- a/src/common/pcu_sock.c
+++ b/src/common/pcu_sock.c
@@ -348,6 +348,23 @@
 		}
 	}
 
+	/* RIM */
+	if (GSM_BTS_HAS_SI(bts, SYSINFO_TYPE_1)) {
+		memcpy(info_ind->si1, GSM_BTS_SI(bts, SYSINFO_TYPE_1),
+		       sizeof(info_ind->si1));
+		info_ind->si1_is_set = true;
+	}
+	if (GSM_BTS_HAS_SI(bts, SYSINFO_TYPE_3)) {
+		memcpy(info_ind->si3, GSM_BTS_SI(bts, SYSINFO_TYPE_3),
+		       sizeof(info_ind->si3));
+		info_ind->si3_is_set = true;
+	}
+	if (GSM_BTS_HAS_SI(bts, SYSINFO_TYPE_13)) {
+		memcpy(info_ind->si13, GSM_BTS_SI(bts, SYSINFO_TYPE_13),
+		       sizeof(info_ind->si13));
+		info_ind->si13_is_set = true;
+	}
+
 	llist_for_each_entry(trx, &bts->trx_list, list) {
 		if (trx->nr >= ARRAY_SIZE(info_ind->trx)) {
 			LOGPTRX(trx, DPCU, LOGL_NOTICE, "PCU interface (version %u) "

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-bts/+/22367
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-bts
Gerrit-Branch: master
Gerrit-Change-Id: Ie8c3467b6cf8b8bfdeee9a281412d814cbc379b8
Gerrit-Change-Number: 22367
Gerrit-PatchSet: 1
Gerrit-Owner: dexter <pmaier at sysmocom.de>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20210121/6c5ed8b4/attachment.htm>


More information about the gerrit-log mailing list