GenesisMeter: - Quick Login removed

FwUpdateSw: - Check radio NOT in production mode
This commit is contained in:
Thomas Wiedebusch
2023-02-20 18:53:49 +01:00
parent a0eff86d6f
commit 94d9b1f02e
7 changed files with 46 additions and 47 deletions
@@ -1036,20 +1036,6 @@ namespace Xylem.Common.Hardware.WaterMeter.Genesis.GenesisCore
return Login(_password);
}
/// <remarks date="2018JAN08" author="drabesch">
/// Get password from server
/// </remarks>
public Boolean QuickLogin()
{
if (string.IsNullOrEmpty(_password) || string.IsNullOrEmpty(PcbId))
{
var password = GetPassword();
return !string.IsNullOrEmpty(password) && Login(password, true, true);
}
return Login(_password, true, true);
}
/// <summary>
/// Login with identical password as last time
/// </summary>
@@ -1087,7 +1073,6 @@ namespace Xylem.Common.Hardware.WaterMeter.Genesis.GenesisCore
}
/// <inheritdoc />
/// <summary>
/// Starting a timer to keep session active,
/// starting the <see cref="KeepSessionThreadLoop"/>.
@@ -1095,7 +1080,6 @@ namespace Xylem.Common.Hardware.WaterMeter.Genesis.GenesisCore
/// <param name="password">password string to login</param>
/// <param name="runImmediately"> true = process command; false = add command to list. call
/// <see cref="RequestProtocolProcess()"></see> to process login command </param>
/// <param name="quickLogin"></param>
/// <returns></returns>
/// <remarks date="2019JAN01" author="drabesch">
/// pass runImmediately for auto login
@@ -1103,7 +1087,10 @@ namespace Xylem.Common.Hardware.WaterMeter.Genesis.GenesisCore
/// <remarks date="2021-Feb-02" author="Thomas Wiedebusch">
/// - Avoid retries during login, a retry will lock the Genesis for 2s, 4s, 8s, 16s and so on.
/// </remarks>
public Boolean Login(String password, Boolean runImmediately = true, Boolean quickLogin = false)
/// <remarks date="2023-Feb-20" author="Thomas Wiedebusch">
/// - Quick login removed.
/// </remarks>
public Boolean Login(String password, Boolean runImmediately = true)
{
var backupRetries = CommunicationConfig.RequestRetries;
@@ -1128,17 +1115,6 @@ namespace Xylem.Common.Hardware.WaterMeter.Genesis.GenesisCore
_logger.Info($"Slot:{Slot} - Successful logged in to meter");
StartKeepSession();
if (quickLogin)
{
WriteRegister(Register.Mertrologyasst.PulseMode, 0, true, true);
//avoid access if radio app is not installed
if (RadioFrequencyMhz != null)
{
WriteRegister(Register.Sensusradio.WakeupInterval, 6, true, true);
WriteRegister("SENSUSRADIO_SystemState", 1, true, true);
}
}
if (Configuration != null && !Configuration.ProductionMode)
{
IsDevelopmentUsage = true;
@@ -121,8 +121,7 @@ namespace Xylem.Common.Hardware.WaterMeter.WaterMeterCore
/// </summary>
/// <param name="password">password for login</param>
/// <param name="runImmediately">execute immediately</param>
/// <param name="quickLogin">speed up login</param>
Boolean Login(String password, Boolean runImmediately = true, Boolean quickLogin = false);
Boolean Login(String password, Boolean runImmediately = true);
/// <summary>
/// set up measurement parameter and set meter into test-mode