From 40ca2394606324c763dca61f71c0cf8224b4ddc2 Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Wed, 23 Jan 2019 10:34:27 +0100 Subject: DPDCE: reduce rxgain to 30 in case of calibration failure --- python/dpd/RX_Agc.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'python/dpd') diff --git a/python/dpd/RX_Agc.py b/python/dpd/RX_Agc.py index 911f3c9..bb940be 100644 --- a/python/dpd/RX_Agc.py +++ b/python/dpd/RX_Agc.py @@ -73,6 +73,11 @@ class Agc: w = "Warning: calculated RX Gain={} is higher than maximum={}. RX feedback power should be increased.".format( self.rxgain, self.max_rxgain) logging.warning(w) + try: + # Reset to a low value, as we expect the user to reduce external attenuation + self.adapt.set_rxgain(30) + except ValueError as e: + return (False, "\n".join([measurements, w, "Setting RX gain to {} failed: {}".format(self.rxgain, e)])) return (False, "\n".join([measurements, w])) else: try: -- cgit v1.2.3