<p>fixeria has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/osmo-bts/+/14685">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">osmo-bts-trx/scheduler: rx_rach_fn(): enrich debug message<br><br>Instead of printing the match score of detected training sequence,<br>which is being calculated by rach_get_synch_seq() when TSC info is<br>absent, it makes more sense to print both RSSI and optional C/I<br>(Carrier-to-Interference ratio).<br><br>Also, let's explicitly log handover Access Bursts.<br><br>Change-Id: I1cb28a9d6c98993705b73937409276994f375dc0<br>---<br>M src/osmo-bts-trx/scheduler_trx.c<br>1 file changed, 5 insertions(+), 5 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/osmo-bts refs/changes/85/14685/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/osmo-bts-trx/scheduler_trx.c b/src/osmo-bts-trx/scheduler_trx.c</span><br><span>index 00d7bbb..b10ca26 100644</span><br><span>--- a/src/osmo-bts-trx/scheduler_trx.c</span><br><span>+++ b/src/osmo-bts-trx/scheduler_trx.c</span><br><span>@@ -791,21 +791,21 @@</span><br><span>   * known ones (3GPP TS 05.02, section 5.2.7), and fall-back to the default</span><br><span>    * TS0 if it fails. */</span><br><span>       enum rach_synch_seq_t synch_seq = RACH_SYNCH_SEQ_TS0;</span><br><span style="color: hsl(0, 100%, 40%);">-   int best_score = 127 * RACH_SYNCH_SEQ_LEN;</span><br><span> </span><br><span>       /* Handover RACH cannot be extended (11-bit) */</span><br><span>      if (chan == TRXC_RACH) {</span><br><span>             if (bi->flags & TRX_BI_F_TS_INFO)</span><br><span>                     synch_seq = (enum rach_synch_seq_t) bi->tsc;</span><br><span>              else</span><br><span style="color: hsl(0, 100%, 40%);">-                    synch_seq = rach_get_synch_seq((sbit_t *) bi->burst, &best_score);</span><br><span style="color: hsl(120, 100%, 40%);">+                     synch_seq = rach_get_synch_seq((sbit_t *) bi->burst, NULL);</span><br><span>       }</span><br><span> </span><br><span>        LOGL1S(DL1P, LOGL_DEBUG, l1t, bi->tn, chan, bi->fn,</span><br><span style="color: hsl(0, 100%, 40%);">-              "Received RACH (%s; match=%.1f%%) toa=%d\n",</span><br><span style="color: hsl(120, 100%, 40%);">+        "Received%s RACH (%s): rssi=%d toa256=%d C/I=%d cB\n",</span><br><span style="color: hsl(120, 100%, 40%);">+              (chan != TRXC_RACH) ? " handover" : "",</span><br><span>          get_value_string(rach_synch_seq_names, synch_seq),</span><br><span style="color: hsl(0, 100%, 40%);">-              best_score * 100.0 / (127 * RACH_SYNCH_SEQ_LEN),</span><br><span style="color: hsl(0, 100%, 40%);">-        bi->toa256);</span><br><span style="color: hsl(120, 100%, 40%);">+               bi->rssi, bi->toa256,</span><br><span style="color: hsl(120, 100%, 40%);">+           (bi->flags & TRX_BI_F_CI_CB) ? bi->ci_cb : 0);</span><br><span> </span><br><span>  /* Compose a new L1SAP primitive */</span><br><span>  memset(&l1sap, 0x00, sizeof(l1sap));</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-bts/+/14685">change 14685</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/+/14685"/><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: I1cb28a9d6c98993705b73937409276994f375dc0 </div>
<div style="display:none"> Gerrit-Change-Number: 14685 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: fixeria <axilirator@gmail.com> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>