<p>laforge <strong>merged</strong> this change.</p><p><a href="https://gerrit.osmocom.org/c/osmo-bts/+/14684">View Change</a></p><div style="white-space:pre-wrap">Approvals:
  laforge: Looks good to me, approved
  ipse: Looks good to me, but someone else must approve
  Jenkins Builder: Verified

</div><pre style="font-family: monospace,monospace; white-space: pre-wrap;">osmo-bts-trx/scheduler: rx_rach_fn(): use optional TSC info from TRX<br><br>TSC (Training Sequence Code) is an optional parameter of the UL burst<br>indication. We need this information in order to decide whether an<br>Access Burst is 11-bit encoded or not (see OS#1854).<br><br>If this information is absent, we try to correlate the received synch.<br>sequence with the known ones (3GPP TS 05.02, section 5.2.7), and<br>fall-back to the default TS0 if it fails.<br><br>Since the new TRXD header version, the training sequence code is<br>indicated by the transceiver. Let's use it!<br><br>Change-Id: I1e654a2e49cb83c5f1e6249c0de688f99bc466b0<br>Related: OS#1854, OS#4006<br>---<br>M src/osmo-bts-trx/scheduler_trx.c<br>1 file changed, 12 insertions(+), 9 deletions(-)<br><br></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 7bdbc4f..00d7bbb 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>@@ -784,19 +784,22 @@</span><br><span>      uint8_t ra;</span><br><span>  int rc;</span><br><span> </span><br><span style="color: hsl(0, 100%, 40%);">-     /* It would be great if the transceiver were doing some kind of tagging,</span><br><span style="color: hsl(0, 100%, 40%);">-         * whether it is extended (11-bit) RACH or not. We would not need to guess</span><br><span style="color: hsl(0, 100%, 40%);">-       * it here. For now, let's try to correlate the synch. sequence of a received</span><br><span style="color: hsl(0, 100%, 40%);">-        * Access Burst with the known ones (3GPP TS 05.02, section 5.2.7), and</span><br><span style="color: hsl(0, 100%, 40%);">-  * fall-back to the default TS0 if it fails. This would save some CPU</span><br><span style="color: hsl(0, 100%, 40%);">-    * power, and what is more important - prevent possible collisions. */</span><br><span style="color: hsl(120, 100%, 40%);">+        /* TSC (Training Sequence Code) is an optional parameter of the UL burst</span><br><span style="color: hsl(120, 100%, 40%);">+       * indication. We need this information in order to decide whether an</span><br><span style="color: hsl(120, 100%, 40%);">+  * Access Burst is 11-bit encoded or not (see OS#1854). If this information</span><br><span style="color: hsl(120, 100%, 40%);">+    * is absent, we try to correlate the received synch. sequence with the</span><br><span style="color: hsl(120, 100%, 40%);">+        * known ones (3GPP TS 05.02, section 5.2.7), and fall-back to the default</span><br><span style="color: hsl(120, 100%, 40%);">+     * TS0 if it fails. */</span><br><span>       enum rach_synch_seq_t synch_seq = RACH_SYNCH_SEQ_TS0;</span><br><span>        int best_score = 127 * RACH_SYNCH_SEQ_LEN;</span><br><span> </span><br><span>       /* Handover RACH cannot be extended (11-bit) */</span><br><span style="color: hsl(0, 100%, 40%);">- if (chan == TRXC_RACH)</span><br><span style="color: hsl(0, 100%, 40%);">-          /* TODO: check for TRX_BI_F_TS_INFO flag! */</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%);">+     if (chan == TRXC_RACH) {</span><br><span style="color: hsl(120, 100%, 40%);">+              if (bi->flags & TRX_BI_F_TS_INFO)</span><br><span style="color: hsl(120, 100%, 40%);">+                      synch_seq = (enum rach_synch_seq_t) bi->tsc;</span><br><span style="color: hsl(120, 100%, 40%);">+               else</span><br><span style="color: hsl(120, 100%, 40%);">+                  synch_seq = rach_get_synch_seq((sbit_t *) bi->burst, &best_score);</span><br><span style="color: hsl(120, 100%, 40%);">+     }</span><br><span> </span><br><span>        LOGL1S(DL1P, LOGL_DEBUG, l1t, bi->tn, chan, bi->fn,</span><br><span>           "Received RACH (%s; match=%.1f%%) toa=%d\n",</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-bts/+/14684">change 14684</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/+/14684"/><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: I1e654a2e49cb83c5f1e6249c0de688f99bc466b0 </div>
<div style="display:none"> Gerrit-Change-Number: 14684 </div>
<div style="display:none"> Gerrit-PatchSet: 4 </div>
<div style="display:none"> Gerrit-Owner: fixeria <axilirator@gmail.com> </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: ipse <Alexander.Chemeris@gmail.com> </div>
<div style="display:none"> Gerrit-Reviewer: laforge <laforge@gnumonks.org> </div>
<div style="display:none"> Gerrit-Reviewer: pespin <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-MessageType: merged </div>