<p>Vadim Yanitskiy has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/11422">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">sigProcLib: add a CorrType for extended (11-bit) RACH<br><br>This is a preparatory change that enables a possibility to choose<br>the amount of synch. sequences to be used for Access Burst (RACH)<br>detection. The VTY flag will be introduced in further changes.<br><br>There are two correlation types now:<br><br>  - RACH (default) - TS0 only;<br>  - EXT_RACH - all TS0, TS1, and TS2 together.<br><br>Change-Id: Ia4f20524350bb8c380d7e10360758eddae8b03e9<br>Related: OS#3054<br>---<br>M Transceiver52M/sigProcLib.cpp<br>M Transceiver52M/sigProcLib.h<br>2 files changed, 12 insertions(+), 6 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/osmo-trx refs/changes/22/11422/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/Transceiver52M/sigProcLib.cpp b/Transceiver52M/sigProcLib.cpp</span><br><span>index 072fb3b..28c4ded 100644</span><br><span>--- a/Transceiver52M/sigProcLib.cpp</span><br><span>+++ b/Transceiver52M/sigProcLib.cpp</span><br><span>@@ -1602,18 +1602,22 @@</span><br><span>  *   tail: Search 8 symbols + maximum expected delay</span><br><span>  */</span><br><span> static int detectRACHBurst(const signalVector &burst, float threshold, int sps,</span><br><span style="color: hsl(0, 100%, 40%);">-                           complex &amplitude, float &toa, unsigned max_toa)</span><br><span style="color: hsl(120, 100%, 40%);">+                           complex &amplitude, float &toa, unsigned max_toa, bool ext)</span><br><span> {</span><br><span>   int rc, target, head, tail;</span><br><span style="color: hsl(0, 100%, 40%);">-  CorrelationSequence *sync;</span><br><span style="color: hsl(120, 100%, 40%);">+  int i, num_seq;</span><br><span> </span><br><span>   target = 8 + 40;</span><br><span>   head = 8;</span><br><span>   tail = 8 + max_toa;</span><br><span style="color: hsl(0, 100%, 40%);">-  sync = gRACHSequences[0];</span><br><span style="color: hsl(120, 100%, 40%);">+  num_seq = ext ? 3 : 1;</span><br><span> </span><br><span style="color: hsl(0, 100%, 40%);">-  rc = detectGeneralBurst(burst, threshold, sps, amplitude, toa,</span><br><span style="color: hsl(0, 100%, 40%);">-                          target, head, tail, sync);</span><br><span style="color: hsl(120, 100%, 40%);">+  for (i = 0; i < num_seq; i++) {</span><br><span style="color: hsl(120, 100%, 40%);">+    rc = detectGeneralBurst(burst, threshold, sps, amplitude, toa,</span><br><span style="color: hsl(120, 100%, 40%);">+                            target, head, tail, gRACHSequences[i]);</span><br><span style="color: hsl(120, 100%, 40%);">+    if (rc > 0)</span><br><span style="color: hsl(120, 100%, 40%);">+      break;</span><br><span style="color: hsl(120, 100%, 40%);">+  }</span><br><span> </span><br><span>   return rc;</span><br><span> }</span><br><span>@@ -1682,9 +1686,10 @@</span><br><span>     rc = analyzeTrafficBurst(burst, tsc, threshold, sps,</span><br><span>                              amp, toa, max_toa);</span><br><span>     break;</span><br><span style="color: hsl(120, 100%, 40%);">+  case EXT_RACH:</span><br><span>   case RACH:</span><br><span>     rc = detectRACHBurst(burst, threshold, sps, amp, toa,</span><br><span style="color: hsl(0, 100%, 40%);">-                         max_toa);</span><br><span style="color: hsl(120, 100%, 40%);">+                         max_toa, type == EXT_RACH);</span><br><span>     break;</span><br><span>   default:</span><br><span>     LOG(ERR) << "Invalid correlation type";</span><br><span>diff --git a/Transceiver52M/sigProcLib.h b/Transceiver52M/sigProcLib.h</span><br><span>index 9bc7e10..79a5c3f 100644</span><br><span>--- a/Transceiver52M/sigProcLib.h</span><br><span>+++ b/Transceiver52M/sigProcLib.h</span><br><span>@@ -29,6 +29,7 @@</span><br><span> enum CorrType{</span><br><span>   OFF,         ///< timeslot is off</span><br><span>   TSC,         ///< timeslot should contain a normal burst</span><br><span style="color: hsl(120, 100%, 40%);">+  EXT_RACH,    ///< timeslot should contain an extended access burst</span><br><span>   RACH,        ///< timeslot should contain an access burst</span><br><span>   EDGE,        ///< timeslot should contain an EDGE burst</span><br><span>   IDLE         ///< timeslot is an idle (or dummy) burst</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/11422">change 11422</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/11422"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-trx </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: Ia4f20524350bb8c380d7e10360758eddae8b03e9 </div>
<div style="display:none"> Gerrit-Change-Number: 11422 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Vadim Yanitskiy <axilirator@gmail.com> </div>