MeterLutUpdate improved,
GenesisMeter checks "DN" to decide for "EMEA"
This commit is contained in:
@@ -1245,6 +1245,9 @@ namespace Xylem.Common.Hardware.WaterMeter.Genesis.GenesisCore
|
||||
/// - RadioFrequencyMhz introduced as Int32? (null if "NA" region or not installed),
|
||||
/// - LutCrc from String to Int32?.
|
||||
/// </remarks>
|
||||
/// <remarks date="2023-Jan-16" author="Thomas Wiedebusch">
|
||||
/// - Checked meter size string for "DN", than it cannot be an EMEA version.
|
||||
/// </remarks>
|
||||
private void ReadMeterFirmwareAndAssignRegisters()
|
||||
{
|
||||
//avoid overwriting of list if this already exits
|
||||
@@ -1359,7 +1362,8 @@ namespace Xylem.Common.Hardware.WaterMeter.Genesis.GenesisCore
|
||||
try
|
||||
{
|
||||
var radioFrequencyRaw = ReadRegister(Register.Sensusradio.FrequencyIndicator);
|
||||
if (radioFrequencyRaw != null)
|
||||
// check meter size string contains "DN", because if "US" it cannot be an EMEA version
|
||||
if (radioFrequencyRaw != null && MeterSize.Contains("DN"))
|
||||
{
|
||||
Region = "EMEA";
|
||||
RadioFrequencyMhz = RegisterConverter.ConvertTo<Int32>(radioFrequencyRaw);
|
||||
|
||||
@@ -434,6 +434,9 @@ namespace Xylem.Common.Hardware.WaterMeter.Genesis.GenesisFile
|
||||
/// <remarks date="2022-Mar-04" author="Thomas Wiedebusch">
|
||||
/// - Introduced lock for repeated execution of state machine
|
||||
/// </remarks>
|
||||
/// <remarks date="2023-Jan-16" author="Thomas Wiedebusch">
|
||||
/// - Started state machine with download of new mettbl.
|
||||
/// </remarks>
|
||||
private void LutUpdateStateMachine()
|
||||
{
|
||||
if (_lutBackupUpdateState == _lutUpdateState)
|
||||
@@ -451,7 +454,9 @@ namespace Xylem.Common.Hardware.WaterMeter.Genesis.GenesisFile
|
||||
|
||||
case LutUpdateState.StartInitial:
|
||||
_updateProcedureRetryCtr = 0;
|
||||
_lutUpdateState = LutUpdateState.EraseLutFile;
|
||||
_lutUpdateState = LutUpdateState.DownloadLutFile;
|
||||
|
||||
//_lutUpdateState = LutUpdateState.EraseLutFile;
|
||||
break;
|
||||
|
||||
case LutUpdateState.EraseLutFile:
|
||||
|
||||
+1
-1
@@ -1 +1 @@
|
||||
5ed75d99ee45ff67821090f1b3dbb001dd9e4fe3
|
||||
1a3d4919c9c702245832d925951f2b7cb72fc333
|
||||
|
||||
Reference in New Issue
Block a user