CUST: - Moved recovery sequencing from FwUpdateBuilder to FwUpdateSw to inform in report about ongoing sequence (preparation, execution and finalization of recovery)
This commit is contained in:
@@ -267,6 +267,10 @@ namespace Xylem.ServiceFwUpdate.Common.FwUpdateDb
|
||||
/// <remarks date="2023-10-19" author="Thomas Wiedebusch">
|
||||
/// - Sort the registers from DB but keep the PrepareProgramming and FinalizeProgramming in the required sequence.
|
||||
/// </remarks>
|
||||
/// <remarks date="2023-10-25" author="Thomas Wiedebusch">
|
||||
/// - Removed preparation and finalization of register recovery to remove sequencing as this will be done in the
|
||||
/// RegisterRestorer by the FwUpdateSw worker giving the ability to log this in the report.
|
||||
/// </remarks>
|
||||
public Boolean DownloadCordonelRecoveryRegistersFromDb(String pcbId, out List<RecoveryRegisterItem> recoveryRegisters)
|
||||
{
|
||||
recoveryRegisters = new List<RecoveryRegisterItem>();
|
||||
@@ -293,7 +297,6 @@ namespace Xylem.ServiceFwUpdate.Common.FwUpdateDb
|
||||
// finalization of programming and therefore building a sequence
|
||||
var sortableProgrammingParameters = new List<ProgrammingParameters>();
|
||||
|
||||
|
||||
foreach (var proPar in programmingParameters)
|
||||
{
|
||||
// reverse byte order for all parameters except those listed below
|
||||
@@ -337,22 +340,9 @@ namespace Xylem.ServiceFwUpdate.Common.FwUpdateDb
|
||||
if (DbProgrammingParameters == null)
|
||||
DbProgrammingParameters = new List<ProgrammingParameters>();
|
||||
|
||||
// ATTENTION:
|
||||
// Here the logical programming sequence will be built. Keep this sequence and do
|
||||
// sort afterwards!
|
||||
//
|
||||
// Prepare meter for programming
|
||||
DbProgrammingParameters.AddRange(RegisterRestorer.PrepareProgramming);
|
||||
// Add the settings which should be dispatched to the meter to reconfigure it
|
||||
DbProgrammingParameters.AddRange(sortableProgrammingParameters);
|
||||
// Set all for parameters needed to finalize programming
|
||||
DbProgrammingParameters.AddRange(RegisterRestorer.FinalizeProgramming);
|
||||
// Add radio parameters if any radio setting can be detected
|
||||
if (DbProgrammingParameters.Any(x => x.RegisterName.Contains("SENSUSRADIO")))
|
||||
{
|
||||
DbProgrammingParameters.AddRange(RegisterRestorer.FinalizeProgrammingRadioOnly);
|
||||
}
|
||||
|
||||
|
||||
// convert to RecoveryRegisterItem
|
||||
if (DbProgrammingParameters.Count > 0)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user