<p>pespin has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/osmo-bts/+/25443">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">TA Control Loop: Change toa256 switch threshold to 75% of a symbol<br><br>As per 3GPP TS 45.010 sec 5.6.3 Delay assessment error:<br>"""<br>the delay shall be assessed in such a way hat the assessment error<br>(due to  noise and interference) is less than 1/2 normal symbol periods<br>for stationary MS. For MS moving at a speed up to 500  km/h the additional<br>error shall be less than 1/4 normal symbol period.<br>"""<br><br>Hence, required TA loop calculation should take into account an error of<br>up to 1/2 + 1/4 = 75% of a symbol. By changing the threshold variable we<br>to that percentage we make sure we take into account bigger deviations<br>and update TA accordingly.<br><br>Related: SYS#5371<br>Change-Id: I4c5825df4291d3851a113027abf7566de343a190<br>---<br>M src/common/ta_control.c<br>1 file changed, 5 insertions(+), 4 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/43/25443/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/common/ta_control.c b/src/common/ta_control.c</span><br><span>index 95a483e..dec0b77 100644</span><br><span>--- a/src/common/ta_control.c</span><br><span>+++ b/src/common/ta_control.c</span><br><span>@@ -26,8 +26,9 @@</span><br><span> #include <osmo-bts/bts_trx.h></span><br><span> #include <osmo-bts/logging.h></span><br><span> </span><br><span style="color: hsl(0, 100%, 40%);">-/* 90% of one bit duration in 1/256 symbols: 256*0.9 */</span><br><span style="color: hsl(0, 100%, 40%);">-#define TOA256_9OPERCENT        230</span><br><span style="color: hsl(120, 100%, 40%);">+/* 3GPP TS 45.010 sec 5.6.3 Delay assessment error:</span><br><span style="color: hsl(120, 100%, 40%);">+ * 75% of one bit duration in 1/256 symbols: 256*0.9 */</span><br><span style="color: hsl(120, 100%, 40%);">+#define TOA256_THRESH        192</span><br><span> </span><br><span> /* rqd_ta value range */</span><br><span> #define TA_MIN 0</span><br><span>@@ -61,12 +62,12 @@</span><br><span> </span><br><span>    int16_t delta_ta = toa256/256;</span><br><span>       if (toa256 >= 0) {</span><br><span style="color: hsl(0, 100%, 40%);">-           if ((toa256 - (256 * delta_ta)) > TOA256_9OPERCENT)</span><br><span style="color: hsl(120, 100%, 40%);">+                if ((toa256 - (256 * delta_ta)) > TOA256_THRESH)</span><br><span>                  delta_ta++;</span><br><span>          if (delta_ta > TA_MAX_INC_STEP)</span><br><span>                   delta_ta = TA_MAX_INC_STEP;</span><br><span>  } else {</span><br><span style="color: hsl(0, 100%, 40%);">-                if ((toa256 - (256 * delta_ta)) < -TOA256_9OPERCENT)</span><br><span style="color: hsl(120, 100%, 40%);">+               if ((toa256 - (256 * delta_ta)) < -TOA256_THRESH)</span><br><span>                         delta_ta--;</span><br><span>          if (delta_ta < -TA_MAX_DEC_STEP)</span><br><span>                  delta_ta = -TA_MAX_DEC_STEP;</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-bts/+/25443">change 25443</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/+/25443"/><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: I4c5825df4291d3851a113027abf7566de343a190 </div>
<div style="display:none"> Gerrit-Change-Number: 25443 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: pespin <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>