Merge stage
This commit is contained in:
@@ -18,7 +18,28 @@ namespace Xylem.Common.Hardware.WaterMeter.Genesis.Applications
|
||||
/// <summary>
|
||||
/// address of application
|
||||
/// </summary>
|
||||
public Byte AppId;
|
||||
/// <remarks date="2025-Aug-05" author="Thomas Wiedebusch">
|
||||
/// - AppId from Byte to UInt16 including typecast for Byte[] return. To external, it will be used as Byte
|
||||
/// as before this change. But being able to parse the configuration.json with OPTICALINTERFACE using the
|
||||
/// AppId 256, which exceeds the byte range as this isn't a real application, but will be used to identify
|
||||
/// the interface (configuration.json) version.
|
||||
/// </remarks>
|
||||
public UInt16 AppId;
|
||||
|
||||
/// <summary>
|
||||
/// version of the application
|
||||
/// </summary>
|
||||
public Int32? AppVersion;
|
||||
|
||||
/// <summary>
|
||||
/// Max supported version of configuration.json for region EMEA.
|
||||
/// </summary>
|
||||
public String InterfaceMaxEmeaVersion;
|
||||
|
||||
/// <summary>
|
||||
/// Max supported version of configuration.json for region NA.
|
||||
/// </summary>
|
||||
public String InterfaceMaxNaVersion;
|
||||
|
||||
/// <summary>
|
||||
/// Get application name
|
||||
|
||||
@@ -17,7 +17,13 @@ namespace Xylem.Common.Hardware.WaterMeter.Genesis.Applications
|
||||
/// <summary>
|
||||
/// Identification number of application
|
||||
/// </summary>
|
||||
public Byte AppId;
|
||||
/// <remarks date="2025-Aug-05" author="Thomas Wiedebusch">
|
||||
/// - AppId from Byte to UInt16 including typecast for Byte[] return. To external, it will be used as Byte
|
||||
/// as before this change. But being able to parse the configuration.json with OPTICALINTERFACE using the
|
||||
/// AppId 256, which exceeds the byte range as this isn't a real application, but will be used to identify
|
||||
/// the interface (configuration.json) version.
|
||||
/// </remarks>
|
||||
public UInt16 AppId;
|
||||
|
||||
/// <summary>
|
||||
/// Version of application
|
||||
@@ -25,10 +31,9 @@ namespace Xylem.Common.Hardware.WaterMeter.Genesis.Applications
|
||||
public UInt32 Version;
|
||||
|
||||
/// <summary>
|
||||
/// Version string of application because of FLEXNETVERSION
|
||||
/// does return a different layout, instead of decimals it
|
||||
/// used hexadecimals. Therefore the version has to be saved as
|
||||
/// string at time of receiving for the FW-Update comparison
|
||||
/// Version string of application because of FLEXNETVERSION does return a different layout, instead of decimals
|
||||
/// it uses hexadecimals. Therefore, the version has to be saved as string at time of receiving for the FW-Update
|
||||
/// comparison.
|
||||
/// </summary>
|
||||
public String StrVersion;
|
||||
|
||||
|
||||
@@ -10,19 +10,25 @@ namespace Xylem.Common.Hardware.WaterMeter.Genesis.GenesisCore.Consts
|
||||
{
|
||||
// ReSharper disable InconsistentNaming
|
||||
#pragma warning disable CS1591
|
||||
REBOOT = 1 << 0,
|
||||
LOW_BATTERY = 1 << 1,
|
||||
EMPTY_PIPE = 1 << 4,
|
||||
REVERSE_FLOW = 1 << 6,
|
||||
SUSPECT_LEAK = 1 << 7,
|
||||
BROKEN_PIPE = 1 << 8,
|
||||
LOW_PRESSURE = 1 << 9,
|
||||
HIGH_PRESSURE = 1 << 10,
|
||||
LOW_TEMPERATURE = 1 << 11,
|
||||
HIGH_TEMPERATURE = 1 << 12,
|
||||
RADIO_ERROR = 1 << 13,
|
||||
METROLOGY_PARAMS = 1 << 14,
|
||||
METROLOGY_MEASURE = 1 << 15,
|
||||
REBOOT = 1 << 0, //Bit 0
|
||||
LOW_BATTERY = 1 << 1, //Bit 1
|
||||
//Bit 2
|
||||
//Bit 3
|
||||
|
||||
EMPTY_PIPE = 1 << 4, //Bit 4
|
||||
//Bit 5
|
||||
REVERSE_FLOW = 1 << 6, //Bit 6
|
||||
SUSPECT_LEAK = 1 << 7, //Bit 7
|
||||
|
||||
BROKEN_PIPE = 1 << 8, //Bit 8
|
||||
LOW_PRESSURE = 1 << 9, //Bit 9
|
||||
HIGH_PRESSURE = 1 << 10, //Bit 10
|
||||
LOW_TEMPERATURE = 1 << 11, //Bit 11
|
||||
|
||||
HIGH_TEMPERATURE = 1 << 12, //Bit 12
|
||||
RADIO_ERROR = 1 << 13, //Bit 13
|
||||
METROLOGY_PARAMS = 1 << 14, //Bit 14
|
||||
METROLOGY_MEASURE = 1 << 15, //Bit 15
|
||||
|
||||
ALL = 0xFFFFFF,
|
||||
#pragma warning restore CS1591
|
||||
|
||||
@@ -60,6 +60,15 @@
|
||||
/// <param name="configurationJson"></param>
|
||||
/// <returns></returns>
|
||||
/// <exception cref="Exception"></exception>
|
||||
/// <remarks date="2025-Aug-05" author="Thomas Wiedebusch">
|
||||
/// - AppId from Byte to UInt16 including typecast for Byte[] return. To external, it will be used as Byte
|
||||
/// as before this change. But being able to parse the configuration.json with OPTICALINTERFACE using the
|
||||
/// AppId 256, which exceeds the byte range as this isn't a real application, but will be used to identify
|
||||
/// the interface (configuration.json) version.
|
||||
/// </remarks>
|
||||
/// <remarks date="2025-Aug-07" author="Thomas Wiedebusch">
|
||||
/// - Extract the max supported versions for EMEA and NA to check the supported FW.
|
||||
/// </remarks>
|
||||
public void BuildRegisterList(String configurationJson)
|
||||
{
|
||||
IDictionary<String, AppSection> sections;
|
||||
@@ -79,12 +88,35 @@
|
||||
{
|
||||
var appId = sectionKVP.Value.Id;
|
||||
var appName = sectionKVP.Key;
|
||||
var appVersion = sectionKVP.Value.Version.Last;
|
||||
if (appName.Equals("OPTICALINTERFACE"))
|
||||
{
|
||||
var builds = sectionKVP.Value.Builds;
|
||||
var emeaBuilds = builds["emea"];
|
||||
var naBuilds = builds["na"];
|
||||
String maxSupportedEmeaVersion = "";
|
||||
String maxSupportedNaVersion = "";
|
||||
if (emeaBuilds.Count > 0)
|
||||
maxSupportedEmeaVersion = emeaBuilds[emeaBuilds.Count - 1].FW;
|
||||
if (naBuilds.Count > 0)
|
||||
maxSupportedNaVersion = naBuilds[naBuilds.Count - 1].FW;
|
||||
ConfigApplicationDefinitions.Add(new ApplicationDefinition
|
||||
{
|
||||
AppId = appId,
|
||||
AppName = appName,
|
||||
AppVersion = appVersion,
|
||||
InterfaceMaxEmeaVersion = maxSupportedEmeaVersion,
|
||||
InterfaceMaxNaVersion = maxSupportedNaVersion
|
||||
});
|
||||
continue;
|
||||
}
|
||||
|
||||
ConfigApplicationDefinitions.Add(new ApplicationDefinition
|
||||
{
|
||||
AppId = appId,
|
||||
AppName = appName
|
||||
});
|
||||
AppName = appName,
|
||||
AppVersion = appVersion,
|
||||
});
|
||||
|
||||
var section = sectionKVP.Value;
|
||||
|
||||
@@ -123,7 +155,7 @@
|
||||
AppName = appName,
|
||||
DataType = GetType(detail.Type),
|
||||
Default = values?.Default is Int64 d ? d : default(Int64?),
|
||||
IsAvailable = default(Boolean),
|
||||
IsAvailable = false,
|
||||
Maximum = values?.Maximum is Int64 max ? max : default(Int64?),
|
||||
Minimum = values?.Minimum is Int64 min ? min : default(Int64?),
|
||||
RegAddressInApp = regId,
|
||||
|
||||
@@ -228,6 +228,27 @@ namespace Xylem.Common.Hardware.WaterMeter.Genesis.GenesisCore
|
||||
protected set; get;
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
public String InterfaceVersion
|
||||
{
|
||||
protected set;
|
||||
get;
|
||||
} = "?";
|
||||
|
||||
/// <inheritdoc />
|
||||
public String InterfaceMaxFwVersion
|
||||
{
|
||||
protected set;
|
||||
get;
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
public Boolean InterfaceSupportsFwVersion
|
||||
{
|
||||
protected set;
|
||||
get;
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
public String Region
|
||||
{
|
||||
@@ -235,7 +256,8 @@ namespace Xylem.Common.Hardware.WaterMeter.Genesis.GenesisCore
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
public String MeterLength {
|
||||
public String MeterLength
|
||||
{
|
||||
set;
|
||||
get;
|
||||
} = "?";
|
||||
@@ -539,7 +561,9 @@ namespace Xylem.Common.Hardware.WaterMeter.Genesis.GenesisCore
|
||||
|
||||
try
|
||||
{
|
||||
var str = LocalWebRequest.GetRequest($"{ServiceUrls.FileContentControllerUrl()}GetUpdateFileContent?FileName={fi.Name}&ClientFileDate={fi.CreationTime.ToString("yyyy-MM-ddTHH:mm:ss.fffZ")}&isDeveloper=0", 30000);
|
||||
var str = LocalWebRequest.GetRequest($"{ServiceUrls.FileContentControllerUrl()}GetUpdateFileContent?FileName={fi.Name}" +
|
||||
$"&ClientFileDate={fi.CreationTime:yyyy-MM-ddTHH:mm:ss.fffZ}" +
|
||||
"&isDeveloper=0", 30000);
|
||||
if (!string.IsNullOrEmpty(str.Trim('\"')))
|
||||
{
|
||||
var baseFile = JsonConvert.DeserializeObject<BaseFile>(str);
|
||||
@@ -660,14 +684,14 @@ namespace Xylem.Common.Hardware.WaterMeter.Genesis.GenesisCore
|
||||
}
|
||||
if (string.IsNullOrEmpty(CurrentActionText))
|
||||
{
|
||||
Logger = NLogHelper.CreateOrGetMultiLogger($"Slot:{Slot}", $"", "Meter", "MeterBase", "MeterBase");
|
||||
Logger = NLogHelper.CreateOrGetMultiLogger($"Slot:{Slot}", "", "Meter", "MeterBase", "MeterBase");
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
var id = !string.IsNullOrEmpty(SerialNumber) ? $"SN{SerialNumber}" : $"PCB{PcbId}";
|
||||
|
||||
Logger = NLogHelper.CreateOrGetMultiLogger($"Slot:{Slot}_{id}_{CurrentActionText}", $"Slot", "Meter", "MeterBase", "MeterBase");
|
||||
Logger = NLogHelper.CreateOrGetMultiLogger($"Slot:{Slot}_{id}_{CurrentActionText}", "Slot", "Meter", "MeterBase", "MeterBase");
|
||||
if (StreamingPort != null && StreamingPort is LedSerialPort)
|
||||
{
|
||||
var streamingIdent = $"LedRawData_Slot_{Slot}_{id}_{CurrentActionText}";
|
||||
@@ -694,7 +718,7 @@ namespace Xylem.Common.Hardware.WaterMeter.Genesis.GenesisCore
|
||||
|
||||
var tmpUrl = $"http://10.49.40.25/MeterProcessState/api/TestBench/SetMeterLogPathInfo?SerialNumber={SerialNumber}&TestRunId={testRunString}&BasePath={basePath}&MainLogName={pathMain}&LEDName={pathRaw}";
|
||||
Logger.Debug($"Request Url: {tmpUrl}");
|
||||
//ToDO: Update to service URl
|
||||
//TODO: Update to service URl
|
||||
LocalWebRequest.GetRequest(tmpUrl, 30000);
|
||||
|
||||
}
|
||||
@@ -1279,7 +1303,7 @@ namespace Xylem.Common.Hardware.WaterMeter.Genesis.GenesisCore
|
||||
|
||||
/// <summary>
|
||||
/// Building the FW Version string and the hexadecimal version out of 2 bytes of data or from an
|
||||
/// input string like "11.07" or "R1.1.07" or "B1.1.07" or "1.3.0B" or "9.0.2D".
|
||||
/// input string like "1107", "11.07", "R1.1.07", "B1.1.07", "1.3.0B" or "9.0.2D".
|
||||
///
|
||||
/// REASON: FLEXNETVERSION is one application which does not follow the same rule of decimal numbers.
|
||||
/// Instead, it uses hexadecimal digits.
|
||||
@@ -1620,6 +1644,13 @@ namespace Xylem.Common.Hardware.WaterMeter.Genesis.GenesisCore
|
||||
/// - BuildFlexnetFwVersion,
|
||||
/// - Calculate core revision.
|
||||
/// </remarks>
|
||||
/// <remarks date="2025-Aug-05" author="Thomas Wiedebusch">
|
||||
/// - Extract interface version (configuration.json) from "OPTICALINTERFACE".
|
||||
/// - AppId from Byte to UInt16 including typecast for Byte on WriteRegister. To external, it will be used as Byte
|
||||
/// as before this change. But being able to parse the configuration.json with OPTICALINTERFACE using the
|
||||
/// AppId 256, which exceeds the byte range as this isn't a real application, but will be used to identify
|
||||
/// the interface (configuration.json) version.
|
||||
/// </remarks>
|
||||
protected virtual void ReadMeterFirmwareAndAssignRegisters()
|
||||
{
|
||||
// Avoid overwriting of list if this already exits
|
||||
@@ -1634,15 +1665,35 @@ namespace Xylem.Common.Hardware.WaterMeter.Genesis.GenesisCore
|
||||
InstalledFwVersion = 0;
|
||||
MeterAppListVersion.Clear();
|
||||
|
||||
//Get all existing applications from meter register dictionary
|
||||
CheckRegionSizeLutCrc();
|
||||
|
||||
UInt32 interfaceMaxEmeaVersion = 0;
|
||||
UInt32 interfaceMaxNaVersion = 0;
|
||||
|
||||
// Get all existing applications from meter register dictionary
|
||||
foreach (var meterApp in ConfigApplications.OrderBy(o => o.AppId))
|
||||
{
|
||||
// The "OPTICALINTERFACE" isn't a real application as it identifies exclusively the configuration.json
|
||||
if (meterApp.AppName.Equals("OPTICALINTERFACE"))
|
||||
{
|
||||
// Build the interface id for information of compatibility from FW to configuration.json
|
||||
InterfaceVersion = BuildFwVersionStringFromDec(meterApp.AppVersion);
|
||||
// Build the max supported versions for EMEA and NA to check the supported FW
|
||||
if (Region.Equals("EMEA"))
|
||||
InterfaceMaxFwVersion = BuildFlexnetFwVersion(out interfaceMaxEmeaVersion,
|
||||
meterApp.InterfaceMaxEmeaVersion);
|
||||
if (Region.Equals("NA"))
|
||||
InterfaceMaxFwVersion = BuildFlexnetFwVersion(out interfaceMaxNaVersion,
|
||||
meterApp.InterfaceMaxNaVersion);
|
||||
continue;
|
||||
}
|
||||
|
||||
UInt32 readFwVersion = 0;
|
||||
UInt16 readFwCrc = 0;
|
||||
var isInstalled = false;
|
||||
var installationStatus = MeterAppState.MeterAppNotInstalled;
|
||||
var versionString = "";
|
||||
if (WriteRegister(Register.System.CheckFwPresence, meterApp.AppId))
|
||||
if (WriteRegister(Register.System.CheckFwPresence, (Byte)meterApp.AppId))
|
||||
{
|
||||
//read version, skip retries on SYSTEM 0x04-> FW nor present is a valid feedback
|
||||
var readFwVersionBytes = ReadRegister(Register.System.CheckFwPresence, 4);
|
||||
@@ -1652,10 +1703,11 @@ namespace Xylem.Common.Hardware.WaterMeter.Genesis.GenesisCore
|
||||
{
|
||||
//build the version string, because e.g. FLEXNETVERSION is one application which does not
|
||||
//follow the same rule. After the upper conversion, the hexadecimal outline will be lost
|
||||
if (meterApp.AppName == "FLEXNETVERSION")
|
||||
if (meterApp.AppName.Equals("FLEXNETVERSION"))
|
||||
{
|
||||
// msb and lsb are swapped during communication
|
||||
FwVersion = BuildFlexnetFwVersion(out readFwVersion, null, readFwVersionBytes[1], readFwVersionBytes[0]);
|
||||
FwVersion = BuildFlexnetFwVersion(out readFwVersion, null, readFwVersionBytes[1],
|
||||
readFwVersionBytes[0]);
|
||||
versionString = FwVersion;
|
||||
InstalledFwVersion = readFwVersion;
|
||||
}
|
||||
@@ -1701,15 +1753,12 @@ namespace Xylem.Common.Hardware.WaterMeter.Genesis.GenesisCore
|
||||
});
|
||||
}
|
||||
|
||||
CheckRegionSizeLutCrc();
|
||||
|
||||
//read metrology upgrade permission
|
||||
MetrologyUpgradePermission = RegisterConverter.ByteArrayToValue<Byte>(
|
||||
ReadRegister(Register.System.MetrologyUpgradePermission));
|
||||
|
||||
try
|
||||
{
|
||||
|
||||
//check IRDA adapter ID to check if it was installed in the last few minutes to indicate this
|
||||
PulseAdapterAutoDetected = !string.IsNullOrEmpty(RegisterConverter.ByteArrayToValue<String>(
|
||||
ReadRegister(Register.Irda.AdapterId)));
|
||||
@@ -1766,6 +1815,21 @@ namespace Xylem.Common.Hardware.WaterMeter.Genesis.GenesisCore
|
||||
|
||||
Logger.Info($"Slot:{Slot} - Meter size: {MeterSize}");
|
||||
Logger.Info($"Slot:{Slot} - Upgrade permission: {MetrologyUpgradePermission:X2}");
|
||||
Logger.Info($"Slot:{Slot} - Interface (configuration.json) version: {InterfaceVersion}");
|
||||
|
||||
if (InstalledFwVersion != null &&
|
||||
((Region.Equals("EMEA") && interfaceMaxEmeaVersion >= InstalledFwVersion) ||
|
||||
(Region.Equals("NA") && interfaceMaxNaVersion >= InstalledFwVersion)))
|
||||
{
|
||||
InterfaceSupportsFwVersion = true;
|
||||
Logger.Info($"Slot:{Slot} - Interface supports FW version: {FwVersion}");
|
||||
}
|
||||
else
|
||||
{
|
||||
InterfaceSupportsFwVersion = false;
|
||||
Logger.Warn($"Slot:{Slot} - Interface does not support FW version! Installed FW version: {FwVersion}, " +
|
||||
$"Interface supports max FW version: {InterfaceMaxFwVersion}");
|
||||
}
|
||||
|
||||
// initial list of ALL registers defined in configuration.json
|
||||
var tempConfigRegisters = ConfigRegister.MeterRegisterDic.ToList();
|
||||
@@ -1778,7 +1842,7 @@ namespace Xylem.Common.Hardware.WaterMeter.Genesis.GenesisCore
|
||||
if (ConfigRegister.MeterRegisterDic.All(a => a.Key.GetIdent() != checkMinRegister))
|
||||
{
|
||||
// These registers ar required for essential operation, they have to be added even if the
|
||||
// version in the configuration.json is outdated or they are not defined!
|
||||
// version in the configuration.json is outdated, or they are not defined!
|
||||
try
|
||||
{
|
||||
var allVersion = tempConfigRegisters.Where(a => a.Key.GetIdent() == checkMinRegister)?.OrderByDescending(
|
||||
@@ -2457,9 +2521,7 @@ namespace Xylem.Common.Hardware.WaterMeter.Genesis.GenesisCore
|
||||
|
||||
try
|
||||
{
|
||||
|
||||
Int32 i;
|
||||
if (int.TryParse(LocalWebRequest.GetRequest(url, 30000), out i))
|
||||
if (int.TryParse(LocalWebRequest.GetRequest(url, 30000), out var i))
|
||||
{
|
||||
return ((DisplayCodes)i);
|
||||
}
|
||||
@@ -2534,7 +2596,7 @@ namespace Xylem.Common.Hardware.WaterMeter.Genesis.GenesisCore
|
||||
/// - After write store configuration extended sleep.
|
||||
/// </remarks>
|
||||
/// <remarks date="2022-Jun-23" author="Thomas Wiedebusch">
|
||||
/// - Removed comparison of allConfigRegisters less than 8 because the NA version has less registers and new
|
||||
/// - Removed comparison of allConfigRegisters less than 8 because the NA version has fewer registers and new
|
||||
/// apps will have a new register.
|
||||
/// </remarks>
|
||||
/// <remarks date="2022-Jul-22" author="Thomas Wiedebusch">
|
||||
@@ -2625,7 +2687,7 @@ namespace Xylem.Common.Hardware.WaterMeter.Genesis.GenesisCore
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Upload app list to data base
|
||||
/// Upload app list to database
|
||||
/// </summary>
|
||||
/// <param name="progressName"></param>
|
||||
/// <param name="version"></param>
|
||||
@@ -2669,7 +2731,7 @@ namespace Xylem.Common.Hardware.WaterMeter.Genesis.GenesisCore
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Backup current register dictionary to data base
|
||||
/// Backup current register dictionary to database
|
||||
/// </summary>
|
||||
/// <exception cref="Exception"></exception>
|
||||
public void StoreCurrentRegisterDic()
|
||||
@@ -2724,7 +2786,7 @@ namespace Xylem.Common.Hardware.WaterMeter.Genesis.GenesisCore
|
||||
private void PostRegisterRead(RegisterDefinition reg, Byte[] value)
|
||||
{
|
||||
var avoidLoggingRegisterNameList = Register.GetAvoidLogRegisters();
|
||||
|
||||
|
||||
if (Configuration.UseRegisterWatchService && avoidLoggingRegisterNameList.All(regName => regName != reg.GetIdent()))
|
||||
{
|
||||
try
|
||||
|
||||
@@ -94,6 +94,31 @@ namespace Xylem.Common.Hardware.WaterMeter.Genesis.GenesisCore
|
||||
get;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// This is the version of the interface "configuration.json".
|
||||
/// </summary>
|
||||
String InterfaceVersion
|
||||
{
|
||||
get;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// This is the max supported firmware version of the interface "configuration.json".
|
||||
/// It is the max version for a specific region.
|
||||
/// </summary>
|
||||
String InterfaceMaxFwVersion
|
||||
{
|
||||
get;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// This FW version is supported by the interface "configuration.json".
|
||||
/// </summary>
|
||||
Boolean InterfaceSupportsFwVersion
|
||||
{
|
||||
get;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Length of the meter.
|
||||
/// </summary>
|
||||
|
||||
@@ -95,11 +95,158 @@ namespace Xylem.Common.Hardware.WaterMeter.Genesis.GenesisCore
|
||||
private static readonly List<String> _excludedFromCompareParameters = new List<String>
|
||||
{
|
||||
"CUSTOMER_AlarmVisualMask", // Fully hard coded, cannot be overwritten
|
||||
//TODO Roland removed 15-Jul-2025 "CUSTOMER_AlarmEnableMask", // Will be overwritten by SENSUSRADIO if set System state to 0xFF
|
||||
//"CUSTOMER_AlarmEnableMask", //Depending on FW version Will be overwritten by SENSUSRADIO if set System state to 0xFF
|
||||
"CUSTOMER_AppArrangement", // Is read only, makes no sense to compare anything
|
||||
"SENSUSRADIO_UpgFWVersion" // After a FW-Update the FW version has changed
|
||||
};
|
||||
|
||||
/// <summary>
|
||||
/// Registers manually explicit excluded for in-field updatable parameters for the CUST to prevent inadvertent
|
||||
/// modifications resulting in potential MID violations.
|
||||
///
|
||||
/// Defined by M.C., J.L. and A.F. with the file: 'FwUpdateController.cs-GetRecoveryFile()-2507160616.xlsx'.
|
||||
///
|
||||
/// All commands defined here will not be accepted from 'external' to adjust. Program internally, those
|
||||
/// commands are potentially allowed if those do not change any MID dependent 'values'.
|
||||
/// </summary>
|
||||
private static readonly List<String> _fieldUpdateBlacklist = new List<String>
|
||||
{
|
||||
//TODO THW "CUSTOMER_AlarmEnableMask", // Under discussion
|
||||
"CUSTOMER_AlarmVisualMask",
|
||||
"CUSTOMER_BackupCalendarSeconds",
|
||||
"CUSTOMER_InstallationTime",
|
||||
"CUSTOMER_InternalLoginTest",
|
||||
"CUSTOMER_RebootCount",
|
||||
"CUSTOMER_TriggerAlarmCancel",
|
||||
|
||||
"FLEXNETSERIAL_FwdlState",
|
||||
"FLEXNETSERIAL_UpgState",
|
||||
|
||||
"GENESISFLOW_AmplitudePeakDetectEnd", // 1
|
||||
"GENESISFLOW_ArrowThreshold", // 2
|
||||
"GENESISFLOW_CalFactor1", // 3
|
||||
"GENESISFLOW_CalFactor2", // 4
|
||||
"GENESISFLOW_CalFactor3", // 5
|
||||
"GENESISFLOW_DelayedLedOff", // 6
|
||||
"GENESISFLOW_DisplayLeadingZeros", // 7
|
||||
"GENESISFLOW_DisplayPow10", // 8
|
||||
"GENESISFLOW_DisplayUnits", // 9
|
||||
"GENESISFLOW_DisplayVolumeRow2", //10
|
||||
"GENESISFLOW_FireBuffer1", //11
|
||||
"GENESISFLOW_FireBuffer2", //12
|
||||
"GENESISFLOW_FireBuffer3", //13
|
||||
"GENESISFLOW_FirstHitLvlDown1", //14
|
||||
"GENESISFLOW_FirstHitLvlDown2", //15
|
||||
"GENESISFLOW_FirstHitLvlDown3", //16
|
||||
"GENESISFLOW_FirstHitLvlUp1", //17
|
||||
"GENESISFLOW_FirstHitLvlUp2", //18
|
||||
"GENESISFLOW_FirstHitLvlUp3", //19
|
||||
"GENESISFLOW_FirstHitMinimum", //20
|
||||
"GENESISFLOW_FirstHitPercent1", //21
|
||||
"GENESISFLOW_FirstHitPercent2", //22
|
||||
"GENESISFLOW_FirstHitPercent3", //23
|
||||
"GENESISFLOW_FirstHitShift", //24
|
||||
"GENESISFLOW_FirstHitUpdatePeriod", //25
|
||||
"GENESISFLOW_ForwardArrow", //26
|
||||
"GENESISFLOW_FractionalBars", //27
|
||||
"GENESISFLOW_HardErrorLimit", //28
|
||||
"GENESISFLOW_InstallationCorrectionEnabled", //29
|
||||
"GENESISFLOW_InstallationDetectionStatus", //30
|
||||
"GENESISFLOW_InstallationDetectionThreshold", //31
|
||||
"GENESISFLOW_InstallationType", //32
|
||||
"GENESISFLOW_LookupFileCrc", //33
|
||||
"GENESISFLOW_LowFlowMaxPeriod", //34
|
||||
"GENESISFLOW_LowFlowThreshold", //35
|
||||
"GENESISFLOW_MaxDeltaToFDeviation", //36
|
||||
"GENESISFLOW_MaxDeltaToFRange", //37
|
||||
"GENESISFLOW_MaxTempRange", //38
|
||||
"GENESISFLOW_MaxValidAmplitude", //39
|
||||
"GENESISFLOW_MaxValidDeltaToF", //40
|
||||
"GENESISFLOW_MaxValidToF", //41
|
||||
"GENESISFLOW_MeterSize", //42
|
||||
"GENESISFLOW_MinValidAmplitude", //43
|
||||
"GENESISFLOW_MinValidToF", //44
|
||||
"GENESISFLOW_NumFirePulses", //45
|
||||
"GENESISFLOW_PipeFillingDelay", //46
|
||||
"GENESISFLOW_ResetAccumulators", //47
|
||||
"GENESISFLOW_SampleRate", //48
|
||||
"GENESISFLOW_SealDisplay", //49
|
||||
"GENESISFLOW_StartHit", //50
|
||||
"GENESISFLOW_StoreCalibration", //51
|
||||
"GENESISFLOW_Timeout", //52
|
||||
"GENESISFLOW_ToFErrorLimit", //53
|
||||
"GENESISFLOW_ToFTempCalibrate", //54
|
||||
"GENESISFLOW_ToFTempOffset1", //55
|
||||
"GENESISFLOW_ToFTempOffset2", //56
|
||||
"GENESISFLOW_ToFTempOffset3", //57
|
||||
"GENESISFLOW_TriggerActive", //58
|
||||
"GENESISFLOW_TriggerIdle", //59
|
||||
"GENESISFLOW_TriggerTest", //60
|
||||
"GENESISFLOW_UnscaledFwd", //61
|
||||
"GENESISFLOW_UnscaledRev", //62
|
||||
"GENESISFLOW_UpdateThreshold", //63
|
||||
"GENESISFLOW_ZeroOffset1", //64
|
||||
"GENESISFLOW_ZeroOffset2", //65
|
||||
"GENESISFLOW_ZeroOffset3", //66
|
||||
|
||||
"IRDA_PulseSequence",
|
||||
|
||||
"LOGGER_TriggerLogFlush",
|
||||
|
||||
"METROLOGYASST_GenerateFwdPulses",
|
||||
"METROLOGYASST_GenerateRevPulses",
|
||||
"METROLOGYASST_ILoopMaxFlowRate",
|
||||
"METROLOGYASST_ILoopRate",
|
||||
"METROLOGYASST_LatestFlowRate",
|
||||
"METROLOGYASST_PressureMeasure",
|
||||
|
||||
"NFC_EraseRMA",
|
||||
"NFC_ForceUpdate",
|
||||
|
||||
"PERIODICLOG_AverageFlowPeriod",
|
||||
"PERIODICLOG_PeriodicLogLifeTimeCounter",
|
||||
"PERIODICLOG_ResetCounter",
|
||||
|
||||
"POWERMON_TotalUsedCharge",
|
||||
"POWERMON_TotalUsedSeconds",
|
||||
|
||||
"SENSUSRADIO_AverageFlowPeriod", // 1
|
||||
"SENSUSRADIO_Dewa_Structure", // 2
|
||||
"SENSUSRADIO_DutyCycleCredit", // 3
|
||||
"SENSUSRADIO_MetroRadioLifeTimeCounter", // 4
|
||||
"SENSUSRADIO_OmsLastMessageCounter", // 5
|
||||
"SENSUSRADIO_PersistenceGroup1", // 6
|
||||
"SENSUSRADIO_PersistenceGroup2", // 7
|
||||
"SENSUSRADIO_PersistenceGroup3", // 8
|
||||
"SENSUSRADIO_PersistenceGroup4", // 9
|
||||
"SENSUSRADIO_PersistenceGroup5", //10
|
||||
"SENSUSRADIO_PersistenceGroup6", //11
|
||||
"SENSUSRADIO_PressureCalibration", //12
|
||||
"SENSUSRADIO_PressureGaugeOffset", //13
|
||||
"SENSUSRADIO_ReceivedBytesCounter", //14
|
||||
"SENSUSRADIO_ResetCounter", //15
|
||||
"SENSUSRADIO_SentBytesCounter", //16
|
||||
"SENSUSRADIO_SystemState", //17
|
||||
"SENSUSRADIO_TestModeTime", //18
|
||||
"SENSUSRADIO_Tfx_Sec_Chan_Info1", //19
|
||||
"SENSUSRADIO_Tfx_Sec_Chan_Info2", //20
|
||||
"SENSUSRADIO_Tfx_Structure", //21
|
||||
"SENSUSRADIO_UpgFWVersion", //22
|
||||
"SENSUSRADIO_UtcTimeOffset", //23
|
||||
|
||||
"SYSTEM_CalendarSeconds", // 1
|
||||
"SYSTEM_CheckPresence", // 2
|
||||
"SYSTEM_CRC", // 3
|
||||
"SYSTEM_CRC32", // 4
|
||||
"SYSTEM_CustomerSerialNumber0", // 5
|
||||
"SYSTEM_CustomerSerialNumber1", // 6
|
||||
"SYSTEM_CustomerSerialNumber2", // 7
|
||||
"SYSTEM_CustomerSerialNumber3", // 8
|
||||
"SYSTEM_DriveCapacity", // 9
|
||||
"SYSTEM_ExitReason", //10
|
||||
"SYSTEM_TriggerUpgrade" //11
|
||||
};
|
||||
|
||||
/// <summary>
|
||||
/// Registers manually explicit excluded from reading as those do not contain useful information.
|
||||
/// Applies for RW commands not RPC data type.
|
||||
@@ -342,6 +489,7 @@ namespace Xylem.Common.Hardware.WaterMeter.Genesis.GenesisCore
|
||||
/// processed as reverted or non-reverted values which directly can be written to the meter using the
|
||||
/// meter specific "IGenesisMeter.WriteRegister"</param>
|
||||
/// <param name="errorMsg">error message for caller</param>
|
||||
/// <param name="fieldUpdate">field update forces to use the 'fieldUpdateBlacklist' to remove parameters</param>
|
||||
/// <returns></returns>
|
||||
/// <remarks date="2024-Dec-11" author="Thomas Wiedebusch">
|
||||
/// - Initial imported from <see cref="DownloadProgrammingParametersFromDb"/>.
|
||||
@@ -356,8 +504,16 @@ namespace Xylem.Common.Hardware.WaterMeter.Genesis.GenesisCore
|
||||
/// <remarks date="2025-Jan-28" author="Thomas Wiedebusch">
|
||||
/// - Debug for overwriting VAKO with CSD including real values.
|
||||
/// </remarks>
|
||||
/// <remarks date="2025-Jul-16..21" author="Thomas Wiedebusch">
|
||||
/// - Remove '_fieldUpdateBlacklist' parameters for the CUST to prevent inadvertent modifications resulting in potential
|
||||
/// MID violations,
|
||||
/// - Debug log of blacklist caused removals.
|
||||
/// </remarks>
|
||||
/// <remarks date="2025-Jul-24" author="Thomas Wiedebusch">
|
||||
/// - Debug lists generation sequence changed.
|
||||
/// </remarks>
|
||||
public static StatusReturn RawProgrammingParametersFilterAndSort(List<ProgrammingParameters> rawProgParams,
|
||||
List<RecoveryRegisterItem> recoveryRegisters, out String errorMsg)
|
||||
List<RecoveryRegisterItem> recoveryRegisters, out String errorMsg, Boolean fieldUpdate)
|
||||
{
|
||||
errorMsg = "";
|
||||
try
|
||||
@@ -378,6 +534,8 @@ namespace Xylem.Common.Hardware.WaterMeter.Genesis.GenesisCore
|
||||
// ReSharper disable once CollectionNeverQueried.Local IS FOR DEBUG
|
||||
var multipleAssignedRegisterList = new List<String>();
|
||||
// ReSharper disable once CollectionNeverQueried.Local IS FOR DEBUG
|
||||
var blacklistRemovedRegisterList = new List<String>();
|
||||
// ReSharper disable once CollectionNeverQueried.Local IS FOR DEBUG
|
||||
var replacedVakoFromCsdList = new List<ReplaceVakoByCsd>();
|
||||
|
||||
// Temporary storage for sorting before assembling those registers with the preparation and
|
||||
@@ -386,14 +544,20 @@ namespace Xylem.Common.Hardware.WaterMeter.Genesis.GenesisCore
|
||||
|
||||
foreach (var proPar in rawProgParams)
|
||||
{
|
||||
// reverse byte order for all parameters except those listed below
|
||||
if (!string.IsNullOrEmpty(proPar.RegisterName))
|
||||
{
|
||||
// Catch multiple assignments
|
||||
if (sortableRegisterList.Any(a => proPar.RegisterName.Equals(a)))
|
||||
multipleAssignedRegisterList.Add(proPar.RegisterName);
|
||||
|
||||
// Fill DEBUG lists START with all registers even if they are multiple assigned
|
||||
// Remove all parameters from parameter list if used for field update
|
||||
if (fieldUpdate && _fieldUpdateBlacklist.Contains(proPar.RegisterName))
|
||||
{
|
||||
blacklistRemovedRegisterList.Add(proPar.RegisterName);
|
||||
continue;
|
||||
}
|
||||
|
||||
// Fill DEBUG lists START with all registers even if they are multiple assigned
|
||||
sortableRegisterList.Add(proPar.RegisterName);
|
||||
|
||||
switch (proPar.Source)
|
||||
@@ -409,6 +573,7 @@ namespace Xylem.Common.Hardware.WaterMeter.Genesis.GenesisCore
|
||||
break;
|
||||
}
|
||||
|
||||
// Take this parameter as is
|
||||
if (_unReversedParameters.Contains(proPar.RegisterName))
|
||||
{
|
||||
// Add parameter if it is not in the list
|
||||
@@ -498,6 +663,7 @@ namespace Xylem.Common.Hardware.WaterMeter.Genesis.GenesisCore
|
||||
orderRegisterList.Sort();
|
||||
sortableRegisterList.Sort();
|
||||
multipleAssignedRegisterList.Sort();
|
||||
blacklistRemovedRegisterList.Sort();
|
||||
replacedVakoFromCsdList.Sort((x, y) => string.Compare(x.RegisterName, y.RegisterName,
|
||||
StringComparison.Ordinal));
|
||||
|
||||
@@ -532,6 +698,7 @@ namespace Xylem.Common.Hardware.WaterMeter.Genesis.GenesisCore
|
||||
/// <param name="pcbId"></param>
|
||||
/// <param name="recoveryRegistersDb">registers key value pair from database</param>
|
||||
/// <param name="errorMsg">error message from parameter analysis</param>
|
||||
/// <param name="fieldUpdate">field update forces to use the 'fieldUpdateBlacklist' to remove parameters</param>
|
||||
/// <returns>recovery registers</returns>
|
||||
/// <remarks date="2021-Feb-01" author="Thomas Wiedebusch">
|
||||
/// - Initial.
|
||||
@@ -570,8 +737,12 @@ namespace Xylem.Common.Hardware.WaterMeter.Genesis.GenesisCore
|
||||
/// <remarks date="2025-Jan-21" author="Thomas Wiedebusch">
|
||||
/// - Error message.
|
||||
/// </remarks>
|
||||
/// <remarks date="2025-Jul-16" author="Thomas Wiedebusch">
|
||||
/// - Remove '_fieldUpdateBlacklist' parameters for the CUST to prevent inadvertent modifications resulting in potential
|
||||
/// MID violations.
|
||||
/// </remarks>
|
||||
public static StatusReturn DownloadProgrammingParametersFromDb(String pcbId,
|
||||
List<RecoveryRegisterItem> recoveryRegistersDb, out String errorMsg)
|
||||
List<RecoveryRegisterItem> recoveryRegistersDb, out String errorMsg, Boolean fieldUpdate)
|
||||
{
|
||||
errorMsg = "";
|
||||
if (string.IsNullOrEmpty(pcbId))
|
||||
@@ -593,7 +764,8 @@ namespace Xylem.Common.Hardware.WaterMeter.Genesis.GenesisCore
|
||||
return StatusReturn.Failed;
|
||||
}
|
||||
|
||||
return RawProgrammingParametersFilterAndSort(programmingParameters, recoveryRegistersDb, out errorMsg);
|
||||
return RawProgrammingParametersFilterAndSort(programmingParameters, recoveryRegistersDb, out errorMsg,
|
||||
fieldUpdate);
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
@@ -631,10 +803,11 @@ namespace Xylem.Common.Hardware.WaterMeter.Genesis.GenesisCore
|
||||
/// <remarks date="2025-Apr-07" author="Thomas Wiedebusch">
|
||||
/// - CancellationToken.
|
||||
/// </remarks>
|
||||
public StatusReturn EolProgrammingRegisters(List<RecoveryRegisterItem> recoveryRegistersDb, CancellationToken cancellationToken)
|
||||
public StatusReturn EolProgrammingRegisters(List<RecoveryRegisterItem> recoveryRegistersDb,
|
||||
CancellationToken cancellationToken)
|
||||
{
|
||||
// mark EOL as true to force accu reset
|
||||
return WriteRegisters(recoveryRegistersDb, cancellationToken, true);
|
||||
// Mark field update as false to set EOL as true to force accu reset
|
||||
return WriteRegisters(recoveryRegistersDb, cancellationToken, fieldUpdate: false);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -676,7 +849,7 @@ namespace Xylem.Common.Hardware.WaterMeter.Genesis.GenesisCore
|
||||
/// <param name="recoveryRegistersDb">list of registers to update from database without special sequence
|
||||
/// </param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <param name="eolProgramming">EOL (end of line) programming with accu reset</param>
|
||||
/// <param name="fieldUpdate">field update, if not set EOL (end of line) programming with accu reset</param>
|
||||
/// <returns>true if restoring succeeded</returns>
|
||||
/// <remarks date="2023-Oct-09" author="Thomas Wiedebusch">
|
||||
/// - Initial.
|
||||
@@ -733,8 +906,12 @@ namespace Xylem.Common.Hardware.WaterMeter.Genesis.GenesisCore
|
||||
/// <remarks date="2025-Apr-07" author="Thomas Wiedebusch">
|
||||
/// - CancellationToken.
|
||||
/// </remarks>
|
||||
/// <remarks date="2025-Jul-16" author="Thomas Wiedebusch">
|
||||
/// - Remove '_fieldUpdateBlacklist' parameters for the CUST to prevent inadvertent modifications resulting in potential
|
||||
/// MID violations.
|
||||
/// </remarks>
|
||||
public StatusReturn WriteRegisters(List<RecoveryRegisterItem> recoveryRegistersDb, CancellationToken cancellationToken,
|
||||
Boolean eolProgramming = false)
|
||||
Boolean fieldUpdate)
|
||||
{
|
||||
if (_currentGenesis == null ||
|
||||
string.IsNullOrEmpty(_currentGenesis.PcbId) ||
|
||||
@@ -771,7 +948,7 @@ namespace Xylem.Common.Hardware.WaterMeter.Genesis.GenesisCore
|
||||
var finalizeProgrammingAll = new List<RecoveryRegisterItem>();
|
||||
|
||||
// add EOL (shipping reset of accumulators, alarms and setup of manufacturing date)
|
||||
if (eolProgramming)
|
||||
if (!fieldUpdate)
|
||||
{
|
||||
finalizeProgrammingAll.AddRange(_finalizeProgrammingEol.Where(finalReg =>
|
||||
meterRegisters.MeterRegisterDic.Any(x => x.Key.GetIdent().Contains(finalReg.RegisterIdent))));
|
||||
@@ -799,7 +976,7 @@ namespace Xylem.Common.Hardware.WaterMeter.Genesis.GenesisCore
|
||||
actualProcessMessage: Resources.StrRegisterRecoveryPreparation));
|
||||
|
||||
if (StatusReturn.Failed == WriteRegisterParameterSet(_prepareProgramming, recRegistersCount, meterRegisters,
|
||||
cancellationToken))
|
||||
cancellationToken, fieldUpdate))
|
||||
{
|
||||
// the logout will force the radio app to activate the settings
|
||||
_currentGenesis?.Logout();
|
||||
@@ -811,7 +988,7 @@ namespace Xylem.Common.Hardware.WaterMeter.Genesis.GenesisCore
|
||||
actualProcessMessage: Resources.StrRegisterRecoveryExec));
|
||||
|
||||
if (StatusReturn.Failed == WriteRegisterParameterSet(recoveryRegistersDb, recRegistersCount, meterRegisters,
|
||||
cancellationToken))
|
||||
cancellationToken, fieldUpdate))
|
||||
{
|
||||
// the logout will force the radio app to activate the settings
|
||||
_currentGenesis?.Logout();
|
||||
@@ -823,7 +1000,7 @@ namespace Xylem.Common.Hardware.WaterMeter.Genesis.GenesisCore
|
||||
actualProcessMessage: Resources.StrRegisterRecoveryFinalization));
|
||||
|
||||
if (StatusReturn.Failed == WriteRegisterParameterSet(finalizeProgrammingAll, recRegistersCount, meterRegisters,
|
||||
cancellationToken))
|
||||
cancellationToken, fieldUpdate))
|
||||
{
|
||||
// the logout will force the radio app to activate the settings
|
||||
_currentGenesis?.Logout();
|
||||
@@ -850,6 +1027,7 @@ namespace Xylem.Common.Hardware.WaterMeter.Genesis.GenesisCore
|
||||
/// <param name="recRegistersCount"></param>
|
||||
/// <param name="meterRegisters"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <param name="fieldUpdate"></param>
|
||||
/// <returns></returns>
|
||||
/// <remarks date="2025-Feb-14" author="Thomas Wiedebusch">
|
||||
/// - Initial imported from <see cref="WriteRegisters"/>.
|
||||
@@ -861,16 +1039,28 @@ namespace Xylem.Common.Hardware.WaterMeter.Genesis.GenesisCore
|
||||
/// - Temporary excluded un-comparable registers from write as this make no sense to write them blind being
|
||||
/// unable to read the correct value back.
|
||||
/// </remarks>
|
||||
/// <remarks date="2025-Jul-16" author="Thomas Wiedebusch">
|
||||
/// - Remove '_fieldUpdateBlacklist' parameters for the CUST to prevent inadvertent modifications resulting in potential
|
||||
/// MID violations.
|
||||
/// </remarks>
|
||||
/// <remarks date="2025-Jul-22" author="Thomas Wiedebusch">
|
||||
/// - Excluded un-comparable registers from write turned back on ('blind' writing enabled again).
|
||||
/// </remarks>
|
||||
private StatusReturn WriteRegisterParameterSet(List<RecoveryRegisterItem> recoveryRegistersDb, Int32 recRegistersCount,
|
||||
MeterRegisters meterRegisters, CancellationToken cancellationToken)
|
||||
MeterRegisters meterRegisters, CancellationToken cancellationToken, Boolean fieldUpdate)
|
||||
{
|
||||
foreach (var recReg in recoveryRegistersDb)
|
||||
{
|
||||
//TODO THW Check
|
||||
// Temporary excluded un-comparable registers from write as this make no sense to write them blind being
|
||||
// unable to read the correct value back.
|
||||
if (_excludedFromCompareParameters.Any( regName => recReg.RegisterIdent.Equals(regName)))
|
||||
//if (_excludedFromCompareParameters.Any( regName => recReg.RegisterIdent.Equals(regName)))
|
||||
// continue;
|
||||
|
||||
// Remove all parameters from parameter list if used for field update
|
||||
if (fieldUpdate && _fieldUpdateBlacklist.Any( regName => recReg.RegisterIdent.Equals(regName)))
|
||||
continue;
|
||||
|
||||
_actualRegisterCtr++;
|
||||
var overallProcessCtrPercent = 100.0 * _actualRegisterCtr / recRegistersCount;
|
||||
|
||||
@@ -994,6 +1184,9 @@ namespace Xylem.Common.Hardware.WaterMeter.Genesis.GenesisCore
|
||||
/// <remarks date="2025-Apr-07" author="Thomas Wiedebusch">
|
||||
/// - CancellationToken.
|
||||
/// </remarks>
|
||||
/// <remarks date="2025-Aug-12" author="Thomas Wiedebusch">
|
||||
/// - Take 'null' in readBack into account due to communication error.
|
||||
/// </remarks>
|
||||
public Boolean CompareRegisters(CancellationToken cancellationToken)
|
||||
{
|
||||
if (_pcbIdFinalRegisterRead != _pcbIdWriteRegisters ||
|
||||
@@ -1037,6 +1230,7 @@ namespace Xylem.Common.Hardware.WaterMeter.Genesis.GenesisCore
|
||||
{
|
||||
_currentGenesis.WriteLog("Meter register not defined or application not installed " +
|
||||
regName + "; " + ex.Message);
|
||||
retVal = false;
|
||||
}
|
||||
|
||||
// skip all registers from comparison which are neither static nor approximate or not detected
|
||||
@@ -1052,75 +1246,75 @@ namespace Xylem.Common.Hardware.WaterMeter.Genesis.GenesisCore
|
||||
var recReg = RecoveryRegisters.First(reg => reg.RegisterIdent.Equals(regName));
|
||||
var writtenValue = recReg.WriteValue;
|
||||
var readBackValue = recReg.ReadBackValue;
|
||||
|
||||
// If any value is null then there is nothing to compare
|
||||
if (writtenValue == null || readBackValue == null)
|
||||
{
|
||||
_failedComparisonRegisters?.Add(new RecoveryRegisterItem(regName, writtenValue, readBackValue));
|
||||
continue; //TODO THW check if error should be signalized
|
||||
}
|
||||
|
||||
// ATTENTION: The size of the writtenValue and readBackValue may deviate!
|
||||
var dataSize = writtenValue.Length;
|
||||
|
||||
var strRequiredRegisterValue = "";
|
||||
|
||||
try
|
||||
{
|
||||
// ATTENTION: The size of the writtenValue and readBackValue may deviate!
|
||||
var dataSize = writtenValue.Length;
|
||||
var isApproximated = false;
|
||||
var isIdentical = false;
|
||||
if (regDef.RegisterDetail.StaticType == StaticType.ReadBackApproximated)
|
||||
|
||||
// Process values only if not 'null'
|
||||
if (writtenValue != null && readBackValue != null)
|
||||
{
|
||||
Int64 restoreValue = 0;
|
||||
Int64 finalValue = 0;
|
||||
if (regDef.DataType.Name.Equals("Int32"))
|
||||
if (regDef.RegisterDetail.StaticType == StaticType.ReadBackApproximated)
|
||||
{
|
||||
restoreValue = RegisterConverter.ByteArrayToValue<Int32>(writtenValue);
|
||||
finalValue = RegisterConverter.ByteArrayToValue<Int32>(readBackValue);
|
||||
}
|
||||
else if (regDef.DataType.Name.Equals("UInt32"))
|
||||
{
|
||||
restoreValue = RegisterConverter.ByteArrayToValue<UInt32>(writtenValue);
|
||||
finalValue = RegisterConverter.ByteArrayToValue<UInt32>(readBackValue);
|
||||
}
|
||||
// Just half of number range will work due to cast to Int64
|
||||
else if (regDef.DataType.Name.Equals("UInt64"))
|
||||
{
|
||||
restoreValue = (Int64)RegisterConverter.ByteArrayToValue<UInt64>(writtenValue);
|
||||
finalValue = (Int64)RegisterConverter.ByteArrayToValue<UInt64>(readBackValue);
|
||||
}
|
||||
else if (regDef.DataType.Name.Equals("Int64"))
|
||||
{
|
||||
restoreValue = RegisterConverter.ByteArrayToValue<UInt32>(writtenValue);
|
||||
finalValue = RegisterConverter.ByteArrayToValue<UInt32>(readBackValue);
|
||||
}
|
||||
else if (regDef.DataType.Name.Equals("Byte"))
|
||||
{
|
||||
restoreValue = RegisterConverter.ByteArrayToValue<Byte>(writtenValue);
|
||||
finalValue = RegisterConverter.ByteArrayToValue<Byte>(readBackValue);
|
||||
}
|
||||
else if (regDef.DataType.Name.Equals("SByte"))
|
||||
{
|
||||
restoreValue = RegisterConverter.ByteArrayToValue<SByte>(writtenValue);
|
||||
finalValue = RegisterConverter.ByteArrayToValue<SByte>(readBackValue);
|
||||
}
|
||||
// Check limited to +/- 3
|
||||
if (restoreValue - 3 <= finalValue && restoreValue + 3 >= finalValue)
|
||||
{
|
||||
isApproximated = true;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
for (var c = 0; c < dataSize; c++)
|
||||
{
|
||||
if (writtenValue[c] != readBackValue[c])
|
||||
Int64 restoreValue = 0;
|
||||
Int64 finalValue = 0;
|
||||
if (regDef.DataType.Name.Equals("Int32"))
|
||||
{
|
||||
isIdentical = false;
|
||||
break;
|
||||
restoreValue = RegisterConverter.ByteArrayToValue<Int32>(writtenValue);
|
||||
finalValue = RegisterConverter.ByteArrayToValue<Int32>(readBackValue);
|
||||
}
|
||||
else if (regDef.DataType.Name.Equals("UInt32"))
|
||||
{
|
||||
restoreValue = RegisterConverter.ByteArrayToValue<UInt32>(writtenValue);
|
||||
finalValue = RegisterConverter.ByteArrayToValue<UInt32>(readBackValue);
|
||||
}
|
||||
// Just half of number range will work due to cast to Int64
|
||||
else if (regDef.DataType.Name.Equals("UInt64"))
|
||||
{
|
||||
restoreValue = (Int64)RegisterConverter.ByteArrayToValue<UInt64>(writtenValue);
|
||||
finalValue = (Int64)RegisterConverter.ByteArrayToValue<UInt64>(readBackValue);
|
||||
}
|
||||
else if (regDef.DataType.Name.Equals("Int64"))
|
||||
{
|
||||
restoreValue = RegisterConverter.ByteArrayToValue<UInt32>(writtenValue);
|
||||
finalValue = RegisterConverter.ByteArrayToValue<UInt32>(readBackValue);
|
||||
}
|
||||
else if (regDef.DataType.Name.Equals("Byte"))
|
||||
{
|
||||
restoreValue = RegisterConverter.ByteArrayToValue<Byte>(writtenValue);
|
||||
finalValue = RegisterConverter.ByteArrayToValue<Byte>(readBackValue);
|
||||
}
|
||||
else if (regDef.DataType.Name.Equals("SByte"))
|
||||
{
|
||||
restoreValue = RegisterConverter.ByteArrayToValue<SByte>(writtenValue);
|
||||
finalValue = RegisterConverter.ByteArrayToValue<SByte>(readBackValue);
|
||||
}
|
||||
|
||||
// Check limited to +/- 3
|
||||
if (restoreValue - 3 <= finalValue && restoreValue + 3 >= finalValue)
|
||||
{
|
||||
isApproximated = true;
|
||||
}
|
||||
isIdentical = true;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
for (var c = 0; c < dataSize; c++)
|
||||
{
|
||||
if (writtenValue[c] != readBackValue[c])
|
||||
{
|
||||
isIdentical = false;
|
||||
break;
|
||||
}
|
||||
|
||||
isIdentical = true;
|
||||
}
|
||||
}
|
||||
}// Process register values only if not 'null'
|
||||
|
||||
// convert register content to text with raw and converted value depending on data type
|
||||
strRequiredRegisterValue =
|
||||
RegisterConverter.GetRegisterContentText(regDef, writtenValue);
|
||||
@@ -1145,6 +1339,7 @@ namespace Xylem.Common.Hardware.WaterMeter.Genesis.GenesisCore
|
||||
catch (Exception ex)
|
||||
{
|
||||
_currentGenesis.WriteLog("Could not compare register value of " + regName + "; " + ex.Message);
|
||||
retVal = false;
|
||||
}
|
||||
finally
|
||||
{
|
||||
@@ -1165,6 +1360,7 @@ namespace Xylem.Common.Hardware.WaterMeter.Genesis.GenesisCore
|
||||
catch (Exception ex)
|
||||
{
|
||||
_currentGenesis.WriteLog("Could not access register for comparison " + regName + "; " + ex.Message);
|
||||
retVal = false;
|
||||
}
|
||||
}
|
||||
return retVal;
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,24 +1,19 @@
|
||||
{
|
||||
"_comment": "Auto generated from 'Configuration.xls' - DO NOT MANUALLY EDIT THIS TABLE",
|
||||
"SYSTEM_TriggerUpgrade": {"type": "bool_t", "id": 0, "privilege": {"lvl1": "NA", "lvl2": "NA", "lvl3": "NA", "lvl4": "NA", "lvl5": "NA", "lvl6": "NA", "lvl7": "WO", "lvl8": "WO"}},
|
||||
"SYSTEM_CheckPresence": {"type": "RPC", "id": 1, "privilege": {"lvl1": "RW", "lvl2": "RW", "lvl3": "RW", "lvl4": "RW", "lvl5": "RW", "lvl6": "RW", "lvl7": "RW", "lvl8": "RW"}},
|
||||
"SYSTEM_PCBSerialNumber": {"type": "string", "id": 2, "privilege": {"lvl1": "RO", "lvl2": "RO", "lvl3": "RO", "lvl4": "RO", "lvl5": "RO", "lvl6": "RO", "lvl7": "RO", "lvl8": "RO"}},
|
||||
"SYSTEM_CustomerSerialNumber0": {"type": "string", "id": 3, "privilege": {"lvl1": "RO", "lvl2": "RO", "lvl3": "RO", "lvl4": "RO", "lvl5": "RW", "lvl6": "RW", "lvl7": "RW", "lvl8": "RW"}},
|
||||
"SYSTEM_CustomerSerialNumber1": {"type": "string", "id": 4, "privilege": {"lvl1": "RO", "lvl2": "RO", "lvl3": "RO", "lvl4": "RO", "lvl5": "RW", "lvl6": "RW", "lvl7": "RW", "lvl8": "RW"}},
|
||||
"SYSTEM_CustomerSerialNumber2": {"type": "string", "id": 5, "privilege": {"lvl1": "RO", "lvl2": "RO", "lvl3": "RO", "lvl4": "RO", "lvl5": "RW", "lvl6": "RW", "lvl7": "RW", "lvl8": "RW"}},
|
||||
"SYSTEM_CustomerSerialNumber3": {"type": "string", "id": 6, "privilege": {"lvl1": "RO", "lvl2": "RO", "lvl3": "RO", "lvl4": "RO", "lvl5": "RW", "lvl6": "RW", "lvl7": "RW", "lvl8": "RW"}},
|
||||
"SYSTEM_MonotonicSeconds": {"type": "uint32_t", "id": 7, "privilege": {"lvl1": "RO", "lvl2": "RO", "lvl3": "RO", "lvl4": "RO", "lvl5": "RO", "lvl6": "RO", "lvl7": "RO", "lvl8": "RO"}},
|
||||
"SYSTEM_CalendarSeconds": {"type": "time_t", "id": 8, "privilege": {"lvl1": "RO", "lvl2": "RO", "lvl3": "RO", "lvl4": "RO", "lvl5": "RW", "lvl6": "RW", "lvl7": "RW", "lvl8": "RW"}},
|
||||
"SYSTEM_CoreRevision": {"type": "string", "id": 9, "privilege": {"lvl1": "RO", "lvl2": "RO", "lvl3": "RO", "lvl4": "RO", "lvl5": "RO", "lvl6": "RO", "lvl7": "RO", "lvl8": "RO"}},
|
||||
"SYSTEM_DriveCapacity": {"type": "uint32_t", "id": 10, "privilege": {"lvl1": "RW", "lvl2": "RW", "lvl3": "RW", "lvl4": "RW", "lvl5": "RW", "lvl6": "RW", "lvl7": "RW", "lvl8": "RW"}},
|
||||
"SYSTEM_ExitReason": {"type": "status_t", "id": 11, "privilege": {"lvl1": "RW", "lvl2": "RW", "lvl3": "RW", "lvl4": "RW", "lvl5": "RW", "lvl6": "RW", "lvl7": "RW", "lvl8": "RW"}},
|
||||
"SYSTEM_CorePlatform": {"type": "uint16_t", "id": 12, "privilege": {"lvl1": "RO", "lvl2": "RO", "lvl3": "RO", "lvl4": "RO", "lvl5": "RO", "lvl6": "RO", "lvl7": "RO", "lvl8": "RO"}},
|
||||
"SYSTEM_CRC": {"type": "uint16_t", "id": 13, "privilege": {"lvl1": "RW", "lvl2": "RW", "lvl3": "RW", "lvl4": "RW", "lvl5": "RW", "lvl6": "RW", "lvl7": "RW", "lvl8": "RW"}},
|
||||
"SYSTEM_UpgradePermissions": {"type": "uint8_t", "id": 14, "privilege": {"lvl1": "RO", "lvl2": "RO", "lvl3": "RO", "lvl4": "RO", "lvl5": "RO", "lvl6": "RO", "lvl7": "RW", "lvl8": "RW"}},
|
||||
"LOGGER_Quota": {"type": "uint32_t", "id": 2048, "privilege": {"lvl1": "RO", "lvl2": "RO", "lvl3": "RO", "lvl4": "RO", "lvl5": "RW", "lvl6": "RW", "lvl7": "RW", "lvl8": "RW"}},
|
||||
"LOGGER_Drive": {"type": "uint8_t", "id": 2049, "privilege": {"lvl1": "RO", "lvl2": "RO", "lvl3": "RO", "lvl4": "RO", "lvl5": "RW", "lvl6": "RW", "lvl7": "RW", "lvl8": "RW"}},
|
||||
"LOGGER_TriggerLogFlush": {"type": "bool_t", "id": 2050, "privilege": {"lvl1": "NA", "lvl2": "NA", "lvl3": "NA", "lvl4": "NA", "lvl5": "NA", "lvl6": "NA", "lvl7": "WO", "lvl8": "WO"}},
|
||||
"LOGGER_StoreConfiguration": {"type": "uint32_t", "id": 2051, "privilege": {"lvl1": "NA", "lvl2": "NA", "lvl3": "NA", "lvl4": "NA", "lvl5": "RW", "lvl6": "RW", "lvl7": "RW", "lvl8": "RW"}},
|
||||
"CONFIGEXCHANGE_Privilege": {"type": "uint8_t", "id": 1024, "privilege": {"lvl1": "RW", "lvl2": "RW", "lvl3": "RW", "lvl4": "RW", "lvl5": "RW", "lvl6": "RW", "lvl7": "RW", "lvl8": "RW"}},
|
||||
"CONFIGEXCHANGE_Password": {"type": "uint96_t", "id": 1025, "privilege": {"lvl1": "WO", "lvl2": "WO", "lvl3": "WO", "lvl4": "WO", "lvl5": "WO", "lvl6": "WO", "lvl7": "WO", "lvl8": "WO"}},
|
||||
"CONFIGEXCHANGE_FOpen": {"type": "RPC", "id": 1026, "privilege": {"lvl1": "RW", "lvl2": "RW", "lvl3": "RW", "lvl4": "RW", "lvl5": "RW", "lvl6": "RW", "lvl7": "RW", "lvl8": "RW"}},
|
||||
"CONFIGEXCHANGE_FClose": {"type": "RPC", "id": 1027, "privilege": {"lvl1": "RW", "lvl2": "RW", "lvl3": "RW", "lvl4": "RW", "lvl5": "RW", "lvl6": "RW", "lvl7": "RW", "lvl8": "RW"}},
|
||||
"CONFIGEXCHANGE_FRead": {"type": "RPC", "id": 1028, "privilege": {"lvl1": "RW", "lvl2": "RW", "lvl3": "RW", "lvl4": "RW", "lvl5": "RW", "lvl6": "RW", "lvl7": "RW", "lvl8": "RW"}},
|
||||
"CONFIGEXCHANGE_FWrite": {"type": "RPC", "id": 1029, "privilege": {"lvl1": "RW", "lvl2": "RW", "lvl3": "RW", "lvl4": "RW", "lvl5": "RW", "lvl6": "RW", "lvl7": "RW", "lvl8": "RW"}},
|
||||
"CONFIGEXCHANGE_FSeek": {"type": "RPC", "id": 1030, "privilege": {"lvl1": "RW", "lvl2": "RW", "lvl3": "RW", "lvl4": "RW", "lvl5": "RW", "lvl6": "RW", "lvl7": "RW", "lvl8": "RW"}},
|
||||
"CONFIGEXCHANGE_FTell": {"type": "RPC", "id": 1031, "privilege": {"lvl1": "RW", "lvl2": "RW", "lvl3": "RW", "lvl4": "RW", "lvl5": "RW", "lvl6": "RW", "lvl7": "RW", "lvl8": "RW"}},
|
||||
"CONFIGEXCHANGE_Remove": {"type": "RPC", "id": 1032, "privilege": {"lvl1": "RW", "lvl2": "RW", "lvl3": "RW", "lvl4": "RW", "lvl5": "RW", "lvl6": "RW", "lvl7": "RW", "lvl8": "RW"}},
|
||||
"CONFIGEXCHANGE_FEOF": {"type": "RPC", "id": 1033, "privilege": {"lvl1": "RW", "lvl2": "RW", "lvl3": "RW", "lvl4": "RW", "lvl5": "RW", "lvl6": "RW", "lvl7": "RW", "lvl8": "RW"}},
|
||||
"CONFIGEXCHANGE_Catalogue": {"type": "RPC", "id": 1034, "privilege": {"lvl1": "RW", "lvl2": "RW", "lvl3": "RW", "lvl4": "RW", "lvl5": "RW", "lvl6": "RW", "lvl7": "RW", "lvl8": "RW"}},
|
||||
"CONFIGEXCHANGE_PCBSerialNumber": {"type": "string", "id": 1036, "privilege": {"lvl1": "RO", "lvl2": "RO", "lvl3": "RO", "lvl4": "RO", "lvl5": "RO", "lvl6": "RO", "lvl7": "RO", "lvl8": "RO"}},
|
||||
"CONFIGEXCHANGE_ConfigAccessRights": {"type": "uint16_t", "id": 1037, "privilege": {"lvl1": "RO", "lvl2": "RO", "lvl3": "RO", "lvl4": "RO", "lvl5": "RO", "lvl6": "RO", "lvl7": "RW", "lvl8": "RW"}},
|
||||
"CONFIGEXCHANGE_FFlush": {"type": "RPC", "id": 1038, "privilege": {"lvl1": "RW", "lvl2": "RW", "lvl3": "RW", "lvl4": "RW", "lvl5": "RW", "lvl6": "RW", "lvl7": "RW", "lvl8": "RW"}},
|
||||
"CUSTOMER_AlarmStatus0": {"type": "uint32_t", "id": 2304, "privilege": {"lvl1": "RO", "lvl2": "RO", "lvl3": "RO", "lvl4": "RO", "lvl5": "RO", "lvl6": "RO", "lvl7": "RO", "lvl8": "RO"}},
|
||||
"CUSTOMER_AlarmStatus1": {"type": "uint32_t", "id": 2305, "privilege": {"lvl1": "RO", "lvl2": "RO", "lvl3": "RO", "lvl4": "RO", "lvl5": "RO", "lvl6": "RO", "lvl7": "RO", "lvl8": "RO"}},
|
||||
"CUSTOMER_TriggerAlarmCancel": {"type": "uint32_t", "id": 2306, "privilege": {"lvl1": "RO", "lvl2": "RO", "lvl3": "RW", "lvl4": "RO", "lvl5": "RW", "lvl6": "RW", "lvl7": "RW", "lvl8": "RW"}},
|
||||
@@ -55,33 +50,25 @@
|
||||
"CUSTOMER_InstallationTime": {"type": "time_t", "id": 2339, "privilege": {"lvl1": "RO", "lvl2": "RO", "lvl3": "RO", "lvl4": "RO", "lvl5": "RO", "lvl6": "RO", "lvl7": "RW", "lvl8": "RW"}},
|
||||
"CUSTOMER_LocaleDecimalPoint": {"type": "string", "id": 2340, "privilege": {"lvl1": "RO", "lvl2": "RO", "lvl3": "RO", "lvl4": "RO", "lvl5": "RO", "lvl6": "RO", "lvl7": "RO", "lvl8": "RO"}},
|
||||
"CUSTOMER_LocaleThousandsSeparator": {"type": "string", "id": 2341, "privilege": {"lvl1": "RO", "lvl2": "RO", "lvl3": "RO", "lvl4": "RO", "lvl5": "RO", "lvl6": "RO", "lvl7": "RO", "lvl8": "RO"}},
|
||||
"POWERMON_BatteryVoltage": {"type": "uint16_t", "id": 256, "privilege": {"lvl1": "RO", "lvl2": "RO", "lvl3": "RO", "lvl4": "RO", "lvl5": "RO", "lvl6": "RO", "lvl7": "RO", "lvl8": "RO"}},
|
||||
"POWERMON_BatteryManufacturer": {"type": "string", "id": 257, "privilege": {"lvl1": "RO", "lvl2": "RO", "lvl3": "RO", "lvl4": "RO", "lvl5": "RO", "lvl6": "RO", "lvl7": "RO", "lvl8": "RO"}},
|
||||
"POWERMON_BatterySize": {"type": "enum8", "id": 258, "privilege": {"lvl1": "RO", "lvl2": "RO", "lvl3": "RO", "lvl4": "RO", "lvl5": "RO", "lvl6": "RO", "lvl7": "RO", "lvl8": "RO"}},
|
||||
"POWERMON_BatteryQuantity": {"type": "uint8_t", "id": 260, "privilege": {"lvl1": "RO", "lvl2": "RO", "lvl3": "RO", "lvl4": "RO", "lvl5": "RW", "lvl6": "RW", "lvl7": "RW", "lvl8": "RW"}},
|
||||
"POWERMON_BatteryRatedVoltage": {"type": "uint8_t", "id": 261, "privilege": {"lvl1": "RO", "lvl2": "RO", "lvl3": "RO", "lvl4": "RO", "lvl5": "RO", "lvl6": "RO", "lvl7": "RO", "lvl8": "RO"}},
|
||||
"POWERMON_BatteryVoltageMinThreshold": {"type": "uint8_t", "id": 263, "privilege": {"lvl1": "RO", "lvl2": "RO", "lvl3": "RO", "lvl4": "RO", "lvl5": "RO", "lvl6": "RO", "lvl7": "RO", "lvl8": "RO"}},
|
||||
"POWERMON_BatterySelection": {"type": "uint8_t", "id": 264, "privilege": {"lvl1": "RO", "lvl2": "RO", "lvl3": "RO", "lvl4": "RO", "lvl5": "RW", "lvl6": "RW", "lvl7": "RW", "lvl8": "RW"}},
|
||||
"POWERMON_TotalUsedCharge": {"type": "uint64_t", "id": 265, "privilege": {"lvl1": "RO", "lvl2": "RO", "lvl3": "RO", "lvl4": "RO", "lvl5": "RO", "lvl6": "RO", "lvl7": "RW", "lvl8": "RW"}},
|
||||
"POWERMON_TotalUsedSeconds": {"type": "uint32_t", "id": 266, "privilege": {"lvl1": "RO", "lvl2": "RO", "lvl3": "RO", "lvl4": "RO", "lvl5": "RO", "lvl6": "RO", "lvl7": "RW", "lvl8": "RW"}},
|
||||
"POWERMON_WarnFromClamp": {"type": "uint32_t", "id": 267, "privilege": {"lvl1": "RO", "lvl2": "RO", "lvl3": "RO", "lvl4": "RO", "lvl5": "RW", "lvl6": "RW", "lvl7": "RW", "lvl8": "RW"}},
|
||||
"POWERMON_BatteryMilliAHrRating": {"type": "uint16_t", "id": 268, "privilege": {"lvl1": "RO", "lvl2": "RO", "lvl3": "RO", "lvl4": "RO", "lvl5": "RO", "lvl6": "RO", "lvl7": "RO", "lvl8": "RO"}},
|
||||
"POWERMON_StoreConfiguration": {"type": "uint32_t", "id": 269, "privilege": {"lvl1": "NA", "lvl2": "NA", "lvl3": "NA", "lvl4": "NA", "lvl5": "RW", "lvl6": "RW", "lvl7": "RW", "lvl8": "RW"}},
|
||||
"POWERMON_CriticalRepeatLimit": {"type": "uint8_t", "id": 270, "privilege": {"lvl1": "RO", "lvl2": "RO", "lvl3": "RO", "lvl4": "RO", "lvl5": "RW", "lvl6": "RW", "lvl7": "RW", "lvl8": "RW"}},
|
||||
"CONFIGEXCHANGE_Privilege": {"type": "uint8_t", "id": 1024, "privilege": {"lvl1": "RW", "lvl2": "RW", "lvl3": "RW", "lvl4": "RW", "lvl5": "RW", "lvl6": "RW", "lvl7": "RW", "lvl8": "RW"}},
|
||||
"CONFIGEXCHANGE_Password": {"type": "uint96_t", "id": 1025, "privilege": {"lvl1": "WO", "lvl2": "WO", "lvl3": "WO", "lvl4": "WO", "lvl5": "WO", "lvl6": "WO", "lvl7": "WO", "lvl8": "WO"}},
|
||||
"CONFIGEXCHANGE_FOpen": {"type": "RPC", "id": 1026, "privilege": {"lvl1": "RW", "lvl2": "RW", "lvl3": "RW", "lvl4": "RW", "lvl5": "RW", "lvl6": "RW", "lvl7": "RW", "lvl8": "RW"}},
|
||||
"CONFIGEXCHANGE_FClose": {"type": "RPC", "id": 1027, "privilege": {"lvl1": "RW", "lvl2": "RW", "lvl3": "RW", "lvl4": "RW", "lvl5": "RW", "lvl6": "RW", "lvl7": "RW", "lvl8": "RW"}},
|
||||
"CONFIGEXCHANGE_FRead": {"type": "RPC", "id": 1028, "privilege": {"lvl1": "RW", "lvl2": "RW", "lvl3": "RW", "lvl4": "RW", "lvl5": "RW", "lvl6": "RW", "lvl7": "RW", "lvl8": "RW"}},
|
||||
"CONFIGEXCHANGE_FWrite": {"type": "RPC", "id": 1029, "privilege": {"lvl1": "RW", "lvl2": "RW", "lvl3": "RW", "lvl4": "RW", "lvl5": "RW", "lvl6": "RW", "lvl7": "RW", "lvl8": "RW"}},
|
||||
"CONFIGEXCHANGE_FSeek": {"type": "RPC", "id": 1030, "privilege": {"lvl1": "RW", "lvl2": "RW", "lvl3": "RW", "lvl4": "RW", "lvl5": "RW", "lvl6": "RW", "lvl7": "RW", "lvl8": "RW"}},
|
||||
"CONFIGEXCHANGE_FTell": {"type": "RPC", "id": 1031, "privilege": {"lvl1": "RW", "lvl2": "RW", "lvl3": "RW", "lvl4": "RW", "lvl5": "RW", "lvl6": "RW", "lvl7": "RW", "lvl8": "RW"}},
|
||||
"CONFIGEXCHANGE_Remove": {"type": "RPC", "id": 1032, "privilege": {"lvl1": "RW", "lvl2": "RW", "lvl3": "RW", "lvl4": "RW", "lvl5": "RW", "lvl6": "RW", "lvl7": "RW", "lvl8": "RW"}},
|
||||
"CONFIGEXCHANGE_FEOF": {"type": "RPC", "id": 1033, "privilege": {"lvl1": "RW", "lvl2": "RW", "lvl3": "RW", "lvl4": "RW", "lvl5": "RW", "lvl6": "RW", "lvl7": "RW", "lvl8": "RW"}},
|
||||
"CONFIGEXCHANGE_Catalogue": {"type": "RPC", "id": 1034, "privilege": {"lvl1": "RW", "lvl2": "RW", "lvl3": "RW", "lvl4": "RW", "lvl5": "RW", "lvl6": "RW", "lvl7": "RW", "lvl8": "RW"}},
|
||||
"CONFIGEXCHANGE_PCBSerialNumber": {"type": "string", "id": 1036, "privilege": {"lvl1": "RO", "lvl2": "RO", "lvl3": "RO", "lvl4": "RO", "lvl5": "RO", "lvl6": "RO", "lvl7": "RO", "lvl8": "RO"}},
|
||||
"CONFIGEXCHANGE_ConfigAccessRights": {"type": "uint16_t", "id": 1037, "privilege": {"lvl1": "RO", "lvl2": "RO", "lvl3": "RO", "lvl4": "RO", "lvl5": "RO", "lvl6": "RO", "lvl7": "RW", "lvl8": "RW"}},
|
||||
"CONFIGEXCHANGE_FFlush": {"type": "RPC", "id": 1038, "privilege": {"lvl1": "RW", "lvl2": "RW", "lvl3": "RW", "lvl4": "RW", "lvl5": "RW", "lvl6": "RW", "lvl7": "RW", "lvl8": "RW"}},
|
||||
"CUSTOMER_InternalLoginTest": {"type": "uint32_t", "id": 2342, "privilege": {"lvl1": "RO", "lvl2": "RO", "lvl3": "RO", "lvl4": "RO", "lvl5": "RW", "lvl6": "RW", "lvl7": "RW", "lvl8": "RW"}},
|
||||
"CUSTOMER_NoFlowLimit": {"type": "uint32_t", "id": 2343, "privilege": {"lvl1": "RO", "lvl2": "RO", "lvl3": "RW", "lvl4": "RO", "lvl5": "RW", "lvl6": "RW", "lvl7": "RW", "lvl8": "RW"}},
|
||||
"CUSTOMER_NoFlowAlarmResetHysteresis": {"type": "uint32_t", "id": 2344, "privilege": {"lvl1": "RO", "lvl2": "RO", "lvl3": "RW", "lvl4": "RO", "lvl5": "RW", "lvl6": "RW", "lvl7": "RW", "lvl8": "RW"}},
|
||||
"FLEXNETSERIAL_UpgState": {"type": "uint32_t", "id": 6656, "privilege": {"lvl1": "RW", "lvl2": "RW", "lvl3": "RW", "lvl4": "RW", "lvl5": "RW", "lvl6": "RW", "lvl7": "RW", "lvl8": "RW"}},
|
||||
"FLEXNETSERIAL_FwdlState": {"type": "uint32_t", "id": 6657, "privilege": {"lvl1": "RW", "lvl2": "RW", "lvl3": "RW", "lvl4": "RW", "lvl5": "RW", "lvl6": "RW", "lvl7": "RW", "lvl8": "RW"}},
|
||||
"FUNCTEST_GP30Test": {"type": "uint32_t", "id": 2560, "privilege": {"lvl1": "RW", "lvl2": "RW", "lvl3": "RW", "lvl4": "RW", "lvl5": "RW", "lvl6": "RW", "lvl7": "RW", "lvl8": "RW"}},
|
||||
"FUNCTEST_LCDTest": {"type": "uint32_t", "id": 2561, "privilege": {"lvl1": "RW", "lvl2": "RW", "lvl3": "RW", "lvl4": "RW", "lvl5": "RW", "lvl6": "RW", "lvl7": "RW", "lvl8": "RW"}},
|
||||
"FUNCTEST_Iloop": {"type": "uint32_t", "id": 2562, "privilege": {"lvl1": "RW", "lvl2": "RW", "lvl3": "RW", "lvl4": "RW", "lvl5": "RW", "lvl6": "RW", "lvl7": "RW", "lvl8": "RW"}},
|
||||
"FUNCTEST_Pulse": {"type": "uint32_t", "id": 2563, "privilege": {"lvl1": "RW", "lvl2": "RW", "lvl3": "RW", "lvl4": "RW", "lvl5": "RW", "lvl6": "RW", "lvl7": "RW", "lvl8": "RW"}},
|
||||
"FUNCTEST_Pressure": {"type": "uint32_t", "id": 2564, "privilege": {"lvl1": "RW", "lvl2": "RW", "lvl3": "RW", "lvl4": "RW", "lvl5": "RW", "lvl6": "RW", "lvl7": "RW", "lvl8": "RW"}},
|
||||
"FUNCTEST_BatteryVoltage": {"type": "uint32_t", "id": 2565, "privilege": {"lvl1": "RO", "lvl2": "RO", "lvl3": "RO", "lvl4": "RO", "lvl5": "RO", "lvl6": "RO", "lvl7": "RO", "lvl8": "RO"}},
|
||||
"FUNCTEST_SupplyVoltage": {"type": "uint32_t", "id": 2566, "privilege": {"lvl1": "RO", "lvl2": "RO", "lvl3": "RO", "lvl4": "RO", "lvl5": "RO", "lvl6": "RO", "lvl7": "RO", "lvl8": "RO"}},
|
||||
"FUNCTEST_Temperature": {"type": "int16_t", "id": 2567, "privilege": {"lvl1": "RO", "lvl2": "RO", "lvl3": "RO", "lvl4": "RO", "lvl5": "RO", "lvl6": "RO", "lvl7": "RO", "lvl8": "RO"}},
|
||||
"FUNCTEST_RFID": {"type": "uint32_t", "id": 2568, "privilege": {"lvl1": "RW", "lvl2": "RW", "lvl3": "RW", "lvl4": "RW", "lvl5": "RW", "lvl6": "RW", "lvl7": "RW", "lvl8": "RW"}},
|
||||
"FUNCTEST_OpticalOutput": {"type": "uint32_t", "id": 2569, "privilege": {"lvl1": "RW", "lvl2": "RW", "lvl3": "RW", "lvl4": "RW", "lvl5": "RW", "lvl6": "RW", "lvl7": "RW", "lvl8": "RW"}},
|
||||
"FUNCTEST_Radio": {"type": "uint32_t", "id": 2570, "privilege": {"lvl1": "RW", "lvl2": "RW", "lvl3": "RW", "lvl4": "RW", "lvl5": "RW", "lvl6": "RW", "lvl7": "RW", "lvl8": "RW"}},
|
||||
"FUNCTEST_MultiTest": {"type": "uint16_t", "id": 2571, "privilege": {"lvl1": "RW", "lvl2": "RW", "lvl3": "RW", "lvl4": "RW", "lvl5": "RW", "lvl6": "RW", "lvl7": "RW", "lvl8": "RW"}},
|
||||
"FUNCTEST_NFCUID": {"type": "uint64_t", "id": 2572, "privilege": {"lvl1": "RW", "lvl2": "RW", "lvl3": "RW", "lvl4": "RW", "lvl5": "RW", "lvl6": "RW", "lvl7": "RW", "lvl8": "RW"}},
|
||||
"FUNCTEST_CPUTest": {"type": "uint32_t", "id": 2573, "privilege": {"lvl1": "RW", "lvl2": "RW", "lvl3": "RW", "lvl4": "RW", "lvl5": "RW", "lvl6": "RW", "lvl7": "RW", "lvl8": "RW"}},
|
||||
"GENESISFLOW_SampleRate": {"type": "uint8_t", "id": 3840, "privilege": {"lvl1": "RO", "lvl2": "RO", "lvl3": "RO", "lvl4": "RO", "lvl5": "RW", "lvl6": "RW", "lvl7": "RW", "lvl8": "RW"}},
|
||||
"GENESISFLOW_FirstHitLvlUp1": {"type": "int8_t", "id": 3841, "privilege": {"lvl1": "RO", "lvl2": "RO", "lvl3": "RO", "lvl4": "RO", "lvl5": "RO", "lvl6": "RO", "lvl7": "RW", "lvl8": "RW"}},
|
||||
"GENESISFLOW_FirstHitLvlUp2": {"type": "int8_t", "id": 3842, "privilege": {"lvl1": "RO", "lvl2": "RO", "lvl3": "RO", "lvl4": "RO", "lvl5": "RO", "lvl6": "RO", "lvl7": "RW", "lvl8": "RW"}},
|
||||
@@ -115,7 +102,7 @@
|
||||
"GENESISFLOW_FireBuffer1": {"type": "uint8_t", "id": 3870, "privilege": {"lvl1": "RO", "lvl2": "RO", "lvl3": "RO", "lvl4": "RO", "lvl5": "RO", "lvl6": "RO", "lvl7": "RW", "lvl8": "RW"}},
|
||||
"GENESISFLOW_FireBuffer2": {"type": "uint8_t", "id": 3871, "privilege": {"lvl1": "RO", "lvl2": "RO", "lvl3": "RO", "lvl4": "RO", "lvl5": "RO", "lvl6": "RO", "lvl7": "RW", "lvl8": "RW"}},
|
||||
"GENESISFLOW_FireBuffer3": {"type": "uint8_t", "id": 3872, "privilege": {"lvl1": "RO", "lvl2": "RO", "lvl3": "RO", "lvl4": "RO", "lvl5": "RO", "lvl6": "RO", "lvl7": "RW", "lvl8": "RW"}},
|
||||
"GENESISFLOW_TriggerActive": {"type": "bool_t", "id": 3873, "privilege": {"lvl1": "NA", "lvl2": "NA", "lvl3": "WO", "lvl4": "NA", "lvl5": "WO", "lvl6": "WO", "lvl7": "WO", "lvl8": "WO"}},
|
||||
"GENESISFLOW_TriggerActive": {"type": "bool_t", "id": 3873, "privilege": {"lvl1": "NA", "lvl2": "NA", "lvl3": "RW", "lvl4": "NA", "lvl5": "RW", "lvl6": "RW", "lvl7": "RW", "lvl8": "RW"}},
|
||||
"GENESISFLOW_TriggerIdle": {"type": "uint16_t", "id": 3874, "privilege": {"lvl1": "RO", "lvl2": "RO", "lvl3": "RO", "lvl4": "RO", "lvl5": "RO", "lvl6": "RO", "lvl7": "RW", "lvl8": "RW"}},
|
||||
"GENESISFLOW_MaxValidDeltaToF": {"type": "uint32_t", "id": 3875, "privilege": {"lvl1": "RO", "lvl2": "RO", "lvl3": "RO", "lvl4": "RO", "lvl5": "RO", "lvl6": "RO", "lvl7": "RW", "lvl8": "RW"}},
|
||||
"GENESISFLOW_MaxValidToF": {"type": "uint32_t", "id": 3876, "privilege": {"lvl1": "RO", "lvl2": "RO", "lvl3": "RO", "lvl4": "RO", "lvl5": "RO", "lvl6": "RO", "lvl7": "RW", "lvl8": "RW"}},
|
||||
@@ -144,26 +131,30 @@
|
||||
"GENESISFLOW_MaxDeltaToFRange": {"type": "uint32_t", "id": 3899, "privilege": {"lvl1": "RO", "lvl2": "RO", "lvl3": "RO", "lvl4": "RO", "lvl5": "RO", "lvl6": "RO", "lvl7": "RW", "lvl8": "RW"}},
|
||||
"GENESISFLOW_LookupFileCrc": {"type": "uint32_t", "id": 3900, "privilege": {"lvl1": "RO", "lvl2": "RO", "lvl3": "RO", "lvl4": "RO", "lvl5": "RO", "lvl6": "RO", "lvl7": "RW", "lvl8": "RW"}},
|
||||
"GENESISFLOW_DisplayLeadingZeros": {"type": "bool_t", "id": 3901, "privilege": {"lvl1": "RO", "lvl2": "RO", "lvl3": "RO", "lvl4": "RO", "lvl5": "RO", "lvl6": "RO", "lvl7": "RW", "lvl8": "RW"}},
|
||||
"FUNCTEST_GP30Test": {"type": "uint32_t", "id": 2560, "privilege": {"lvl1": "RW", "lvl2": "RW", "lvl3": "RW", "lvl4": "RW", "lvl5": "RW", "lvl6": "RW", "lvl7": "RW", "lvl8": "RW"}},
|
||||
"FUNCTEST_LCDTest": {"type": "uint32_t", "id": 2561, "privilege": {"lvl1": "RW", "lvl2": "RW", "lvl3": "RW", "lvl4": "RW", "lvl5": "RW", "lvl6": "RW", "lvl7": "RW", "lvl8": "RW"}},
|
||||
"FUNCTEST_Iloop": {"type": "uint32_t", "id": 2562, "privilege": {"lvl1": "RW", "lvl2": "RW", "lvl3": "RW", "lvl4": "RW", "lvl5": "RW", "lvl6": "RW", "lvl7": "RW", "lvl8": "RW"}},
|
||||
"FUNCTEST_Pulse": {"type": "uint32_t", "id": 2563, "privilege": {"lvl1": "RW", "lvl2": "RW", "lvl3": "RW", "lvl4": "RW", "lvl5": "RW", "lvl6": "RW", "lvl7": "RW", "lvl8": "RW"}},
|
||||
"FUNCTEST_Pressure": {"type": "uint32_t", "id": 2564, "privilege": {"lvl1": "RW", "lvl2": "RW", "lvl3": "RW", "lvl4": "RW", "lvl5": "RW", "lvl6": "RW", "lvl7": "RW", "lvl8": "RW"}},
|
||||
"FUNCTEST_BatteryVoltage": {"type": "uint32_t", "id": 2565, "privilege": {"lvl1": "RO", "lvl2": "RO", "lvl3": "RO", "lvl4": "RO", "lvl5": "RO", "lvl6": "RO", "lvl7": "RO", "lvl8": "RO"}},
|
||||
"FUNCTEST_SupplyVoltage": {"type": "uint32_t", "id": 2566, "privilege": {"lvl1": "RO", "lvl2": "RO", "lvl3": "RO", "lvl4": "RO", "lvl5": "RO", "lvl6": "RO", "lvl7": "RO", "lvl8": "RO"}},
|
||||
"FUNCTEST_Temperature": {"type": "int16_t", "id": 2567, "privilege": {"lvl1": "RO", "lvl2": "RO", "lvl3": "RO", "lvl4": "RO", "lvl5": "RO", "lvl6": "RO", "lvl7": "RO", "lvl8": "RO"}},
|
||||
"FUNCTEST_RFID": {"type": "uint32_t", "id": 2568, "privilege": {"lvl1": "RW", "lvl2": "RW", "lvl3": "RW", "lvl4": "RW", "lvl5": "RW", "lvl6": "RW", "lvl7": "RW", "lvl8": "RW"}},
|
||||
"FUNCTEST_OpticalOutput": {"type": "uint32_t", "id": 2569, "privilege": {"lvl1": "RW", "lvl2": "RW", "lvl3": "RW", "lvl4": "RW", "lvl5": "RW", "lvl6": "RW", "lvl7": "RW", "lvl8": "RW"}},
|
||||
"FUNCTEST_Radio": {"type": "uint32_t", "id": 2570, "privilege": {"lvl1": "RW", "lvl2": "RW", "lvl3": "RW", "lvl4": "RW", "lvl5": "RW", "lvl6": "RW", "lvl7": "RW", "lvl8": "RW"}},
|
||||
"FUNCTEST_MultiTest": {"type": "uint16_t", "id": 2571, "privilege": {"lvl1": "RW", "lvl2": "RW", "lvl3": "RW", "lvl4": "RW", "lvl5": "RW", "lvl6": "RW", "lvl7": "RW", "lvl8": "RW"}},
|
||||
"FUNCTEST_NFCUID": {"type": "uint64_t", "id": 2572, "privilege": {"lvl1": "RW", "lvl2": "RW", "lvl3": "RW", "lvl4": "RW", "lvl5": "RW", "lvl6": "RW", "lvl7": "RW", "lvl8": "RW"}},
|
||||
"FUNCTEST_CPUTest": {"type": "uint32_t", "id": 2573, "privilege": {"lvl1": "RW", "lvl2": "RW", "lvl3": "RW", "lvl4": "RW", "lvl5": "RW", "lvl6": "RW", "lvl7": "RW", "lvl8": "RW"}},
|
||||
"OPTICALPORT_BaudRateCapabilities": {"type": "uint32_t", "id": 1280, "privilege": {"lvl1": "RO", "lvl2": "RO", "lvl3": "RO", "lvl4": "RO", "lvl5": "RO", "lvl6": "RO", "lvl7": "RO", "lvl8": "RO"}},
|
||||
"OPTICALPORT_PacketSizeCapabilities": {"type": "uint32_t", "id": 1281, "privilege": {"lvl1": "RO", "lvl2": "RO", "lvl3": "RO", "lvl4": "RO", "lvl5": "RO", "lvl6": "RO", "lvl7": "RO", "lvl8": "RO"}},
|
||||
"OPTICALPORT_ProtocolVersion": {"type": "uint16_t", "id": 1282, "privilege": {"lvl1": "RO", "lvl2": "RO", "lvl3": "RO", "lvl4": "RO", "lvl5": "RO", "lvl6": "RO", "lvl7": "RO", "lvl8": "RO"}},
|
||||
"OPTICALPORT_BaudRateSelected": {"type": "uint32_t", "id": 1283, "privilege": {"lvl1": "RO", "lvl2": "RO", "lvl3": "RO", "lvl4": "RO", "lvl5": "RO", "lvl6": "RO", "lvl7": "RO", "lvl8": "RO"}},
|
||||
"OPTICALPORT_PacketSizeSelected": {"type": "uint32_t", "id": 1284, "privilege": {"lvl1": "RO", "lvl2": "RO", "lvl3": "RO", "lvl4": "RO", "lvl5": "RO", "lvl6": "RO", "lvl7": "RO", "lvl8": "RO"}},
|
||||
"OPTICALPORT_ExternalUartControl": {"type": "uint8_t", "id": 1285, "privilege": {"lvl1": "WO", "lvl2": "WO", "lvl3": "WO", "lvl4": "WO", "lvl5": "WO", "lvl6": "WO", "lvl7": "WO", "lvl8": "WO"}},
|
||||
"GENESISFLOW_InstallationCorrectionEnabled": {"type": "bool_t", "id": 3902, "privilege": {"lvl1": "RO", "lvl2": "RO", "lvl3": "RO", "lvl4": "RO", "lvl5": "RO", "lvl6": "RO", "lvl7": "RW", "lvl8": "RW"}},
|
||||
"GENESISFLOW_InstallationDetectionThreshold": {"type": "uint32_t", "id": 3903, "privilege": {"lvl1": "RO", "lvl2": "RO", "lvl3": "RO", "lvl4": "RO", "lvl5": "RO", "lvl6": "RO", "lvl7": "RW", "lvl8": "RW"}},
|
||||
"GENESISFLOW_InstallationType": {"type": "uint32_t", "id": 3904, "privilege": {"lvl1": "RO", "lvl2": "RO", "lvl3": "RO", "lvl4": "RO", "lvl5": "RO", "lvl6": "RO", "lvl7": "RW", "lvl8": "RW"}},
|
||||
"GENESISFLOW_InstallationDetectionStatus": {"type": "uint8_t", "id": 3905, "privilege": {"lvl1": "RO", "lvl2": "RO", "lvl3": "RO", "lvl4": "RO", "lvl5": "RO", "lvl6": "RO", "lvl7": "RW", "lvl8": "RW"}},
|
||||
"GENESISFLOW_FractionalBars": {"type": "bool_t", "id": 3906, "privilege": {"lvl1": "RO", "lvl2": "RO", "lvl3": "RW", "lvl4": "RO", "lvl5": "RW", "lvl6": "RW", "lvl7": "RW", "lvl8": "RW"}},
|
||||
"GENESISFLOW_CalibrationCount": {"type": "uint8_t", "id": 3907, "privilege": {"lvl1": "RO", "lvl2": "RO", "lvl3": "RO", "lvl4": "RO", "lvl5": "RO", "lvl6": "RO", "lvl7": "RO", "lvl8": "RO"}},
|
||||
"GENESISFLOW_DelayedLedOff": {"type": "uint16_t", "id": 3908, "privilege": {"lvl1": "NA", "lvl2": "NA", "lvl3": "NA", "lvl4": "NA", "lvl5": "WO", "lvl6": "WO", "lvl7": "WO", "lvl8": "WO"}},
|
||||
"GENESISFLOW_DisplayVolumeRow2": {"type": "bool_t", "id": 3909, "privilege": {"lvl1": "RO", "lvl2": "RO", "lvl3": "RW", "lvl4": "RO", "lvl5": "RW", "lvl6": "RW", "lvl7": "RW", "lvl8": "RW"}},
|
||||
"IRDA_PulseReportRate": {"type": "enum8", "id": 5120, "privilege": {"lvl1": "RO", "lvl2": "RO", "lvl3": "RO", "lvl4": "RO", "lvl5": "RW", "lvl6": "RW", "lvl7": "RW", "lvl8": "RW"}},
|
||||
"IRDA_AdapterPresenceLimit": {"type": "uint8_t", "id": 5121, "privilege": {"lvl1": "RO", "lvl2": "RO", "lvl3": "RO", "lvl4": "RO", "lvl5": "RO", "lvl6": "RO", "lvl7": "RW", "lvl8": "RW"}},
|
||||
"IRDA_PulseSequence": {"type": "uint8_t", "id": 5122, "privilege": {"lvl1": "RO", "lvl2": "RO", "lvl3": "RO", "lvl4": "RO", "lvl5": "RO", "lvl6": "RO", "lvl7": "RW", "lvl8": "RW"}},
|
||||
"IRDA_StoreConfiguration": {"type": "uint32_t", "id": 5123, "privilege": {"lvl1": "NA", "lvl2": "NA", "lvl3": "NA", "lvl4": "NA", "lvl5": "RW", "lvl6": "RW", "lvl7": "RW", "lvl8": "RW"}},
|
||||
"IRDA_AMRDigits": {"type": "uint8_t", "id": 5124, "privilege": {"lvl1": "RO", "lvl2": "RO", "lvl3": "RO", "lvl4": "RO", "lvl5": "RW", "lvl6": "RW", "lvl7": "RW", "lvl8": "RW"}},
|
||||
"IRDA_AMROffset": {"type": "int8_t", "id": 5125, "privilege": {"lvl1": "RO", "lvl2": "RO", "lvl3": "RO", "lvl4": "RO", "lvl5": "RW", "lvl6": "RW", "lvl7": "RW", "lvl8": "RW"}},
|
||||
"IRDA_UI1203Fields": {"type": "uint16_t", "id": 5126, "privilege": {"lvl1": "RO", "lvl2": "RO", "lvl3": "RO", "lvl4": "RO", "lvl5": "RW", "lvl6": "RW", "lvl7": "RW", "lvl8": "RW"}},
|
||||
"IRDA_MfgDate": {"type": "time_t", "id": 5127, "privilege": {"lvl1": "RO", "lvl2": "RO", "lvl3": "RO", "lvl4": "RO", "lvl5": "RO", "lvl6": "RO", "lvl7": "RW", "lvl8": "RW"}},
|
||||
"IRDA_DisplayAMRDigits": {"type": "bool_t", "id": 5128, "privilege": {"lvl1": "RO", "lvl2": "RO", "lvl3": "RO", "lvl4": "RO", "lvl5": "RW", "lvl6": "RW", "lvl7": "RW", "lvl8": "RW"}},
|
||||
"IRDA_AdapterID": {"type": "string", "id": 5129, "privilege": {"lvl1": "RO", "lvl2": "RO", "lvl3": "RO", "lvl4": "RO", "lvl5": "RO", "lvl6": "RO", "lvl7": "RO", "lvl8": "RO"}},
|
||||
"IRDA_AdapterFwVersion": {"type": "uint16_t", "id": 5130, "privilege": {"lvl1": "RO", "lvl2": "RO", "lvl3": "RO", "lvl4": "RO", "lvl5": "RO", "lvl6": "RO", "lvl7": "RO", "lvl8": "RO"}},
|
||||
"IRDA_ExtendedResolution": {"type": "bool_t", "id": 5131, "privilege": {"lvl1": "RO", "lvl2": "RO", "lvl3": "RO", "lvl4": "RO", "lvl5": "RW", "lvl6": "RW", "lvl7": "RW", "lvl8": "RW"}},
|
||||
"LOGGER_Quota": {"type": "uint32_t", "id": 2048, "privilege": {"lvl1": "RO", "lvl2": "RO", "lvl3": "RO", "lvl4": "RO", "lvl5": "RW", "lvl6": "RW", "lvl7": "RW", "lvl8": "RW"}},
|
||||
"LOGGER_Drive": {"type": "uint8_t", "id": 2049, "privilege": {"lvl1": "RO", "lvl2": "RO", "lvl3": "RO", "lvl4": "RO", "lvl5": "RW", "lvl6": "RW", "lvl7": "RW", "lvl8": "RW"}},
|
||||
"LOGGER_TriggerLogFlush": {"type": "bool_t", "id": 2050, "privilege": {"lvl1": "NA", "lvl2": "NA", "lvl3": "NA", "lvl4": "NA", "lvl5": "NA", "lvl6": "NA", "lvl7": "WO", "lvl8": "WO"}},
|
||||
"LOGGER_StoreConfiguration": {"type": "uint32_t", "id": 2051, "privilege": {"lvl1": "NA", "lvl2": "NA", "lvl3": "NA", "lvl4": "NA", "lvl5": "RW", "lvl6": "RW", "lvl7": "RW", "lvl8": "RW"}},
|
||||
"METROLOGYASST_ILoopMaxFlowRate": {"type": "uint32_t", "id": 4608, "privilege": {"lvl1": "RO", "lvl2": "RO", "lvl3": "RW", "lvl4": "RO", "lvl5": "RW", "lvl6": "RW", "lvl7": "RW", "lvl8": "RW"}},
|
||||
"METROLOGYASST_StoreConfiguration": {"type": "uint32_t", "id": 4609, "privilege": {"lvl1": "NA", "lvl2": "NA", "lvl3": "RW", "lvl4": "NA", "lvl5": "RW", "lvl6": "RW", "lvl7": "RW", "lvl8": "RW"}},
|
||||
"METROLOGYASST_PulseWeight": {"type": "uint32_t", "id": 4610, "privilege": {"lvl1": "RO", "lvl2": "RO", "lvl3": "RW", "lvl4": "RO", "lvl5": "RW", "lvl6": "RW", "lvl7": "RW", "lvl8": "RW"}},
|
||||
@@ -184,8 +175,42 @@
|
||||
"METROLOGYASST_PulseEvenDistribution": {"type": "bool_t", "id": 4625, "privilege": {"lvl1": "RO", "lvl2": "RO", "lvl3": "RW", "lvl4": "RO", "lvl5": "RW", "lvl6": "RW", "lvl7": "RW", "lvl8": "RW"}},
|
||||
"METROLOGYASST_PulseResolution": {"type": "uint8_t", "id": 4626, "privilege": {"lvl1": "RO", "lvl2": "RO", "lvl3": "RO", "lvl4": "RO", "lvl5": "RO", "lvl6": "RO", "lvl7": "RO", "lvl8": "RO"}},
|
||||
"METROLOGYASST_PressureCalibration": {"type": "int32_t", "id": 4627, "privilege": {"lvl1": "RO", "lvl2": "RO", "lvl3": "RW", "lvl4": "RO", "lvl5": "RW", "lvl6": "RW", "lvl7": "RW", "lvl8": "RW"}},
|
||||
"METROLOGYASST_DisplayEnable": {"type": "uint32_t", "id": 4628, "privilege": {"lvl1": "RO", "lvl2": "RO", "lvl3": "RW", "lvl4": "RO", "lvl5": "RW", "lvl6": "RW", "lvl7": "RW", "lvl8": "RW"}},
|
||||
"METROLOGYASST_PressureFlowRateCorrectionA": {"type": "int32_t", "id": 4629, "privilege": {"lvl1": "RO", "lvl2": "RO", "lvl3": "RO", "lvl4": "RO", "lvl5": "RO", "lvl6": "RO", "lvl7": "RW", "lvl8": "RW"}},
|
||||
"METROLOGYASST_PressureFlowRateCorrectionB": {"type": "int32_t", "id": 4630, "privilege": {"lvl1": "RO", "lvl2": "RO", "lvl3": "RO", "lvl4": "RO", "lvl5": "RO", "lvl6": "RO", "lvl7": "RW", "lvl8": "RW"}},
|
||||
"NA2WALARMS_StoreConfiguration": {"type": "uint32_t", "id": 5888, "privilege": {"lvl1": "NA", "lvl2": "NA", "lvl3": "RW", "lvl4": "NA", "lvl5": "NA", "lvl6": "NA", "lvl7": "RW", "lvl8": "RW"}},
|
||||
"NA2WALARMS_PredefEnable": {"type": "uint32_t", "id": 5889, "privilege": {"lvl1": "RO", "lvl2": "RO", "lvl3": "RO", "lvl4": "RO", "lvl5": "RO", "lvl6": "RO", "lvl7": "RW", "lvl8": "RW"}},
|
||||
"NA2WLOGGER_StoreConfiguration": {"type": "uint32_t", "id": 5632, "privilege": {"lvl1": "NA", "lvl2": "NA", "lvl3": "RW", "lvl4": "NA", "lvl5": "NA", "lvl6": "NA", "lvl7": "RW", "lvl8": "RW"}},
|
||||
"NA2WLOGGER_LimitLogSize": {"type": "uint32_t", "id": 5633, "privilege": {"lvl1": "RO", "lvl2": "RO", "lvl3": "RO", "lvl4": "RO", "lvl5": "RO", "lvl6": "RO", "lvl7": "RW", "lvl8": "RW"}},
|
||||
"NFC_EraseRMA": {"type": "bool_t", "id": 5376, "privilege": {"lvl1": "RO", "lvl2": "RO", "lvl3": "RO", "lvl4": "RO", "lvl5": "RO", "lvl6": "RO", "lvl7": "RO", "lvl8": "RW"}},
|
||||
"NFC_ForceUpdate": {"type": "uint8_t", "id": 5377, "privilege": {"lvl1": "NA", "lvl2": "NA", "lvl3": "NA", "lvl4": "NA", "lvl5": "NA", "lvl6": "NA", "lvl7": "WO", "lvl8": "WO"}},
|
||||
"OPTICALPORT_BaudRateCapabilities": {"type": "uint32_t", "id": 1280, "privilege": {"lvl1": "RO", "lvl2": "RO", "lvl3": "RO", "lvl4": "RO", "lvl5": "RO", "lvl6": "RO", "lvl7": "RO", "lvl8": "RO"}},
|
||||
"OPTICALPORT_PacketSizeCapabilities": {"type": "uint32_t", "id": 1281, "privilege": {"lvl1": "RO", "lvl2": "RO", "lvl3": "RO", "lvl4": "RO", "lvl5": "RO", "lvl6": "RO", "lvl7": "RO", "lvl8": "RO"}},
|
||||
"OPTICALPORT_ProtocolVersion": {"type": "uint16_t", "id": 1282, "privilege": {"lvl1": "RO", "lvl2": "RO", "lvl3": "RO", "lvl4": "RO", "lvl5": "RO", "lvl6": "RO", "lvl7": "RO", "lvl8": "RO"}},
|
||||
"OPTICALPORT_BaudRateSelected": {"type": "uint32_t", "id": 1283, "privilege": {"lvl1": "RO", "lvl2": "RO", "lvl3": "RO", "lvl4": "RO", "lvl5": "RO", "lvl6": "RO", "lvl7": "RO", "lvl8": "RO"}},
|
||||
"OPTICALPORT_PacketSizeSelected": {"type": "uint32_t", "id": 1284, "privilege": {"lvl1": "RO", "lvl2": "RO", "lvl3": "RO", "lvl4": "RO", "lvl5": "RO", "lvl6": "RO", "lvl7": "RO", "lvl8": "RO"}},
|
||||
"OPTICALPORT_ExternalUartControl": {"type": "uint8_t", "id": 1285, "privilege": {"lvl1": "WO", "lvl2": "WO", "lvl3": "WO", "lvl4": "WO", "lvl5": "WO", "lvl6": "WO", "lvl7": "WO", "lvl8": "WO"}},
|
||||
"PERIODICLOG_DataLogContents": {"type": "uint32_t", "id": 4352, "privilege": {"lvl1": "RW", "lvl2": "RW", "lvl3": "RW", "lvl4": "RW", "lvl5": "RW", "lvl6": "RW", "lvl7": "RW", "lvl8": "RW"}},
|
||||
"PERIODICLOG_DataLogPeriod": {"type": "uint16_t", "id": 4353, "privilege": {"lvl1": "RW", "lvl2": "RW", "lvl3": "RW", "lvl4": "RW", "lvl5": "RW", "lvl6": "RW", "lvl7": "RW", "lvl8": "RW"}},
|
||||
"PERIODICLOG_AverageFlowPeriod": {"type": "uint16_t", "id": 4354, "privilege": {"lvl1": "RW", "lvl2": "RW", "lvl3": "RW", "lvl4": "RW", "lvl5": "RW", "lvl6": "RW", "lvl7": "RW", "lvl8": "RW"}},
|
||||
"PERIODICLOG_FixedDateReadingContents": {"type": "uint32_t", "id": 4355, "privilege": {"lvl1": "RW", "lvl2": "RW", "lvl3": "RW", "lvl4": "RW", "lvl5": "RW", "lvl6": "RW", "lvl7": "RW", "lvl8": "RW"}},
|
||||
"PERIODICLOG_FixedDateDayOfMonth": {"type": "uint8_t", "id": 4356, "privilege": {"lvl1": "RW", "lvl2": "RW", "lvl3": "RW", "lvl4": "RW", "lvl5": "RW", "lvl6": "RW", "lvl7": "RW", "lvl8": "RW"}},
|
||||
"PERIODICLOG_PeriodicLogLifeTimeCounter": {"type": "uint32_t", "id": 4357, "privilege": {"lvl1": "RW", "lvl2": "RW", "lvl3": "RW", "lvl4": "RW", "lvl5": "RW", "lvl6": "RW", "lvl7": "RW", "lvl8": "RW"}},
|
||||
"PERIODICLOG_ResetCounter": {"type": "uint32_t", "id": 4358, "privilege": {"lvl1": "RW", "lvl2": "RW", "lvl3": "RW", "lvl4": "RW", "lvl5": "RW", "lvl6": "RW", "lvl7": "RW", "lvl8": "RW"}},
|
||||
"POWERMON_BatteryVoltage": {"type": "uint16_t", "id": 256, "privilege": {"lvl1": "RO", "lvl2": "RO", "lvl3": "RO", "lvl4": "RO", "lvl5": "RO", "lvl6": "RO", "lvl7": "RO", "lvl8": "RO"}},
|
||||
"POWERMON_BatteryManufacturer": {"type": "string", "id": 257, "privilege": {"lvl1": "RO", "lvl2": "RO", "lvl3": "RO", "lvl4": "RO", "lvl5": "RO", "lvl6": "RO", "lvl7": "RO", "lvl8": "RO"}},
|
||||
"POWERMON_BatterySize": {"type": "enum8", "id": 258, "privilege": {"lvl1": "RO", "lvl2": "RO", "lvl3": "RO", "lvl4": "RO", "lvl5": "RO", "lvl6": "RO", "lvl7": "RO", "lvl8": "RO"}},
|
||||
"POWERMON_BatteryQuantity": {"type": "uint8_t", "id": 260, "privilege": {"lvl1": "RO", "lvl2": "RO", "lvl3": "RO", "lvl4": "RO", "lvl5": "RW", "lvl6": "RW", "lvl7": "RW", "lvl8": "RW"}},
|
||||
"POWERMON_BatteryRatedVoltage": {"type": "uint8_t", "id": 261, "privilege": {"lvl1": "RO", "lvl2": "RO", "lvl3": "RO", "lvl4": "RO", "lvl5": "RO", "lvl6": "RO", "lvl7": "RO", "lvl8": "RO"}},
|
||||
"POWERMON_BatteryVoltageMinThreshold": {"type": "uint8_t", "id": 263, "privilege": {"lvl1": "RO", "lvl2": "RO", "lvl3": "RO", "lvl4": "RO", "lvl5": "RO", "lvl6": "RO", "lvl7": "RO", "lvl8": "RO"}},
|
||||
"POWERMON_BatterySelection": {"type": "uint8_t", "id": 264, "privilege": {"lvl1": "RO", "lvl2": "RO", "lvl3": "RO", "lvl4": "RO", "lvl5": "RW", "lvl6": "RW", "lvl7": "RW", "lvl8": "RW"}},
|
||||
"POWERMON_TotalUsedCharge": {"type": "uint64_t", "id": 265, "privilege": {"lvl1": "RO", "lvl2": "RO", "lvl3": "RO", "lvl4": "RO", "lvl5": "RO", "lvl6": "RO", "lvl7": "RW", "lvl8": "RW"}},
|
||||
"POWERMON_TotalUsedSeconds": {"type": "uint32_t", "id": 266, "privilege": {"lvl1": "RO", "lvl2": "RO", "lvl3": "RO", "lvl4": "RO", "lvl5": "RO", "lvl6": "RO", "lvl7": "RW", "lvl8": "RW"}},
|
||||
"POWERMON_WarnFromClamp": {"type": "uint32_t", "id": 267, "privilege": {"lvl1": "RO", "lvl2": "RO", "lvl3": "RO", "lvl4": "RO", "lvl5": "RW", "lvl6": "RW", "lvl7": "RW", "lvl8": "RW"}},
|
||||
"POWERMON_BatteryMilliAHrRating": {"type": "uint16_t", "id": 268, "privilege": {"lvl1": "RO", "lvl2": "RO", "lvl3": "RO", "lvl4": "RO", "lvl5": "RO", "lvl6": "RO", "lvl7": "RO", "lvl8": "RO"}},
|
||||
"POWERMON_StoreConfiguration": {"type": "uint32_t", "id": 269, "privilege": {"lvl1": "NA", "lvl2": "NA", "lvl3": "NA", "lvl4": "NA", "lvl5": "RW", "lvl6": "RW", "lvl7": "RW", "lvl8": "RW"}},
|
||||
"POWERMON_CriticalRepeatLimit": {"type": "uint8_t", "id": 270, "privilege": {"lvl1": "RO", "lvl2": "RO", "lvl3": "RO", "lvl4": "RO", "lvl5": "RW", "lvl6": "RW", "lvl7": "RW", "lvl8": "RW"}},
|
||||
"POWERMON_RemainingSeconds": {"type": "uint32_t", "id": 271, "privilege": {"lvl1": "RO", "lvl2": "RO", "lvl3": "RO", "lvl4": "RO", "lvl5": "RO", "lvl6": "RO", "lvl7": "RO", "lvl8": "RO"}},
|
||||
"SENSUSRADIO_TxInterval": {"type": "uint16_t", "id": 4096, "privilege": {"lvl1": "RW", "lvl2": "RW", "lvl3": "RW", "lvl4": "RW", "lvl5": "RW", "lvl6": "RW", "lvl7": "RW", "lvl8": "RW"}},
|
||||
"SENSUSRADIO_OmTxInterval": {"type": "uint16_t", "id": 4097, "privilege": {"lvl1": "RW", "lvl2": "RW", "lvl3": "RW", "lvl4": "RW", "lvl5": "RW", "lvl6": "RW", "lvl7": "RW", "lvl8": "RW"}},
|
||||
"SENSUSRADIO_LatInterval": {"type": "uint8_t", "id": 4098, "privilege": {"lvl1": "RW", "lvl2": "RW", "lvl3": "RW", "lvl4": "RW", "lvl5": "RW", "lvl6": "RW", "lvl7": "RW", "lvl8": "RW"}},
|
||||
@@ -260,34 +285,29 @@
|
||||
"SENSUSRADIO_PressureCalibration": {"type": "uint32_t", "id": 4170, "privilege": {"lvl1": "RW", "lvl2": "RW", "lvl3": "RW", "lvl4": "RW", "lvl5": "RW", "lvl6": "RW", "lvl7": "RW", "lvl8": "RW"}},
|
||||
"SENSUSRADIO_TfxSecondaryChannelInfo_1": {"type": "uint32_t", "id": 4171, "privilege": {"lvl1": "RW", "lvl2": "RW", "lvl3": "RW", "lvl4": "RW", "lvl5": "RW", "lvl6": "RW", "lvl7": "RW", "lvl8": "RW"}},
|
||||
"SENSUSRADIO_TfxSecondaryChannelInfo_2": {"type": "uint32_t", "id": 4172, "privilege": {"lvl1": "RW", "lvl2": "RW", "lvl3": "RW", "lvl4": "RW", "lvl5": "RW", "lvl6": "RW", "lvl7": "RW", "lvl8": "RW"}},
|
||||
"SENSUSRADIO_OmsLastMessageCounter": {"type": "uint32_t", "id": 4173, "privilege": {"lvl1": "RW", "lvl2": "RW", "lvl3": "RW", "lvl4": "RW", "lvl5": "RW", "lvl6": "RW", "lvl7": "RW", "lvl8": "RW"}},
|
||||
"SENSUSRADIO_PersistenceGroup5": {"type": "uint32_t", "id": 4174, "privilege": {"lvl1": "RW", "lvl2": "RW", "lvl3": "RW", "lvl4": "RW", "lvl5": "RW", "lvl6": "RW", "lvl7": "RW", "lvl8": "RW"}},
|
||||
"SENSUSRADIO_PersistenceGroup6": {"type": "uint32_t", "id": 4175, "privilege": {"lvl1": "RW", "lvl2": "RW", "lvl3": "RW", "lvl4": "RW", "lvl5": "RW", "lvl6": "RW", "lvl7": "RW", "lvl8": "RW"}},
|
||||
"SYSTEM_TriggerUpgrade": {"type": "bool_t", "id": 0, "privilege": {"lvl1": "NA", "lvl2": "NA", "lvl3": "NA", "lvl4": "NA", "lvl5": "NA", "lvl6": "NA", "lvl7": "WO", "lvl8": "WO"}},
|
||||
"SYSTEM_CheckPresence": {"type": "RPC", "id": 1, "privilege": {"lvl1": "RW", "lvl2": "RW", "lvl3": "RW", "lvl4": "RW", "lvl5": "RW", "lvl6": "RW", "lvl7": "RW", "lvl8": "RW"}},
|
||||
"SYSTEM_PCBSerialNumber": {"type": "string", "id": 2, "privilege": {"lvl1": "RO", "lvl2": "RO", "lvl3": "RO", "lvl4": "RO", "lvl5": "RO", "lvl6": "RO", "lvl7": "RO", "lvl8": "RO"}},
|
||||
"SYSTEM_CustomerSerialNumber0": {"type": "string", "id": 3, "privilege": {"lvl1": "RO", "lvl2": "RO", "lvl3": "RO", "lvl4": "RO", "lvl5": "RW", "lvl6": "RW", "lvl7": "RW", "lvl8": "RW"}},
|
||||
"SYSTEM_CustomerSerialNumber1": {"type": "string", "id": 4, "privilege": {"lvl1": "RO", "lvl2": "RO", "lvl3": "RO", "lvl4": "RO", "lvl5": "RW", "lvl6": "RW", "lvl7": "RW", "lvl8": "RW"}},
|
||||
"SYSTEM_CustomerSerialNumber2": {"type": "string", "id": 5, "privilege": {"lvl1": "RO", "lvl2": "RO", "lvl3": "RO", "lvl4": "RO", "lvl5": "RW", "lvl6": "RW", "lvl7": "RW", "lvl8": "RW"}},
|
||||
"SYSTEM_CustomerSerialNumber3": {"type": "string", "id": 6, "privilege": {"lvl1": "RO", "lvl2": "RO", "lvl3": "RO", "lvl4": "RO", "lvl5": "RW", "lvl6": "RW", "lvl7": "RW", "lvl8": "RW"}},
|
||||
"SYSTEM_MonotonicSeconds": {"type": "uint32_t", "id": 7, "privilege": {"lvl1": "RO", "lvl2": "RO", "lvl3": "RO", "lvl4": "RO", "lvl5": "RO", "lvl6": "RO", "lvl7": "RO", "lvl8": "RO"}},
|
||||
"SYSTEM_CalendarSeconds": {"type": "time_t", "id": 8, "privilege": {"lvl1": "RO", "lvl2": "RO", "lvl3": "RO", "lvl4": "RO", "lvl5": "RW", "lvl6": "RW", "lvl7": "RW", "lvl8": "RW"}},
|
||||
"SYSTEM_CoreRevision": {"type": "string", "id": 9, "privilege": {"lvl1": "RO", "lvl2": "RO", "lvl3": "RO", "lvl4": "RO", "lvl5": "RO", "lvl6": "RO", "lvl7": "RO", "lvl8": "RO"}},
|
||||
"SYSTEM_DriveCapacity": {"type": "uint32_t", "id": 10, "privilege": {"lvl1": "RW", "lvl2": "RW", "lvl3": "RW", "lvl4": "RW", "lvl5": "RW", "lvl6": "RW", "lvl7": "RW", "lvl8": "RW"}},
|
||||
"SYSTEM_ExitReason": {"type": "status_t", "id": 11, "privilege": {"lvl1": "RW", "lvl2": "RW", "lvl3": "RW", "lvl4": "RW", "lvl5": "RW", "lvl6": "RW", "lvl7": "RW", "lvl8": "RW"}},
|
||||
"SYSTEM_CorePlatform": {"type": "uint16_t", "id": 12, "privilege": {"lvl1": "RO", "lvl2": "RO", "lvl3": "RO", "lvl4": "RO", "lvl5": "RO", "lvl6": "RO", "lvl7": "RO", "lvl8": "RO"}},
|
||||
"SYSTEM_CRC": {"type": "uint16_t", "id": 13, "privilege": {"lvl1": "RW", "lvl2": "RW", "lvl3": "RW", "lvl4": "RW", "lvl5": "RW", "lvl6": "RW", "lvl7": "RW", "lvl8": "RW"}},
|
||||
"SYSTEM_UpgradePermissions": {"type": "uint8_t", "id": 14, "privilege": {"lvl1": "RO", "lvl2": "RO", "lvl3": "RO", "lvl4": "RO", "lvl5": "RO", "lvl6": "RO", "lvl7": "RW", "lvl8": "RW"}},
|
||||
"SYSTEM_CRC32": {"type": "uint32_t", "id": 15, "privilege": {"lvl1": "RW", "lvl2": "RW", "lvl3": "RW", "lvl4": "RW", "lvl5": "RW", "lvl6": "RW", "lvl7": "RW", "lvl8": "RW"}},
|
||||
"TESTMANAGER_OutputFile": {"type": "string", "id": 25088, "privilege": {"lvl1": "RW", "lvl2": "RW", "lvl3": "RW", "lvl4": "RW", "lvl5": "RW", "lvl6": "RW", "lvl7": "RW", "lvl8": "RW"}},
|
||||
"TESTMANAGER_TestNumber": {"type": "uint32_t", "id": 25089, "privilege": {"lvl1": "RW", "lvl2": "RW", "lvl3": "RW", "lvl4": "RW", "lvl5": "RW", "lvl6": "RW", "lvl7": "RW", "lvl8": "RW"}},
|
||||
"TESTMANAGER_TestStatus": {"type": "enum8", "id": 25090, "privilege": {"lvl1": "RW", "lvl2": "RW", "lvl3": "RW", "lvl4": "RW", "lvl5": "RW", "lvl6": "RW", "lvl7": "RW", "lvl8": "RW"}},
|
||||
"TESTMANAGER_TrapError": {"type": "uint32_t", "id": 25091, "privilege": {"lvl1": "RW", "lvl2": "RW", "lvl3": "RW", "lvl4": "RW", "lvl5": "RW", "lvl6": "RW", "lvl7": "RW", "lvl8": "RW"}},
|
||||
"TESTMANAGER_TestParameter": {"type": "uint32_t", "id": 25092, "privilege": {"lvl1": "RW", "lvl2": "RW", "lvl3": "RW", "lvl4": "RW", "lvl5": "RW", "lvl6": "RW", "lvl7": "RW", "lvl8": "RW"}},
|
||||
"PERIODICLOG_DataLogContents": {"type": "uint32_t", "id": 4352, "privilege": {"lvl1": "RW", "lvl2": "RW", "lvl3": "RW", "lvl4": "RW", "lvl5": "RW", "lvl6": "RW", "lvl7": "RW", "lvl8": "RW"}},
|
||||
"PERIODICLOG_DataLogPeriod": {"type": "uint16_t", "id": 4353, "privilege": {"lvl1": "RW", "lvl2": "RW", "lvl3": "RW", "lvl4": "RW", "lvl5": "RW", "lvl6": "RW", "lvl7": "RW", "lvl8": "RW"}},
|
||||
"PERIODICLOG_AverageFlowPeriod": {"type": "uint16_t", "id": 4354, "privilege": {"lvl1": "RW", "lvl2": "RW", "lvl3": "RW", "lvl4": "RW", "lvl5": "RW", "lvl6": "RW", "lvl7": "RW", "lvl8": "RW"}},
|
||||
"PERIODICLOG_FixedDateReadingContents": {"type": "uint32_t", "id": 4355, "privilege": {"lvl1": "RW", "lvl2": "RW", "lvl3": "RW", "lvl4": "RW", "lvl5": "RW", "lvl6": "RW", "lvl7": "RW", "lvl8": "RW"}},
|
||||
"PERIODICLOG_FixedDateDayOfMonth": {"type": "uint8_t", "id": 4356, "privilege": {"lvl1": "RW", "lvl2": "RW", "lvl3": "RW", "lvl4": "RW", "lvl5": "RW", "lvl6": "RW", "lvl7": "RW", "lvl8": "RW"}},
|
||||
"PERIODICLOG_PeriodicLogLifeTimeCounter": {"type": "uint32_t", "id": 4357, "privilege": {"lvl1": "RW", "lvl2": "RW", "lvl3": "RW", "lvl4": "RW", "lvl5": "RW", "lvl6": "RW", "lvl7": "RW", "lvl8": "RW"}},
|
||||
"PERIODICLOG_ResetCounter": {"type": "uint32_t", "id": 4358, "privilege": {"lvl1": "RW", "lvl2": "RW", "lvl3": "RW", "lvl4": "RW", "lvl5": "RW", "lvl6": "RW", "lvl7": "RW", "lvl8": "RW"}},
|
||||
"IRDA_PulseReportRate": {"type": "enum8", "id": 5120, "privilege": {"lvl1": "RO", "lvl2": "RO", "lvl3": "RO", "lvl4": "RO", "lvl5": "RW", "lvl6": "RW", "lvl7": "RW", "lvl8": "RW"}},
|
||||
"IRDA_AdapterPresenceLimit": {"type": "uint8_t", "id": 5121, "privilege": {"lvl1": "RO", "lvl2": "RO", "lvl3": "RO", "lvl4": "RO", "lvl5": "RO", "lvl6": "RO", "lvl7": "RW", "lvl8": "RW"}},
|
||||
"IRDA_PulseSequence": {"type": "uint8_t", "id": 5122, "privilege": {"lvl1": "RO", "lvl2": "RO", "lvl3": "RO", "lvl4": "RO", "lvl5": "RO", "lvl6": "RO", "lvl7": "RW", "lvl8": "RW"}},
|
||||
"IRDA_StoreConfiguration": {"type": "uint32_t", "id": 5123, "privilege": {"lvl1": "NA", "lvl2": "NA", "lvl3": "NA", "lvl4": "NA", "lvl5": "RW", "lvl6": "RW", "lvl7": "RW", "lvl8": "RW"}},
|
||||
"IRDA_AMRDigits": {"type": "uint8_t", "id": 5124, "privilege": {"lvl1": "RO", "lvl2": "RO", "lvl3": "RO", "lvl4": "RO", "lvl5": "RW", "lvl6": "RW", "lvl7": "RW", "lvl8": "RW"}},
|
||||
"IRDA_AMROffset": {"type": "int8_t", "id": 5125, "privilege": {"lvl1": "RO", "lvl2": "RO", "lvl3": "RO", "lvl4": "RO", "lvl5": "RW", "lvl6": "RW", "lvl7": "RW", "lvl8": "RW"}},
|
||||
"IRDA_UI1203Fields": {"type": "uint16_t", "id": 5126, "privilege": {"lvl1": "RO", "lvl2": "RO", "lvl3": "RO", "lvl4": "RO", "lvl5": "RW", "lvl6": "RW", "lvl7": "RW", "lvl8": "RW"}},
|
||||
"IRDA_MfgDate": {"type": "uint32_t", "id": 5127, "privilege": {"lvl1": "RO", "lvl2": "RO", "lvl3": "RO", "lvl4": "RO", "lvl5": "RO", "lvl6": "RO", "lvl7": "RW", "lvl8": "RW"}},
|
||||
"IRDA_DisplayAMRDigits": {"type": "bool_t", "id": 5128, "privilege": {"lvl1": "RO", "lvl2": "RO", "lvl3": "RO", "lvl4": "RO", "lvl5": "RW", "lvl6": "RW", "lvl7": "RW", "lvl8": "RW"}},
|
||||
"IRDA_AdapterID": {"type": "string", "id": 5129, "privilege": {"lvl1": "RO", "lvl2": "RO", "lvl3": "RO", "lvl4": "RO", "lvl5": "RO", "lvl6": "RO", "lvl7": "RO", "lvl8": "RO"}},
|
||||
"IRDA_AdapterFwVersion": {"type": "uint16_t", "id": 5130, "privilege": {"lvl1": "RO", "lvl2": "RO", "lvl3": "RO", "lvl4": "RO", "lvl5": "RO", "lvl6": "RO", "lvl7": "RO", "lvl8": "RO"}},
|
||||
"NA2WALARMS_StoreConfiguration": {"type": "uint32_t", "id": 5888, "privilege": {"lvl1": "NA", "lvl2": "NA", "lvl3": "RW", "lvl4": "NA", "lvl5": "NA", "lvl6": "NA", "lvl7": "RW", "lvl8": "RW"}},
|
||||
"NA2WALARMS_PredefEnable": {"type": "uint32_t", "id": 5889, "privilege": {"lvl1": "RO", "lvl2": "RO", "lvl3": "RO", "lvl4": "RO", "lvl5": "RO", "lvl6": "RO", "lvl7": "RW", "lvl8": "RW"}},
|
||||
"NA2WLOGGER_StoreConfiguration": {"type": "uint32_t", "id": 5632, "privilege": {"lvl1": "NA", "lvl2": "NA", "lvl3": "RW", "lvl4": "NA", "lvl5": "NA", "lvl6": "NA", "lvl7": "RW", "lvl8": "RW"}},
|
||||
"NA2WLOGGER_LimitLogSize": {"type": "uint32_t", "id": 5633, "privilege": {"lvl1": "RO", "lvl2": "RO", "lvl3": "RO", "lvl4": "RO", "lvl5": "RO", "lvl6": "RO", "lvl7": "RW", "lvl8": "RW"}},
|
||||
"FLEXNETSERIAL_UpgState": {"type": "uint32_t", "id": 6656, "privilege": {"lvl1": "RW", "lvl2": "RW", "lvl3": "RW", "lvl4": "RW", "lvl5": "RW", "lvl6": "RW", "lvl7": "RW", "lvl8": "RW"}},
|
||||
"FLEXNETSERIAL_FwdlState": {"type": "uint32_t", "id": 6657, "privilege": {"lvl1": "RW", "lvl2": "RW", "lvl3": "RW", "lvl4": "RW", "lvl5": "RW", "lvl6": "RW", "lvl7": "RW", "lvl8": "RW"}},
|
||||
"_comment": "end of table"
|
||||
}
|
||||
|
||||
@@ -154,6 +154,9 @@ namespace Xylem.Common.Hardware.WaterMeter.Genesis.GenesisFile
|
||||
/// <remarks date="2024-May-15" author="Thomas Wiedebusch">
|
||||
/// - Initial
|
||||
/// </remarks>
|
||||
/// <remarks date="2025-Aug-12" author="Thomas Wiedebusch">
|
||||
/// - Formatting changed.
|
||||
/// </remarks>
|
||||
private Boolean BuildStringListOfPowCorrFileContent()
|
||||
{
|
||||
if (_meterBinData == null || _meterBinData.Length == 0 || _currentGenesis == null)
|
||||
@@ -172,21 +175,27 @@ namespace Xylem.Common.Hardware.WaterMeter.Genesis.GenesisFile
|
||||
fc.Add($"{Resources.StrPowCorrFactoryValues} - {Resources.StrPowCorrDateTime}" +
|
||||
$": {RegisterConverter.ConvertToText(value_u8a, typeof(TimeT))}");
|
||||
if (CopyByteArray(value_u8a = new Byte[TimeSize], bin, TimeSize, 0, ProdTimeIdx))
|
||||
{
|
||||
ltlStatus.ExceededLifeTime_s = RegisterConverter.ByteArrayToValue<UInt32>(value_u8a);
|
||||
fc.Add($"{Resources.StrPowCorrFactoryValues} - {Resources.StrPowCorrTime_s}" +
|
||||
$": {RegisterConverter.ConvertToText(value_u8a, typeof(UInt32))}");
|
||||
ltlStatus.ExceededLifeTime_s = RegisterConverter.ByteArrayToValue<UInt32>(value_u8a);
|
||||
|
||||
$": {ltlStatus.ExceededLifeTime_s:N0}");
|
||||
}
|
||||
|
||||
if (CopyByteArray(value_u8a = new Byte[ChargeSize], bin, ChargeSize, 0, ProdChargeIdx))
|
||||
{
|
||||
ltlStatus.DrainedBatteryLoad_uAs = RegisterConverter.ByteArrayToValue<UInt64>(value_u8a);
|
||||
fc.Add($"{Resources.StrPowCorrFactoryValues} - {Resources.StrPowCorrCharge_uAs}" +
|
||||
$": {RegisterConverter.ConvertToText(value_u8a, typeof(UInt64))}");
|
||||
ltlStatus.DrainedBatteryLoad_uAs = RegisterConverter.ByteArrayToValue<UInt64>(value_u8a);
|
||||
|
||||
if (CopyByteArray(value_u8a = new Byte[InitialBatteryLoadSize], bin, InitialBatteryLoadSize,
|
||||
$": {ltlStatus.DrainedBatteryLoad_uAs:N0}");
|
||||
}
|
||||
|
||||
if (CopyByteArray(value_u8a = new Byte[InitialBatteryLoadSize], bin, InitialBatteryLoadSize,
|
||||
0, InitialBatteryLoadIdx))
|
||||
{
|
||||
ltlStatus.InitialBatteryLoad_mAh = RegisterConverter.ByteArrayToValue<UInt16>(value_u8a);
|
||||
fc.Add($"{Resources.StrPowCorrFactoryValues} - {Resources.StrPowCorrInitialBatteryLoad_mAh}" +
|
||||
$": {RegisterConverter.ConvertToText(value_u8a, typeof(UInt16))}");
|
||||
ltlStatus.InitialBatteryLoad_mAh = RegisterConverter.ByteArrayToValue<UInt16>(value_u8a);
|
||||
|
||||
$": {ltlStatus.InitialBatteryLoad_mAh:N0}");
|
||||
}
|
||||
|
||||
if (CopyByteArray(value_u8a = new Byte[BatteryQuantitySize], bin, BatteryQuantitySize,
|
||||
0, BatteryQuantityIdx))
|
||||
fc.Add($"{Resources.StrPowCorrFactoryValues} - {Resources.StrPowCorrBatteryQuantity}" +
|
||||
@@ -203,14 +212,18 @@ namespace Xylem.Common.Hardware.WaterMeter.Genesis.GenesisFile
|
||||
fc.Add($"{Resources.StrPowCorrActualValues} - {Resources.StrPowCorrDateTime}" +
|
||||
$": {RegisterConverter.ConvertToText(value_u8a, typeof(TimeT))}");
|
||||
if (CopyByteArray(value_u8a = new Byte[TimeSize], bin, TimeSize, 0, FieldTimeIdx))
|
||||
{
|
||||
ltlStatus.ExceededLifeTime_s = RegisterConverter.ByteArrayToValue<UInt32>(value_u8a);
|
||||
fc.Add($"{Resources.StrPowCorrActualValues} - {Resources.StrPowCorrTime_s}" +
|
||||
$": {RegisterConverter.ConvertToText(value_u8a, typeof(UInt32))}");
|
||||
ltlStatus.ExceededLifeTime_s = RegisterConverter.ByteArrayToValue<UInt32>(value_u8a);
|
||||
$": {ltlStatus.ExceededLifeTime_s:N0}");
|
||||
}
|
||||
|
||||
if (CopyByteArray(value_u8a = new Byte[ChargeSize], bin, ChargeSize, 0, FieldChargeIdx))
|
||||
{
|
||||
ltlStatus.DrainedBatteryLoad_uAs = RegisterConverter.ByteArrayToValue<UInt64>(value_u8a);
|
||||
fc.Add($"{Resources.StrPowCorrActualValues} - {Resources.StrPowCorrCharge_uAs}" +
|
||||
$": {RegisterConverter.ConvertToText(value_u8a, typeof(UInt64))}");
|
||||
ltlStatus.DrainedBatteryLoad_uAs = RegisterConverter.ByteArrayToValue<UInt64>(value_u8a);
|
||||
$": {ltlStatus.DrainedBatteryLoad_uAs:N0}");
|
||||
}
|
||||
|
||||
if (GenesisStatusHandler.CalculateLifeTime(ltlStatus))
|
||||
{
|
||||
@@ -271,22 +284,39 @@ namespace Xylem.Common.Hardware.WaterMeter.Genesis.GenesisFile
|
||||
$": {RegisterConverter.ConvertToText(value_u8a, typeof(UInt32))}");
|
||||
|
||||
if (CopyByteArray(value_u8a = new Byte[TimeSize], bin, TimeSize, 0, CalcPostProdTimeIdx))
|
||||
{
|
||||
var temp = RegisterConverter.ByteArrayToValue<UInt32>(value_u8a);
|
||||
fc.Add($"{Resources.StrPowCorrPostProdTime_s}" +
|
||||
$": {RegisterConverter.ConvertToText(value_u8a, typeof(UInt32))}");
|
||||
$": {temp:N0}");
|
||||
}
|
||||
|
||||
if (CopyByteArray(value_u8a = new Byte[ChargeSize], bin, ChargeSize, 0, CalcOverestimatedChargeIdx))
|
||||
{
|
||||
var temp = RegisterConverter.ByteArrayToValue<UInt64>(value_u8a);
|
||||
fc.Add($"{Resources.StrPowCorrOverestimate_uAs}" +
|
||||
$": {RegisterConverter.ConvertToText(value_u8a, typeof(UInt64))}");
|
||||
$": {temp:N0}");
|
||||
}
|
||||
|
||||
if (CopyByteArray(value_u8a = new Byte[ChargeSize], bin, ChargeSize, 0, CalcFixedEstimatedChargeIdx))
|
||||
{
|
||||
var temp = RegisterConverter.ByteArrayToValue<UInt64>(value_u8a);
|
||||
fc.Add($"{Resources.StrPowCorrFixedEstimateCharge_uAs}" +
|
||||
$": {RegisterConverter.ConvertToText(value_u8a, typeof(UInt64))}");
|
||||
$": {temp:N0}");
|
||||
}
|
||||
|
||||
if (CopyByteArray(value_u8a = new Byte[ChargeSize], bin, ChargeSize, 0, CalcMinimumChargeIdx))
|
||||
{
|
||||
var temp = RegisterConverter.ByteArrayToValue<UInt64>(value_u8a);
|
||||
fc.Add($"{Resources.StrPowCorrOverestimateLimit_uAs}" +
|
||||
$": {RegisterConverter.ConvertToText(value_u8a, typeof(UInt64))}");
|
||||
$": {temp:N0}");
|
||||
}
|
||||
|
||||
if (CopyByteArray(value_u8a = new Byte[ChargeSize], bin, ChargeSize, 0, CalcCorrectedChargeIdx))
|
||||
{
|
||||
ltlStatus.DrainedBatteryLoad_uAs = RegisterConverter.ByteArrayToValue<UInt64>(value_u8a);
|
||||
fc.Add($"{Resources.StrPowCorrCorrectedCharge_uAs}" +
|
||||
$": {RegisterConverter.ConvertToText(value_u8a, typeof(UInt64))}");
|
||||
ltlStatus.DrainedBatteryLoad_uAs = RegisterConverter.ByteArrayToValue<UInt64>(value_u8a);
|
||||
$": {ltlStatus.DrainedBatteryLoad_uAs:N0}");
|
||||
}
|
||||
|
||||
if (GenesisStatusHandler.CalculateLifeTime(ltlStatus))
|
||||
{
|
||||
|
||||
@@ -7,6 +7,16 @@ namespace Xylem.Common.Hardware.WaterMeter.Genesis.GenesisStatus
|
||||
/// </summary>
|
||||
public class GenesisStatus
|
||||
{
|
||||
/// <summary>
|
||||
/// Remaining lifetime for Cordonel in years based on FW calculation.
|
||||
/// </summary>
|
||||
public Double? FwCalculatedRemainingLifeTimeYears { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Remaining lifetime for Cordonel in seconds based on FW calculation.
|
||||
/// </summary>
|
||||
public UInt64? FwCalculatedRemainingLifeTime_s { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Remaining lifetime for Cordonel in years based on battery drainage.
|
||||
/// </summary>
|
||||
|
||||
@@ -280,6 +280,9 @@ namespace Xylem.Common.Hardware.WaterMeter.Genesis.GenesisStatus
|
||||
/// <remarks date="2024-Nov-15" author="Thomas Wiedebusch">
|
||||
/// - errorMsg.
|
||||
/// </remarks>
|
||||
/// <remarks date="2025-Aug-11" author="Thomas Wiedebusch">
|
||||
/// - Readout FW based calculation of remaining lifetime in seconds.
|
||||
/// </remarks>
|
||||
public static Boolean BuildLifeTimeInformation(IGenesisMeter currentGenesis, GenesisStatus status, out String errorMsg)
|
||||
{
|
||||
Boolean retVal;
|
||||
@@ -302,6 +305,13 @@ namespace Xylem.Common.Hardware.WaterMeter.Genesis.GenesisStatus
|
||||
status.InitialBatteryLoad_mAh = RegisterConverter.ByteArrayToValue<UInt32>(
|
||||
currentGenesis.ReadRegister(Register.Powermon.BatteryInitialLoad));
|
||||
|
||||
var nullCheck = currentGenesis.ReadRegister(Register.Powermon.RemainingSeconds);
|
||||
if (nullCheck == null)
|
||||
status.FwCalculatedRemainingLifeTime_s = null;
|
||||
else
|
||||
status.FwCalculatedRemainingLifeTime_s =
|
||||
RegisterConverter.ByteArrayToValue<UInt32>(nullCheck);
|
||||
|
||||
currentGenesis.Logout();
|
||||
|
||||
retVal = CalculateLifeTime(status);
|
||||
@@ -337,6 +347,9 @@ namespace Xylem.Common.Hardware.WaterMeter.Genesis.GenesisStatus
|
||||
/// <remarks date="2025-Mar-25" author="Thomas Wiedebusch">
|
||||
/// - Calculate storage months.
|
||||
/// </remarks>
|
||||
/// <remarks date="2025-Aug-11" author="Thomas Wiedebusch">
|
||||
/// - Calculate FW based calculation of remaining lifetime in years.
|
||||
/// </remarks>
|
||||
public static Boolean CalculateLifeTime(GenesisStatus status)
|
||||
{
|
||||
// Mark as false if the basic inputs are missed
|
||||
@@ -361,6 +374,7 @@ namespace Xylem.Common.Hardware.WaterMeter.Genesis.GenesisStatus
|
||||
var estimatedLifeTime_s = status.ExceededLifeTime_s / drainedBatteryLoad_rel;
|
||||
var remainingLifetime_s = estimatedLifeTime_s - status.ExceededLifeTime_s;
|
||||
status.RemainingLifeTimeYears = remainingLifetime_s * YEARS_PER_SECONDS;
|
||||
status.FwCalculatedRemainingLifeTimeYears = status.FwCalculatedRemainingLifeTime_s * YEARS_PER_SECONDS;
|
||||
|
||||
// Calculate an alternative threshold for remaining battery load based on the quiescent current and a supplement
|
||||
// for production purpose. Those values can be assigned in the Cordonel requirements.
|
||||
|
||||
@@ -447,6 +447,9 @@ namespace Xylem.Common.Hardware.WaterMeter.Genesis.MockGenesis
|
||||
/// <remarks date="2025-Jun-19" author="Thomas Wiedebusch">
|
||||
/// - Avoid overwriting of list combined with valid register dictionary.
|
||||
/// </remarks>
|
||||
/// <remarks date="2025-Aug-07" author="Thomas Wiedebusch">
|
||||
/// - Check interface compatibility.
|
||||
/// </remarks>
|
||||
protected override void ReadMeterFirmwareAndAssignRegisters()
|
||||
{
|
||||
// Avoid overwriting of list if this already exits
|
||||
@@ -470,9 +473,26 @@ namespace Xylem.Common.Hardware.WaterMeter.Genesis.MockGenesis
|
||||
return;
|
||||
}
|
||||
|
||||
UInt32 interfaceMaxEmeaVersion = 0;
|
||||
UInt32 interfaceMaxNaVersion = 0;
|
||||
var strInterfaceMaxEmeaVersion = "";
|
||||
var strInterfaceMaxNaVersion = "";
|
||||
|
||||
//Get all existing applications from meter register dictionary
|
||||
foreach (var meterApp in ConfigApplications.OrderBy(o => o.AppId))
|
||||
{
|
||||
if (meterApp.AppName.Equals("OPTICALINTERFACE"))
|
||||
{
|
||||
// Build the interface id for information of compatibility from FW to configuration.json
|
||||
InterfaceVersion = BuildFwVersionStringFromDec(meterApp.AppVersion);
|
||||
// Build the max supported versions for EMEA and NA to check the supported FW
|
||||
strInterfaceMaxEmeaVersion = BuildFlexnetFwVersion(out interfaceMaxEmeaVersion,
|
||||
meterApp.InterfaceMaxEmeaVersion);
|
||||
strInterfaceMaxNaVersion = BuildFlexnetFwVersion(out interfaceMaxNaVersion,
|
||||
meterApp.InterfaceMaxNaVersion);
|
||||
continue;
|
||||
}
|
||||
|
||||
// Take all listed config apps even if not installed
|
||||
var app = new MeterApplications
|
||||
{
|
||||
@@ -530,6 +550,28 @@ namespace Xylem.Common.Hardware.WaterMeter.Genesis.MockGenesis
|
||||
Region = "EMEA";
|
||||
}
|
||||
}
|
||||
|
||||
// Assign the max supported FW version of the interface depending on the region
|
||||
if (Region.Equals("EMEA"))
|
||||
InterfaceMaxFwVersion = strInterfaceMaxEmeaVersion;
|
||||
if (Region.Equals("NA"))
|
||||
InterfaceMaxFwVersion = strInterfaceMaxNaVersion;
|
||||
|
||||
// Check if the interface supports the FW
|
||||
if (InstalledFwVersion != null &&
|
||||
((Region.Equals("EMEA") && interfaceMaxEmeaVersion >= InstalledFwVersion) ||
|
||||
(Region.Equals("NA") && interfaceMaxNaVersion >= InstalledFwVersion)))
|
||||
{
|
||||
InterfaceSupportsFwVersion = true;
|
||||
Logger.Info($"Slot:{Slot} - Interface supports FW version: {FwVersion}");
|
||||
}
|
||||
else
|
||||
{
|
||||
InterfaceSupportsFwVersion = false;
|
||||
Logger.Warn($"Slot:{Slot} - Interface does not support FW version! Installed FW version: {FwVersion}, " +
|
||||
$"Interface supports max FW version: {InterfaceMaxFwVersion}");
|
||||
}
|
||||
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
|
||||
@@ -1,11 +0,0 @@
|
||||
using System;
|
||||
|
||||
namespace Xylem.Common.Hardware.WaterMeter.Genesis.Registers
|
||||
{
|
||||
public class Detail
|
||||
{
|
||||
public Privilege Privilege { get; set; }
|
||||
public String Description { get; set; }
|
||||
public Version Version { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -1,15 +1,16 @@
|
||||
using System;
|
||||
|
||||
namespace Xylem.Common.Hardware.WaterMeter.Genesis.Registers.Json
|
||||
namespace Xylem.Common.Hardware.WaterMeter.Genesis.Registers.Json
|
||||
{
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
public class AppSection
|
||||
{
|
||||
public Byte Id { get; set; }
|
||||
public UInt16 Id { get; set; }
|
||||
|
||||
public FwVersion Version { get; set; }
|
||||
|
||||
public Dictionary<String, List<Build>> Builds { get; set; }
|
||||
|
||||
public IDictionary<String, Register> Registers { get; set; }
|
||||
|
||||
public IDictionary<String, Status> Status { get; set; }
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
namespace Xylem.Common.Hardware.WaterMeter.Genesis.Registers.Json
|
||||
{
|
||||
using System.Collections.Generic;
|
||||
|
||||
public class AppsDictionary : Dictionary<string, AppSection>
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
namespace Xylem.Common.Hardware.WaterMeter.Genesis.Registers.Json
|
||||
{
|
||||
using System;
|
||||
|
||||
public class Build
|
||||
{
|
||||
public Int32 Id { get; set; }
|
||||
|
||||
public String FW { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -1,7 +1,7 @@
|
||||
using System;
|
||||
|
||||
namespace Xylem.Common.Hardware.WaterMeter.Genesis.Registers.Json
|
||||
namespace Xylem.Common.Hardware.WaterMeter.Genesis.Registers.Json
|
||||
{
|
||||
using System;
|
||||
|
||||
public class Details
|
||||
{
|
||||
public String Type { get; set; }
|
||||
|
||||
@@ -1,11 +1,13 @@
|
||||
using System;
|
||||
|
||||
namespace Xylem.Common.Hardware.WaterMeter.Genesis.Registers.Json
|
||||
namespace Xylem.Common.Hardware.WaterMeter.Genesis.Registers.Json
|
||||
{
|
||||
using System;
|
||||
|
||||
public class FwVersion
|
||||
{
|
||||
public Int32? First { get; set; }
|
||||
|
||||
public Int32? Last { get; set; }
|
||||
|
||||
public Int32[] Exclude { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
using System;
|
||||
|
||||
namespace Xylem.Common.Hardware.WaterMeter.Genesis.Registers.Json
|
||||
namespace Xylem.Common.Hardware.WaterMeter.Genesis.Registers.Json
|
||||
{
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
public class Register
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
using System;
|
||||
|
||||
namespace Xylem.Common.Hardware.WaterMeter.Genesis.Registers.Json
|
||||
namespace Xylem.Common.Hardware.WaterMeter.Genesis.Registers.Json
|
||||
{
|
||||
using System;
|
||||
|
||||
public class Status
|
||||
{
|
||||
public Byte Id { get; set; }
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
using System;
|
||||
|
||||
namespace Xylem.Common.Hardware.WaterMeter.Genesis.Registers.Json
|
||||
namespace Xylem.Common.Hardware.WaterMeter.Genesis.Registers.Json
|
||||
{
|
||||
using System;
|
||||
|
||||
public class Value
|
||||
{
|
||||
public Object Minimum { get; set; }
|
||||
|
||||
@@ -1,41 +0,0 @@
|
||||
namespace Xylem.Common.Hardware.WaterMeter.Genesis.Registers
|
||||
{
|
||||
/// <summary>
|
||||
/// Representing the 8 access levels meter register can have
|
||||
/// </summary>
|
||||
public class Privilege
|
||||
{
|
||||
/// <summary>
|
||||
/// Value for first level
|
||||
/// </summary>
|
||||
public Access Lvl1 { get; set; }
|
||||
/// <summary>
|
||||
/// Value for second level
|
||||
/// </summary>
|
||||
public Access Lvl2 { get; set; }
|
||||
/// <summary>
|
||||
/// Value for third level
|
||||
/// </summary>
|
||||
public Access Lvl3 { get; set; }
|
||||
/// <summary>
|
||||
/// Value for fourth level
|
||||
/// </summary>
|
||||
public Access Lvl4 { get; set; }
|
||||
/// <summary>
|
||||
/// Value for fifth level
|
||||
/// </summary>
|
||||
public Access Lvl5 { get; set; }
|
||||
/// <summary>
|
||||
/// Value for sixth level
|
||||
/// </summary>
|
||||
public Access Lvl6 { get; set; }
|
||||
/// <summary>
|
||||
/// Value for seventh level
|
||||
/// </summary>
|
||||
public Access Lvl7 { get; set; }
|
||||
/// <summary>
|
||||
/// Value for eighth level
|
||||
/// </summary>
|
||||
public Access Lvl8 { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -20,7 +20,13 @@ namespace Xylem.Common.Hardware.WaterMeter.Genesis.Registers
|
||||
/// <summary>
|
||||
/// address of application which is the base address for the register
|
||||
/// </summary>
|
||||
public Byte AppAddress;
|
||||
/// <remarks date="2025-Aug-05" author="Thomas Wiedebusch">
|
||||
/// - AppAddress from Byte to UInt16 including typecast for Byte[] return. To external, it will be used as Byte
|
||||
/// as before this change. But being able to parse the configuration.json with OPTICALINTERFACE using the
|
||||
/// AppAddress 256, which exceeds the byte range as this isn't a real application, but will be used to identify
|
||||
/// the interface (configuration.json) version.
|
||||
/// </remarks>
|
||||
public UInt16 AppAddress;
|
||||
|
||||
/// <summary>
|
||||
/// address of the register in this application
|
||||
@@ -57,9 +63,15 @@ namespace Xylem.Common.Hardware.WaterMeter.Genesis.Registers
|
||||
/// <summary>
|
||||
/// address combined of application and register in this application
|
||||
/// </summary>
|
||||
/// <remarks date="2025-Aug-05" author="Thomas Wiedebusch">
|
||||
/// - AppAddress from Byte to UInt16 including typecast for Byte[] return. To external, it will be used as Byte
|
||||
/// as before this change. But being able to parse the configuration.json with OPTICALINTERFACE using the
|
||||
/// AppAddress 256, which exceeds the byte range as this isn't a real application, but will be used to identify
|
||||
/// the interface (configuration.json) version.
|
||||
/// </remarks>
|
||||
public Byte[] RegisterAddress
|
||||
{
|
||||
get { return new[] { AppAddress, RegAddressInApp }; }
|
||||
get { return new[] { (Byte)AppAddress, RegAddressInApp }; }
|
||||
set
|
||||
{
|
||||
AppAddress = value[0];
|
||||
|
||||
@@ -94,6 +94,7 @@ namespace Xylem.Common.Hardware.WaterMeter.Genesis.Registers
|
||||
public static readonly String BatteryInitialLoad = "POWERMON_BatteryMilliAHrRating";
|
||||
public static readonly String BatteryExceededSeconds = "POWERMON_TotalUsedSeconds";
|
||||
public static readonly String StoreConfiguration = "POWERMON_StoreConfiguration";
|
||||
public static readonly String RemainingSeconds = "POWERMON_RemainingSeconds";
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -118,9 +118,12 @@
|
||||
<Compile Include="DataTypes\UInt128.cs" />
|
||||
<Compile Include="DataTypes\UInt88.cs" />
|
||||
<Compile Include="DataTypes\UInt96.cs" />
|
||||
<Compile Include="Json\AppsDictionary.cs" />
|
||||
<Compile Include="Json\AppSection.cs" />
|
||||
<Compile Include="Json\Build.cs" />
|
||||
<Compile Include="Json\FwVersion.cs" />
|
||||
<Compile Include="Json\Details.cs" />
|
||||
<Compile Include="Json\JsonVersionsConverter.cs" />
|
||||
<Compile Include="Json\Register.cs" />
|
||||
<Compile Include="Json\Status.cs" />
|
||||
<Compile Include="Json\Value.cs" />
|
||||
|
||||
Reference in New Issue
Block a user