<p>pespin <strong>uploaded patch set #2</strong> to this change.</p><p><a href="https://gerrit.osmocom.org/c/osmo-bts/+/15706">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">bts-trx: Time out if no clock ind recvd after RSP POWERON<br><br>Before this patch, if due to whatever reason the TRX started fine (RSP<br>POWERON 0) and sockets were created but no CLOCK IND was ever received<br>by the BTS, it wouldn't notice since the timerfd timeouts<br>(bts_shutdown("no clock")) are only checked after the first CLOCK IND is<br>sent by the TRX.<br>As a result, the BTS would be kept on forever saying everything is fine<br>but it would be sending no DL burst at all to the TRX (tested with a<br>modfied osmo-trx dropping clock indication).<br>With this patch, new APIs are added to indicate the scheduler_trx code<br>the timeframes where clock ind are expected (between RSP POWERON 0 and<br>RSP POWEROFF 0); if TRX sends clock indications out of that timeframe,<br>BTs lower layers will drop them (controlled by "powered" bool).<br>Hence, the scheduler_trx can now place a timeout (reusing same timerfd<br>because its new use is exclusive in time with its other previous use)<br>when it is told that CLOCK IND should start appearing, and if none<br>arrives in considerable time, then the BTS can be shut down to notify<br>the rest of the network.<br><br>Related: OS#4215<br>Change-Id: Iba5dbe867aff10e70ec73dbf1f7aeeecb15c0a4d<br>---<br>M include/osmo-bts/scheduler.h<br>M src/osmo-bts-trx/l1_if.c<br>M src/osmo-bts-trx/scheduler_trx.c<br>3 files changed, 57 insertions(+), 2 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/06/15706/2</pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-bts/+/15706">change 15706</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/+/15706"/><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: Iba5dbe867aff10e70ec73dbf1f7aeeecb15c0a4d </div>
<div style="display:none"> Gerrit-Change-Number: 15706 </div>
<div style="display:none"> Gerrit-PatchSet: 2 </div>
<div style="display:none"> Gerrit-Owner: pespin <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder </div>
<div style="display:none"> Gerrit-Reviewer: fixeria <axilirator@gmail.com> </div>
<div style="display:none"> Gerrit-Reviewer: laforge <laforge@osmocom.org> </div>
<div style="display:none"> Gerrit-CC: ipse <Alexander.Chemeris@gmail.com> </div>
<div style="display:none"> Gerrit-MessageType: newpatchset </div>