<p>Daniel Willmann has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/13358">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">OC-2G: Fix TA adjustment<br><br>Problem:<br> TA provided from L1 PH-DATA-IND is a relative amount of TA adjustment to actual TA<br> being used for given TBF. The current TA update algorithm in PCU simply applies the relative<br> amount of TA to given TBF but does not take into account of current TA.<br> As a result, the PCU will request wrong TA jump for given TBF if the MS is moving away from<br> BTS more than 2 km.<br><br> Related issue: http://osmocom.org/issues/2611<br><br>Fixes:<br>- The PCU needs increase or decrease current TA of given TBF on receiving of relative<br>  amount of TA adjustment provided by PH-DATA-IND from L1.<br>- The PCU needs to set absolute TA of given TBF on receiving absolute TA provided by<br>  PH-RA-IND from L1.<br><br>Change-Id: I7665586dd5722bbe04632ee5673d3033bc082324<br>---<br>M src/osmo-bts-oc2g/oc2g_l1_if.c<br>1 file changed, 2 insertions(+), 2 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/osmo-pcu refs/changes/58/13358/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/osmo-bts-oc2g/oc2g_l1_if.c b/src/osmo-bts-oc2g/oc2g_l1_if.c</span><br><span>index 3855da1..ccf7431 100644</span><br><span>--- a/src/osmo-bts-oc2g/oc2g_l1_if.c</span><br><span>+++ b/src/osmo-bts-oc2g/oc2g_l1_if.c</span><br><span>@@ -210,7 +210,7 @@</span><br><span> </span><br><span>       get_meas(&meas, &data_ind->measParam);</span><br><span>    bts_update_tbf_ta("PH-DATA", data_ind->u32Fn, fl1h->trx_no,</span><br><span style="color: hsl(0, 100%, 40%);">-                       data_ind->u8Tn, qta2ta(meas.bto));</span><br><span style="color: hsl(120, 100%, 40%);">+                         data_ind->u8Tn, sign_qta2ta(meas.bto), false);</span><br><span> </span><br><span>      switch (data_ind->sapi) {</span><br><span>         case GsmL1_Sapi_Pdtch:</span><br><span>@@ -250,7 +250,7 @@</span><br><span> </span><br><span>     DEBUGP(DL1IF, "Rx PH-RA.ind");</span><br><span>     bts_update_tbf_ta("PH-RA", ra_ind->u32Fn, fl1h->trx_no, ra_ind->u8Tn,</span><br><span style="color: hsl(0, 100%, 40%);">-                          qta2ta(ra_ind->measParam.i16BurstTiming));</span><br><span style="color: hsl(120, 100%, 40%);">+                       sign_qta2ta(ra_ind->measParam.i16BurstTiming), true);</span><br><span> </span><br><span>         return 0;</span><br><span> }</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/13358">change 13358</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/13358"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-pcu </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: I7665586dd5722bbe04632ee5673d3033bc082324 </div>
<div style="display:none"> Gerrit-Change-Number: 13358 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Daniel Willmann <dwillmann@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: Minh-Quang Nguyen <minh-quang.nguyen@nutaq.com> </div>