From d33726e8936ad888edce372a18c593ac9bac3e1f Mon Sep 17 00:00:00 2001 From: AE6XE Date: Mon, 14 Dec 2015 21:44:08 -0800 Subject: [PATCH] bugfix: resolved rssi shift condition that needed a noise floor calibration --- files/usr/local/bin/rssi_monitor | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/files/usr/local/bin/rssi_monitor b/files/usr/local/bin/rssi_monitor index 7ccf7243..d918fc48 100755 --- a/files/usr/local/bin/rssi_monitor +++ b/files/usr/local/bin/rssi_monitor @@ -156,7 +156,7 @@ for (keys %rssi) { $hit = 0 ; $sdH3 = int(3 * $rssiHist{$_}{"sdH"} + .5); - # is the RSSI attenuated and 3 standard deviations away? Test is only 1 chain has dropped, not both. + # is the RSSI attenuated and 3 standard deviations away? if (abs ($rssiHist{$_}{"aveH"} - $rssi{$_}{"Hrssi"}) > $sdH3) { $hit += 1; } if ( $antnum ) { @@ -164,7 +164,7 @@ for (keys %rssi) if (abs ( $rssiHist{$_}{"aveV"} - $rssi{$_}{"Vrssi"}) > $sdV3) { $hit += 1; } } - if ($rssiHist{$_}{"num"} > 9 and $ofdm_level <= 2 and $hit == 1) + if ($rssiHist{$_}{"num"} > 9 and $ofdm_level <= 2 and $hit > 0) { # Overly Attenuated Chain Suspected $datestring = localtime(); if ($antnum)