laatzen/ServiceFwUpdate/Ui/ServiceFwUpdateSw/Const/ProcessState.cs
Thomas Wiedebusch 3dd36f7a9a FwUpdateSw: - Release display activated on valid pwd,
- meter sizes comparison extended
2023-02-22 09:57:41 +01:00

166 lines
4.3 KiB
C#

using System;
namespace Xylem.ServiceFwUpdate.Ui.ServiceFwUpdateSw.Const
{
/// <summary>
/// Firmware update process states
/// </summary>
[Serializable]
public enum ProcessState
{
/// <summary>
/// Unspecified state, used for startup to unlock first state entry.
/// </summary>
Unspecified,
/// <summary>
/// Validate the software and exit if invalid
/// </summary>
ValidateSoftware,
/// <summary>
/// Idle waiting for user interaction or event.
/// </summary>
Idle,
/// <summary>
/// Initialize the entire program, dispose the Genesis and reset labels.
/// </summary>
Init,
/// <summary>
/// Reboot of Genesis, the TriggerUpgrade command will internally update the meter.
/// During this time the meter is offline and needs to be polled until it returns online.
/// </summary>
Reboot,
/// <summary>
/// Connecting including dispose of Genesis to force entire new read out of
/// applications and restructure of registers as they may have changed after update.
/// On the other hand a new Genesis may be connected to make a series update.
/// </summary>
Connect,
/// <summary>
/// Quick connect without dispose of Genesis. This will skip read out of FW at connect
/// in the GenesisMeter class
/// </summary>
QuickConnect,
/// <summary>
/// Communication port scan including Genesis detection
/// </summary>
PortScan,
/// <summary>
/// Load update files
/// </summary>
LoadUpdateFiles,
/// <summary>
/// Read configuration for meter files to erase and restore.
/// </summary>
ReadMeterFilesConfig,
/// <summary>
/// Read files before erasure.
/// </summary>
ReadInitialMeterFiles,
/// <summary>
/// Erase the meter files.
/// </summary>
EraseMeterFiles,
/// <summary>
/// Read back meter files before FW-Update.
/// </summary>
ReadPreUpdateMeterFiles,
/// <summary>
/// Read back meter files after FW-Update.
/// </summary>
ReadPostUpdateMeterFiles,
/// <summary>
/// Restore meter files.
/// </summary>
RestoreMeterFiles,
/// <summary>
/// Verify restored meter files.
/// </summary>
VerifyMeterFiles,
/// <summary>
/// Backup content of registers
/// </summary>
RegisterBackup,
/// <summary>
/// Restore content of registers
/// </summary>
RegisterRestore,
/// <summary>
/// Restore password file
/// </summary>
PwdFileRestore,
/// <summary>
/// Firmware update
/// </summary>
FirmwareUpdate,
/// <summary>
/// Checks the update capability and sets all controls.
/// </summary>
CheckUpdateCapability,
/// <summary>
/// Checks the update files.
/// </summary>
CheckUpdateFiles,
/// <summary>
/// Checks the update files.
/// </summary>
CheckCoreRevision,
/// <summary>
/// Checks the metrology update capability.
/// </summary>
CheckMetrology,
/// <summary>
/// Checks the radio update capability by region and frequency
/// </summary>
CheckRegionRadio,
/// <summary>
/// Checks the meter sizes
/// </summary>
CheckMeterSize,
/// <summary>
/// Check if the FW in the meter is up to date.
/// </summary>
CheckUpdateRequest,
/// <summary>
/// Display FW-Update Success
/// </summary>
FirmwareUpdateSuccess,
/// <summary>
/// Stop entire update process
/// </summary>
Stop,
/// <summary>
/// Error execution state
/// </summary>
Error
}
}