CUST: - FwUpadteBuilder: - FLEXNETVERSIOn handling: version as hex value e.g. 0x1107 or 0x106F and string "1.1.07" or "1.0.6F"

This commit is contained in:
Thomas Wiedebusch
2024-05-02 17:48:54 +02:00
parent bf2e376870
commit f7620887b2
7 changed files with 670 additions and 665 deletions
@@ -81,7 +81,6 @@
<Compile Include="FwUpdateAppVersionDb.cs" />
<Compile Include="FwUpdateDb.cs" />
<Compile Include="FwUpdateSafeDb.cs" />
<Compile Include="FwUpdatePowerCorrectionDb.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="FwUpdateReportDb.cs" />
</ItemGroup>
@@ -1,55 +0,0 @@
using System;
namespace Xylem.ServiceFwUpdate.Common.FwUpdateDb
{
/// <summary>
/// Power correction parameters from DB accumulated at EOL - Production
/// </summary>
public class FwUpdatePowerCorrectionDb
{
/// <summary>
/// Unique identification of PCB
/// </summary>
public String PcbId { get; set; }
/// <summary>
/// Date time UTC at EOL - Production
/// </summary>
public DateTime? ProductionDateTimeUtc { get; set; }
/// <summary>
/// Total used seconds at EOL - Production
/// </summary>
public UInt32 ProductionTotalUsedSeconds_s { get; set; }
/// <summary>
/// Total used charge of batteries at EOL - Production
/// </summary>
public UInt64 ProductionTotalUsedCharge_uAs { get; set; }
/// <summary>
/// Radio system state at EOL - Production
/// </summary>
public Byte? ProductionRadioSystemState { get; set; }
/// <summary>
/// Pulse adapter was installed during at EOL - Production
/// </summary>
public Boolean ProductionPulseAdapterIsInstalled { get; set; }
/// <summary>
/// Pulse mode during at EOL - Production
/// </summary>
public Byte ProductionPulseMode { get; set; }
/// <summary>
/// Pulse distribution at EOL - Production
/// </summary>
public Boolean ProductionPulseEvenDistribution { get; set; }
/// <summary>
/// Detected region at EOL - Production
/// </summary>
public String ProductionRegion { get; set; }
}
}
@@ -1,5 +1,6 @@
using System;
using System.Collections.Generic;
using Xylem.Common.Hardware.WaterMeter.Genesis.GenesisCore;
using Xylem.Common.Hardware.WaterMeter.Genesis.GenesisFile;
using Xylem.Common.Hardware.WaterMeter.Genesis.Registers;
@@ -21,6 +22,11 @@ namespace Xylem.ServiceFwUpdate.Common.FwUpdateSafe
/// </summary>
public String CustomerSerialNumber;
/// <summary>
/// Installed FW version
/// </summary>
public Int32? InstalledFwVersion;
/// <summary>
/// Password container
/// </summary>
@@ -36,6 +42,11 @@ namespace Xylem.ServiceFwUpdate.Common.FwUpdateSafe
/// </summary>
public Boolean RegisterRecoveryRequired;
/// <summary>
/// Power correction values from data base
/// </summary>
public PowerCorrection PowerCorrectionValues;
/// <summary>
/// Marker to read engineering log for data analysis
/// </summary>
@@ -93,6 +93,10 @@
<Project>{a25a96fd-604b-43be-80cd-a953152c2175}</Project>
<Name>Cryptology</Name>
</ProjectReference>
<ProjectReference Include="..\..\..\Common\Hardware\WaterMeter\Genesis\GenesisCore\GenesisCore.csproj">
<Project>{04201E95-90A0-4B73-A72F-379739B2A3AE}</Project>
<Name>GenesisCore</Name>
</ProjectReference>
<ProjectReference Include="..\..\..\Common\Hardware\WaterMeter\Genesis\GenesisFile\GenesisFile.csproj">
<Project>{2C6378C6-6BA1-4CEE-8992-8404D8369A90}</Project>
<Name>GenesisFile</Name>
File diff suppressed because it is too large Load Diff
@@ -27,6 +27,11 @@ namespace Xylem.ServiceFwUpdate.Ui.FwUpdateBuilder
/// </summary>
public Boolean RecoveryNotNeededOrLoaded;
/// <summary>
/// Check marker if power correction not required or, if required, if those
/// could be loaded successfully from DB. True if good.
/// </summary>
public Boolean PowerCorrectionNotNeededOrLoaded;
/// <summary>
/// The release container has been loaded from DB.
/// </summary>
public Boolean ReleaseContainerLoaded;