<p>fixeria <strong>uploaded patch set #3</strong> to this change.</p><p><a href="https://gerrit.osmocom.org/c/osmocom-bb/+/17350">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">trxcon/scheduler: refactor Downlink measurement processing<br><br>So far we used to store the sums of ToA and RSSI measurements in the<br>logical channel state, and after decoding of a block, we did calculate<br>the average. This approach works fine for xCCH and PDTCH, but when it<br>comes to block-diagonal interleaving (which is used on TCH/F and TCH/H<br>channels), the results are incorrect. The problem is that a burst on<br>TCH may carry 57 bits of one encoded frame and 57 bits of another.<br><br>Instead of calculating the sum of measurements on the fly, let's push<br>them into a circular buffer (the measurement history), and keep them<br>there even after decoding of a block. This would allow us to calculate<br>the average of N last measurements depending on the interleaving type.<br><br>A single circular buffer can hold up to 8 unique measurements, so the<br>recent measurements would basically override the oldest ones.<br><br>Change-Id: I211ee3314f0a284112a4deddc0e93028f4a27cef<br>---<br>M src/host/trxcon/sched_lchan_common.c<br>M src/host/trxcon/sched_lchan_desc.c<br>M src/host/trxcon/sched_lchan_pdtch.c<br>M src/host/trxcon/sched_lchan_sch.c<br>M src/host/trxcon/sched_lchan_tchf.c<br>M src/host/trxcon/sched_lchan_tchh.c<br>M src/host/trxcon/sched_lchan_xcch.c<br>M src/host/trxcon/sched_trx.c<br>M src/host/trxcon/sched_trx.h<br>M src/host/trxcon/trx_if.c<br>10 files changed, 140 insertions(+), 74 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/osmocom-bb refs/changes/50/17350/3</pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmocom-bb/+/17350">change 17350</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/osmocom-bb/+/17350"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmocom-bb </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: I211ee3314f0a284112a4deddc0e93028f4a27cef </div>
<div style="display:none"> Gerrit-Change-Number: 17350 </div>
<div style="display:none"> Gerrit-PatchSet: 3 </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: laforge <laforge@osmocom.org> </div>
<div style="display:none"> Gerrit-MessageType: newpatchset </div>