<p style="white-space: pre-wrap; word-wrap: break-word;">I am wondering, may we share this code somewhere in libosmocore?</p><p style="white-space: pre-wrap; word-wrap: break-word;">I just checked both OsmocomBB firmware and osmo-bts-trx - in both<br>cases the frame number of decoded L2 frame on TCH/H is calculated<br>in a wrong way. The firmware is just using frame number of the<br>last burst, while OsmoBTS is using frame number of 3/4 burst<br>for speech, and 5/6 burst for FACCH/H (bid == 0).</p><p style="white-space: pre-wrap; word-wrap: break-word;">TCH/F channel is also affected: the firmware is using frame number<br>of the last 8/8 burst, osmo-bts-trx is using frame number of 4/8<br>burst, while for xCCH the correct frame number of 1/4 burst is<br>used everywhere...</p><p style="white-space: pre-wrap; word-wrap: break-word;">This also raises a question: why should we use frame number of<br>the first burst in general? Why not frame number of the last?</p><p><a href="https://gerrit.osmocom.org/10942">View Change</a></p><p>1 comment:</p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.osmocom.org/#/c/10942/1/src/host/trxcon/scheduler.h">File src/host/trxcon/scheduler.h:</a></p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/#/c/10942/1/src/host/trxcon/scheduler.h@14">Patch Set #1, Line 14:</a> <code style="font-family:monospace,monospace">#define TDMA_FN_SUM(a, b) \</code></p><p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;">you could implement TDMA_FN_INC(fn) as TDMA_FN_SUM(fn, 1)</blockquote></p><p style="white-space: pre-wrap; word-wrap: break-word;">Sure, thanks!</p></li></ul></li></ul><p>To view, visit <a href="https://gerrit.osmocom.org/10942">change 10942</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/10942"/><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-MessageType: comment </div>
<div style="display:none"> Gerrit-Change-Id: Ibb66ba846cc3d6c2eaa88414569e5f3751128047 </div>
<div style="display:none"> Gerrit-Change-Number: 10942 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Vadim Yanitskiy <axilirator@gmail.com> </div>
<div style="display:none"> Gerrit-Reviewer: Harald Welte <laforge@gnumonks.org> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder (1000002) </div>
<div style="display:none"> Gerrit-Reviewer: Vadim Yanitskiy <axilirator@gmail.com> </div>
<div style="display:none"> Gerrit-Comment-Date: Sat, 15 Sep 2018 18:44:47 +0000 </div>
<div style="display:none"> Gerrit-HasComments: Yes </div>
<div style="display:none"> Gerrit-HasLabels: No </div>