<p>dexter has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/osmo-bts/+/22367">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">pcu_sock: send SI1, SI3 and SI3 along with PCUIF info indication<br><br>The new version (0x0b) of the PCUIF offers fields to transfer system<br>information 1, 3 and 13 with the info indication that is sent by<br>osmo-bts on startup. The system information is needed by the NACC RIM<br>application which runs inside osmo-pcu.<br><br>Depends osmo-pcu TODO!!!!!!!!!!!!!!!!!<br>Change-Id: I1726c9e29cc59c499dfabbdaf63c0f1a09984764<br>Related: SYS#5103<br><br>Change-Id: Ie8c3467b6cf8b8bfdeee9a281412d814cbc379b8<br>---<br>M include/osmo-bts/pcuif_proto.h<br>M src/common/pcu_sock.c<br>2 files changed, 25 insertions(+), 1 deletion(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/osmo-bts refs/changes/67/22367/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/include/osmo-bts/pcuif_proto.h b/include/osmo-bts/pcuif_proto.h</span><br><span>index 8f72602..7c48835 100644</span><br><span>--- a/include/osmo-bts/pcuif_proto.h</span><br><span>+++ b/include/osmo-bts/pcuif_proto.h</span><br><span>@@ -6,7 +6,7 @@</span><br><span> </span><br><span> #define PCU_SOCK_DEFAULT        "/tmp/pcu_bts"</span><br><span> </span><br><span style="color: hsl(0, 100%, 40%);">-#define PCU_IF_VERSION              0x0a</span><br><span style="color: hsl(120, 100%, 40%);">+#define PCU_IF_VERSION            0x0b</span><br><span> #define TXT_MAX_LEN     128</span><br><span> </span><br><span> /* msg_type */</span><br><span>@@ -175,6 +175,13 @@</span><br><span>             struct in_addr v4;</span><br><span>           struct in6_addr v6;</span><br><span>  } remote_ip[2];</span><br><span style="color: hsl(120, 100%, 40%);">+       /* RIM */</span><br><span style="color: hsl(120, 100%, 40%);">+     uint8_t         si1[GSM_MACBLOCK_LEN];</span><br><span style="color: hsl(120, 100%, 40%);">+        uint8_t         si1_is_set;</span><br><span style="color: hsl(120, 100%, 40%);">+   uint8_t         si3[GSM_MACBLOCK_LEN];</span><br><span style="color: hsl(120, 100%, 40%);">+        uint8_t         si3_is_set;</span><br><span style="color: hsl(120, 100%, 40%);">+   uint8_t         si13[GSM_MACBLOCK_LEN];</span><br><span style="color: hsl(120, 100%, 40%);">+       uint8_t         si13_is_set;</span><br><span> } __attribute__ ((packed));</span><br><span> </span><br><span> struct gsm_pcu_if_act_req {</span><br><span>diff --git a/src/common/pcu_sock.c b/src/common/pcu_sock.c</span><br><span>index 0466698..b5c5f4b 100644</span><br><span>--- a/src/common/pcu_sock.c</span><br><span>+++ b/src/common/pcu_sock.c</span><br><span>@@ -348,6 +348,23 @@</span><br><span>               }</span><br><span>    }</span><br><span> </span><br><span style="color: hsl(120, 100%, 40%);">+ /* RIM */</span><br><span style="color: hsl(120, 100%, 40%);">+     if (GSM_BTS_HAS_SI(bts, SYSINFO_TYPE_1)) {</span><br><span style="color: hsl(120, 100%, 40%);">+            memcpy(info_ind->si1, GSM_BTS_SI(bts, SYSINFO_TYPE_1),</span><br><span style="color: hsl(120, 100%, 40%);">+                    sizeof(info_ind->si1));</span><br><span style="color: hsl(120, 100%, 40%);">+             info_ind->si1_is_set = true;</span><br><span style="color: hsl(120, 100%, 40%);">+       }</span><br><span style="color: hsl(120, 100%, 40%);">+     if (GSM_BTS_HAS_SI(bts, SYSINFO_TYPE_3)) {</span><br><span style="color: hsl(120, 100%, 40%);">+            memcpy(info_ind->si3, GSM_BTS_SI(bts, SYSINFO_TYPE_3),</span><br><span style="color: hsl(120, 100%, 40%);">+                    sizeof(info_ind->si3));</span><br><span style="color: hsl(120, 100%, 40%);">+             info_ind->si3_is_set = true;</span><br><span style="color: hsl(120, 100%, 40%);">+       }</span><br><span style="color: hsl(120, 100%, 40%);">+     if (GSM_BTS_HAS_SI(bts, SYSINFO_TYPE_13)) {</span><br><span style="color: hsl(120, 100%, 40%);">+           memcpy(info_ind->si13, GSM_BTS_SI(bts, SYSINFO_TYPE_13),</span><br><span style="color: hsl(120, 100%, 40%);">+                  sizeof(info_ind->si13));</span><br><span style="color: hsl(120, 100%, 40%);">+            info_ind->si13_is_set = true;</span><br><span style="color: hsl(120, 100%, 40%);">+      }</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span>  llist_for_each_entry(trx, &bts->trx_list, list) {</span><br><span>             if (trx->nr >= ARRAY_SIZE(info_ind->trx)) {</span><br><span>                         LOGPTRX(trx, DPCU, LOGL_NOTICE, "PCU interface (version %u) "</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-bts/+/22367">change 22367</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.osmocom.org/c/osmo-bts/+/22367"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-bts </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: Ie8c3467b6cf8b8bfdeee9a281412d814cbc379b8 </div>
<div style="display:none"> Gerrit-Change-Number: 22367 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: dexter <pmaier@sysmocom.de> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>