<p>pespin <strong>submitted</strong> this change.</p><p><a href="https://gerrit.osmocom.org/c/osmo-gsm-tester/+/20641">View Change</a></p><div style="white-space:pre-wrap">Approvals:
  pespin: Looks good to me, approved; Verified

</div><pre style="font-family: monospace,monospace; white-space: pre-wrap;">rfemu_srsenb_stdin: use negative dB value to set attenuation<br><br>the logic for the RF emulator on the command line is, like the<br>Amarisoft equivalent, to set a negative gain value to express<br>attenuation. Therefore, the sign needs to be inverted.<br><br>Change-Id: I7b6ac611a9f711bbdc1570602bfd797a5346ab86<br>---<br>M src/osmo_gsm_tester/obj/rfemu_srsenb_stdin.py<br>1 file changed, 1 insertion(+), 1 deletion(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/osmo_gsm_tester/obj/rfemu_srsenb_stdin.py b/src/osmo_gsm_tester/obj/rfemu_srsenb_stdin.py</span><br><span>index ca23020..e4aec19 100644</span><br><span>--- a/src/osmo_gsm_tester/obj/rfemu_srsenb_stdin.py</span><br><span>+++ b/src/osmo_gsm_tester/obj/rfemu_srsenb_stdin.py</span><br><span>@@ -42,7 +42,7 @@</span><br><span> # PUBLIC (test API included)</span><br><span> #############################</span><br><span>     def set_attenuation(self, db):</span><br><span style="color: hsl(0, 100%, 40%);">-        msg_str = 'cell_gain %d %f' % (self.cell_id, db)</span><br><span style="color: hsl(120, 100%, 40%);">+        msg_str = 'cell_gain %d %f' % (self.cell_id, -db)</span><br><span>         self.dbg('sending stdin msg: "%s"' % msg_str)</span><br><span>         self.enb.process.stdin_write(msg_str + '\n')</span><br><span> </span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-gsm-tester/+/20641">change 20641</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-gsm-tester/+/20641"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-gsm-tester </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: I7b6ac611a9f711bbdc1570602bfd797a5346ab86 </div>
<div style="display:none"> Gerrit-Change-Number: 20641 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: srs_andre <andre@softwareradiosystems.com> </div>
<div style="display:none"> Gerrit-Reviewer: pespin <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-MessageType: merged </div>