<blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;"><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;"><p style="white-space: pre-wrap; word-wrap: break-word;">I still don't get why this has any mention of PCU in it.</p></blockquote><p style="white-space: pre-wrap; word-wrap: break-word;">Well, I'm reading out the L1 SAPI from the "struct gsm_pcu_if", so<br>I can set the L1 SAPI log context for all incoming and outgoing L1<br>messages from BTS<-->PCU.</p></blockquote><p style="white-space: pre-wrap; word-wrap: break-word;">But where and why does the PCU get into the picture? I still don't understand.<br>The L1 SAPI exists for every block of data we send or receive to/from the DSP/PHY,<br>whether or not it's circuit switched or packet switched.  And the PCU interface<br>will ever only get packet switched data. So anything that's attached/associated to<br>the PCU interface will only see a very small portion of the traffic (i.e. GPRS traffic).</p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;"><p style="white-space: pre-wrap; word-wrap: break-word;">Sorry, I had assumed, that in OsmoBTS, this L1 SAPI logging would<br>only be relevant for the BTS<-->PCU socket, and therefore thought<br>the appropriate log context would be what is defined with<br>PCU_IF_SAPI_*.</p></blockquote><p style="white-space: pre-wrap; word-wrap: break-word;">I wonder where that impression was raised? The L1 is not used only by the PCU,<br>but by all of OsmoBTS.</p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;"><p style="white-space: pre-wrap; word-wrap: break-word;">From what I understand now, instead I need to do this:</p><ul><li>create a new enum in libosmocore that holds all kinds of L1 SAPI</li><li>values</li></ul></blockquote><p style="white-space: pre-wrap; word-wrap: break-word;">that may be an option, but I'm not sure it's required to have this in libosmocore.</p><p style="white-space: pre-wrap; word-wrap: break-word;">After all, there is no need for those values / enums to be stable across different<br>programs.  Those enum values are never exposed on any external interface/API, so<br>they could just be private enums in both BTS and PCU.</p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;"><ul><li>don't use "pcu_prim->...sapi" directly to set the filter context,</li><li>but translate it to the enum first</li></ul></blockquote><p style="white-space: pre-wrap; word-wrap: break-word;">correct.</p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;"><ul><li>set the log context in other places in OSmoBTS, that are not</li><li>related to the PCU (that must be the other side, when talking to</li><li>hardware backends)</li></ul></blockquote><p style="white-space: pre-wrap; word-wrap: break-word;">You need to set that value for every L1P (and possibly L1C?) primitive received from the<br>respective PHY, as soon as possible.  That's for the uplink part.  For downlink, I<br>suspect it's sufficient to set it based on chan_nr when received from L1SAP.</p><p><a href="https://gerrit.osmocom.org/c/osmo-bts/+/15539">View Change</a></p><ul style="list-style: none; padding: 0;"></ul><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-bts/+/15539">change 15539</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/+/15539"/><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: I6b7bb2e1d61502b61214f854a4ec5cbb7267545b </div>
<div style="display:none"> Gerrit-Change-Number: 15539 </div>
<div style="display:none"> Gerrit-PatchSet: 4 </div>
<div style="display:none"> Gerrit-Owner: osmith <osmith@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder </div>
<div style="display:none"> Gerrit-Reviewer: fixeria <axilirator@gmail.com> </div>
<div style="display:none"> Gerrit-Reviewer: laforge <laforge@gnumonks.org> </div>
<div style="display:none"> Gerrit-Reviewer: neels <nhofmeyr@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: osmith <osmith@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: pespin <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-CC: fixeria <axilirator@gmail.com> </div>
<div style="display:none"> Gerrit-Comment-Date: Thu, 19 Sep 2019 15:06:14 +0000 </div>
<div style="display:none"> Gerrit-HasComments: No </div>
<div style="display:none"> Gerrit-Has-Labels: No </div>
<div style="display:none"> Gerrit-MessageType: comment </div>