From c785f853a2cd35f6bff5b99f45a97ab89a4630fe Mon Sep 17 00:00:00 2001 From: Thomas Wiedebusch Date: Fri, 15 Jul 2022 09:09:04 +0200 Subject: [PATCH] FwUpdateBuilder: - Modified DateTime for sorting reports yyyy-MM-dd --- Common/.shared/SharedAssemblyInfo.cs | 4 +- .../Ports/SerialPorts/BaseSerialPort.cs | 10 +- .../Ports/SerialPorts/IrdaSerialPort.cs | 14 +- .../Ports/SerialPorts/LedSerialPort.cs | 2 +- .../Genesis/GenesisCore/GenesisMeter.cs | 6 +- .../Genesis/GenesisCore/configuration.json | 446 +++++++++--------- ...erRegisters.csproj.CoreCompileInputs.cache | 2 +- Common/Ui/GenesisToolBox/FrmFwUpdate.cs | 3 + .../DateTimeServerShared/DateTimeServer.cs | 19 + .../FrmFwUpdateBuilder.cs | 100 ++-- 10 files changed, 321 insertions(+), 285 deletions(-) diff --git a/Common/.shared/SharedAssemblyInfo.cs b/Common/.shared/SharedAssemblyInfo.cs index 0e17b658..fc3528f6 100644 --- a/Common/.shared/SharedAssemblyInfo.cs +++ b/Common/.shared/SharedAssemblyInfo.cs @@ -14,5 +14,5 @@ using System.Reflection; //[assembly: AssemblyVersion("1.2.*.0")] -[assembly: AssemblyVersion("2.2.7.*")] -[assembly: AssemblyFileVersion("2.2.7.0")] \ No newline at end of file +[assembly: AssemblyVersion("2.2.8.*")] +[assembly: AssemblyFileVersion("2.2.8.0")] \ No newline at end of file diff --git a/Common/Hardware/Interfaces/Ports/SerialPorts/BaseSerialPort.cs b/Common/Hardware/Interfaces/Ports/SerialPorts/BaseSerialPort.cs index 80c43bad..26741203 100644 --- a/Common/Hardware/Interfaces/Ports/SerialPorts/BaseSerialPort.cs +++ b/Common/Hardware/Interfaces/Ports/SerialPorts/BaseSerialPort.cs @@ -19,7 +19,7 @@ namespace Xylem.Common.Hardware.Interfaces.Ports.SerialPorts { private ILogger _byteDataLogger; - internal ILogger _asciiDataLogger; + internal ILogger AsciiDataLogger; /// public virtual event EventHandler OnRawRecordReceived; @@ -95,7 +95,7 @@ namespace Xylem.Common.Hardware.Interfaces.Ports.SerialPorts //assign thread to loop _receiveThread = new Thread(ReadingThreadLoop) { Name = $"{Ident} Reading thread" }; - _asciiDataLogger = NLogHelper.CreateOrGetMultiLogger(Ident, "", "LedRawData", "TargetLedRawDataBase", "LedRawDataBase"); + AsciiDataLogger = NLogHelper.CreateOrGetMultiLogger(Ident, "", "LedRawData", "TargetLedRawDataBase", "LedRawDataBase"); _byteDataLogger = NLogHelper.CreateOrGetMultiLogger(Ident, "", "UartSerialPort", "COMBase", "BaseSerialPort"); } @@ -103,7 +103,7 @@ namespace Xylem.Common.Hardware.Interfaces.Ports.SerialPorts public void RefreshLogger() { - _asciiDataLogger = NLogHelper.CreateOrGetMultiLogger(Ident, "", "LedRawData", "TargetLedRawDataBase", "LedRawDataBase"); + AsciiDataLogger = NLogHelper.CreateOrGetMultiLogger(Ident, "", "LedRawData", "TargetLedRawDataBase", "LedRawDataBase"); _byteDataLogger = NLogHelper.CreateOrGetMultiLogger(Ident, "", "UartSerialPort", "COMBase", "BaseSerialPort"); @@ -441,7 +441,7 @@ namespace Xylem.Common.Hardware.Interfaces.Ports.SerialPorts } if (RecordStreamingRawData) { - _asciiDataLogger.Trace($"{rxStringRecord}"); + AsciiDataLogger.Trace($"{rxStringRecord}"); } } } @@ -629,7 +629,7 @@ namespace Xylem.Common.Hardware.Interfaces.Ports.SerialPorts /// - Doubling of sync byte in protocol behind sync byte itself implemented /// /// - /// - Flush buffer as MOXA sometimes takes two messages and combines these two one! + /// - Flush buffer as MOXA sometimes takes two messages and combines these to one! /// As the Genesis needs a separated wake-up message with a following delay before the /// real payload message, this causes a lot of trouble. /// diff --git a/Common/Hardware/Interfaces/Ports/SerialPorts/IrdaSerialPort.cs b/Common/Hardware/Interfaces/Ports/SerialPorts/IrdaSerialPort.cs index 05ada442..f32f11b6 100644 --- a/Common/Hardware/Interfaces/Ports/SerialPorts/IrdaSerialPort.cs +++ b/Common/Hardware/Interfaces/Ports/SerialPorts/IrdaSerialPort.cs @@ -9,7 +9,7 @@ namespace Xylem.Common.Hardware.Interfaces.Ports.SerialPorts public class IrdaSerialPort : BaseSerialPort { /// - public IrdaSerialPort(String ident, SerialPort serialPort, TransmitPortSettings setting) + public IrdaSerialPort(String ident, SerialPort serialPort, TransmitPortSettings setting) : base(ident, serialPort, setting) { } @@ -22,21 +22,19 @@ namespace Xylem.Common.Hardware.Interfaces.Ports.SerialPorts /// - wakeup burst pattern changed from 2 times 0xF0 to 4 times 0x01, /// - required delay from 500µs to 1ms between wakeup burst and data. /// + /// + /// - Removed comments and one delay (was at 2 x 1 ms). + /// protected override void SpecificPortWrite(Byte[] tx) { //send wake up burst var wakeUpBurst = new Byte[] { 0x01, 0x01, 0x01, 0x01 }; PhysicalWrite(wakeUpBurst); - Thread.Sleep(1); - //delay at least 500 µs with 0f *8 - //PhysicalWrite(delayPattern); - //Thread.Sleep(1); - //delay at least 500 µs Thread.Sleep(1); - + //send the IrDA record PhysicalWrite(tx); + } } } -} diff --git a/Common/Hardware/Interfaces/Ports/SerialPorts/LedSerialPort.cs b/Common/Hardware/Interfaces/Ports/SerialPorts/LedSerialPort.cs index 3cf96212..3635e21b 100644 --- a/Common/Hardware/Interfaces/Ports/SerialPorts/LedSerialPort.cs +++ b/Common/Hardware/Interfaces/Ports/SerialPorts/LedSerialPort.cs @@ -21,7 +21,7 @@ namespace Xylem.Common.Hardware.Interfaces.Ports.SerialPorts public ILogger GetRawLogger() { - return _asciiDataLogger; + return AsciiDataLogger; } } diff --git a/Common/Hardware/WaterMeter/Genesis/GenesisCore/GenesisMeter.cs b/Common/Hardware/WaterMeter/Genesis/GenesisCore/GenesisMeter.cs index e8e9f547..46f8d867 100644 --- a/Common/Hardware/WaterMeter/Genesis/GenesisCore/GenesisMeter.cs +++ b/Common/Hardware/WaterMeter/Genesis/GenesisCore/GenesisMeter.cs @@ -2130,6 +2130,10 @@ namespace Xylem.Common.Hardware.WaterMeter.Genesis.GenesisCore /// /// - After write store configuration extended sleep. /// + /// + /// - Removed comparison of allConfigRegisters less than 8 because the NA version has less registers and new + /// apps will have a new register. + /// public Boolean StoreAllConfigurations() { @@ -2173,7 +2177,7 @@ namespace Xylem.Common.Hardware.WaterMeter.Genesis.GenesisCore if (a.Key.AppName == "SENSUSRADIO") { done = true; - allConfigRegisters = allConfigRegisters - 1; + allConfigRegisters -= 1; continue; } diff --git a/Common/Hardware/WaterMeter/Genesis/GenesisCore/configuration.json b/Common/Hardware/WaterMeter/Genesis/GenesisCore/configuration.json index 164f2315..004c0270 100644 --- a/Common/Hardware/WaterMeter/Genesis/GenesisCore/configuration.json +++ b/Common/Hardware/WaterMeter/Genesis/GenesisCore/configuration.json @@ -2691,7 +2691,7 @@ "id": 16, "version": { "first": 100, - "last": 486 + "last": 493 }, "registers": { "TxInterval": { @@ -2712,7 +2712,7 @@ "description": "Lorem ipsum", "version": { "first": 100, - "last": 486 + "last": 493 }, "values": { "default": 15, @@ -2741,7 +2741,7 @@ "description": "Lorem ipsum", "version": { "first": 100, - "last": 486 + "last": 493 }, "values": { "default": 3600, @@ -2770,7 +2770,7 @@ "description": "Lorem ipsum", "version": { "first": 100, - "last": 486 + "last": 493 }, "values": { "default": 3, @@ -2799,7 +2799,7 @@ "description": "Lorem ipsum", "version": { "first": 100, - "last": 486 + "last": 493 }, "values": { "default": 3, @@ -2828,7 +2828,7 @@ "description": "Lorem ipsum", "version": { "first": 100, - "last": 486 + "last": 493 }, "values": { "default": 7, @@ -2857,7 +2857,7 @@ "description": "Lorem ipsum", "version": { "first": 100, - "last": 486 + "last": 493 }, "values": { "default": 433, @@ -2886,7 +2886,7 @@ "description": "Lorem ipsum", "version": { "first": 100, - "last": 486 + "last": 493 }, "values": { "default": 0, @@ -2915,7 +2915,7 @@ "description": "Lorem ipsum", "version": { "first": 100, - "last": 486 + "last": 493 }, "values": { "default": 0, @@ -2944,7 +2944,7 @@ "description": "Lorem ipsum", "version": { "first": 100, - "last": 486 + "last": 493 }, "values": { "default": 1, @@ -2973,7 +2973,7 @@ "description": "Lorem ipsum", "version": { "first": 100, - "last": 486 + "last": 493 }, "values": { "default": 0, @@ -3002,7 +3002,7 @@ "description": "Lorem ipsum", "version": { "first": 100, - "last": 486 + "last": 493 }, "values": { "default": 0, @@ -3031,7 +3031,7 @@ "description": "Lorem ipsum", "version": { "first": 100, - "last": 486 + "last": 493 }, "values": { "default": 0, @@ -3060,7 +3060,7 @@ "description": "Lorem ipsum", "version": { "first": 100, - "last": 486 + "last": 493 }, "values": { "default": 0, @@ -3089,7 +3089,7 @@ "description": "Lorem ipsum", "version": { "first": 100, - "last": 486 + "last": 493 }, "values": { "default": 0, @@ -3118,7 +3118,7 @@ "description": "Lorem ipsum", "version": { "first": 100, - "last": 486 + "last": 493 }, "statictype": "static" } @@ -3142,7 +3142,7 @@ "description": "Lorem ipsum", "version": { "first": 100, - "last": 486 + "last": 493 }, "values": { "default": 25, @@ -3171,7 +3171,7 @@ "description": "Lorem ipsum", "version": { "first": 100, - "last": 486 + "last": 493 }, "values": { "default": 360, @@ -3200,7 +3200,7 @@ "description": "Lorem ipsum", "version": { "first": 100, - "last": 486 + "last": 493 }, "values": { "default": 2500, @@ -3229,7 +3229,7 @@ "description": "Lorem ipsum", "version": { "first": 100, - "last": 486 + "last": 493 }, "values": { "default": 180, @@ -3258,7 +3258,7 @@ "description": "Lorem ipsum", "version": { "first": 100, - "last": 486 + "last": 493 }, "values": { "default": 160, @@ -3287,7 +3287,7 @@ "description": "Lorem ipsum", "version": { "first": 100, - "last": 486 + "last": 493 }, "values": { "default": 3, @@ -3316,7 +3316,7 @@ "description": "Lorem ipsum", "version": { "first": 100, - "last": 486 + "last": 493 }, "values": { "default": 600, @@ -3345,7 +3345,7 @@ "description": "Lorem ipsum", "version": { "first": 100, - "last": 486 + "last": 493 }, "values": { "default": 600, @@ -3374,7 +3374,7 @@ "description": "Lorem ipsum", "version": { "first": 100, - "last": 486 + "last": 493 }, "values": { "default": 60, @@ -3403,7 +3403,7 @@ "description": "Lorem ipsum", "version": { "first": 100, - "last": 486 + "last": 493 }, "values": { "default": 0, @@ -3432,7 +3432,7 @@ "description": "Lorem ipsum", "version": { "first": 100, - "last": 486 + "last": 493 }, "values": { "default": 0, @@ -3461,7 +3461,7 @@ "description": "Lorem ipsum", "version": { "first": 100, - "last": 486 + "last": 493 }, "values": { "default": 50, @@ -3490,7 +3490,7 @@ "description": "Lorem ipsum", "version": { "first": 100, - "last": 486 + "last": 493 }, "values": { "default": 2, @@ -3519,7 +3519,7 @@ "description": "Lorem ipsum", "version": { "first": 100, - "last": 486 + "last": 493 }, "values": { "default": 600, @@ -3548,7 +3548,7 @@ "description": "Lorem ipsum", "version": { "first": 100, - "last": 486 + "last": 493 }, "values": { "default": 600, @@ -3577,7 +3577,7 @@ "description": "Lorem ipsum", "version": { "first": 100, - "last": 486 + "last": 493 }, "values": { "default": 60, @@ -3606,7 +3606,7 @@ "description": "Lorem ipsum", "version": { "first": 100, - "last": 486 + "last": 493 }, "values": { "default": 1, @@ -3635,7 +3635,7 @@ "description": "An enumerator defining the currently active PulseWidth (0 ... 8 for non testmode values and 9 ... 15 for testmode)", "version": { "first": 100, - "last": 486 + "last": 493 }, "values": { "default": 4, @@ -3664,7 +3664,7 @@ "description": "Lorem ipsum", "version": { "first": 100, - "last": 486 + "last": 493 }, "values": { "default": 1, @@ -3693,7 +3693,7 @@ "description": "Lorem ipsum", "version": { "first": 100, - "last": 486 + "last": 493 }, "values": { "default": 1, @@ -3722,7 +3722,7 @@ "description": "Lorem ipsum", "version": { "first": 100, - "last": 486 + "last": 493 }, "statictype": "infrequentlyupdated" } @@ -3746,7 +3746,7 @@ "description": "Lorem ipsum", "version": { "first": 100, - "last": 486 + "last": 493 }, "statictype": "infrequentlyupdated" } @@ -3770,7 +3770,7 @@ "description": "Lorem ipsum", "version": { "first": 100, - "last": 486 + "last": 493 }, "values": { "default": 207, @@ -3799,7 +3799,7 @@ "description": "Lorem ipsum", "version": { "first": 100, - "last": 486 + "last": 493 }, "values": { "default": 60, @@ -3828,7 +3828,7 @@ "description": "Lorem ipsum", "version": { "first": 100, - "last": 486 + "last": 493 }, "values": { "default": 29, @@ -3857,7 +3857,7 @@ "description": "Lorem ipsum", "version": { "first": 100, - "last": 486 + "last": 493 }, "values": { "default": 0, @@ -3886,7 +3886,7 @@ "description": "Lorem ipsum", "version": { "first": 100, - "last": 486 + "last": 493 }, "statictype": "static" } @@ -3910,7 +3910,7 @@ "description": "Lorem ipsum", "version": { "first": 100, - "last": 486 + "last": 493 }, "statictype": "static" } @@ -3934,7 +3934,7 @@ "description": "Lorem ipsum", "version": { "first": 100, - "last": 486 + "last": 493 }, "values": { "default": 0, @@ -3963,7 +3963,7 @@ "description": "Lorem ipsum", "version": { "first": 100, - "last": 486 + "last": 493 }, "values": { "default": 0, @@ -3992,7 +3992,7 @@ "description": "Lorem ipsum", "version": { "first": 100, - "last": 486 + "last": 493 }, "values": { "default": 0, @@ -4021,7 +4021,7 @@ "description": "Lorem ipsum", "version": { "first": 100, - "last": 486 + "last": 493 }, "values": { "default": 0, @@ -4050,7 +4050,7 @@ "description": "Lorem ipsum", "version": { "first": 100, - "last": 486 + "last": 493 }, "values": { "default": 0, @@ -4079,7 +4079,7 @@ "description": "Lorem ipsum", "version": { "first": 100, - "last": 486 + "last": 493 }, "values": { "default": 19, @@ -4108,7 +4108,7 @@ "description": "Lorem ipsum", "version": { "first": 100, - "last": 486 + "last": 493 }, "values": { "default": 0, @@ -4137,7 +4137,7 @@ "description": "Lorem ipsum", "version": { "first": 100, - "last": 486 + "last": 493 }, "values": { "default": 1, @@ -4166,7 +4166,7 @@ "description": "Lorem ipsum", "version": { "first": 100, - "last": 486 + "last": 493 }, "statictype": "dynamic" } @@ -4190,7 +4190,7 @@ "description": "Lorem ipsum", "version": { "first": 100, - "last": 486 + "last": 493 }, "values": { "default": 0, @@ -4219,7 +4219,7 @@ "description": "Lorem ipsum", "version": { "first": 100, - "last": 486 + "last": 493 }, "values": { "default": 201335811, @@ -4248,7 +4248,7 @@ "description": "Lorem ipsum", "version": { "first": 100, - "last": 486 + "last": 493 }, "values": { "default": 60, @@ -4277,7 +4277,7 @@ "description": "Lorem ipsum", "version": { "first": 100, - "last": 486 + "last": 493 }, "values": { "default": 5, @@ -4306,7 +4306,7 @@ "description": "Lorem ipsum", "version": { "first": 100, - "last": 486 + "last": 493 }, "values": { "default": 201335811, @@ -4335,7 +4335,7 @@ "description": "Lorem ipsum", "version": { "first": 100, - "last": 486 + "last": 493 }, "values": { "default": 1, @@ -4364,7 +4364,7 @@ "description": "Lorem ipsum", "version": { "first": 100, - "last": 486 + "last": 493 }, "values": { "default": 0, @@ -4393,7 +4393,7 @@ "description": "Lorem ipsum", "version": { "first": 100, - "last": 486 + "last": 493 }, "values": { "default": 0, @@ -4422,7 +4422,7 @@ "description": "Lorem ipsum", "version": { "first": 100, - "last": 486 + "last": 493 }, "values": { "default": 4, @@ -4451,7 +4451,7 @@ "description": "Lorem ipsum", "version": { "first": 100, - "last": 486 + "last": 493 }, "values": { "default": 4, @@ -4480,7 +4480,7 @@ "description": "Lorem ipsum", "version": { "first": 100, - "last": 486 + "last": 493 }, "values": { "default": 0, @@ -4509,7 +4509,7 @@ "description": "Lorem ipsum", "version": { "first": 100, - "last": 486 + "last": 493 }, "values": { "default": 0, @@ -4538,7 +4538,7 @@ "description": "Lorem ipsum", "version": { "first": 100, - "last": 486 + "last": 493 }, "values": { "default": 0, @@ -4567,7 +4567,7 @@ "description": "Lorem ipsum", "version": { "first": 412, - "last": 486 + "last": 493 }, "values": { "default": 4320000, @@ -4596,7 +4596,7 @@ "description": "Lorem ipsum", "version": { "first": 412, - "last": 486 + "last": 493 }, "values": { "default": 1000, @@ -4625,7 +4625,7 @@ "description": "Storage item for HistoricalErrorLimitCounters Reverse(1, hi) and Leak(0, lo)", "version": { "first": 437, - "last": 486 + "last": 493 }, "values": { "default": 16711935, @@ -4654,7 +4654,7 @@ "description": "Storage item for HistoricalErrorLimitCounters Magnet(3, hi) and Air(2, lo)", "version": { "first": 437, - "last": 486 + "last": 493 }, "values": { "default": 16711935, @@ -4683,7 +4683,7 @@ "description": "Storage item for HistoricalErrorLimitCounters PressureMin(5, hi) and PressureMax(4, lo)", "version": { "first": 437, - "last": 486 + "last": 493 }, "values": { "default": 16711935, @@ -4712,7 +4712,7 @@ "description": "Storage item for HistoricalErrorLimitCounters TempMin(7, hi) and TempMax(6, lo)", "version": { "first": 437, - "last": 486 + "last": 493 }, "values": { "default": 16711935, @@ -4741,7 +4741,7 @@ "description": "Lorem ipsum", "version": { "first": 483, - "last": 486 + "last": 493 }, "values": { "default": 0, @@ -4770,7 +4770,7 @@ "description": "Lorem ipsum", "version": { "first": 482, - "last": 486 + "last": 493 }, "values": { "default": 0, @@ -4799,7 +4799,7 @@ "description": "Lorem ipsum", "version": { "first": 482, - "last": 486 + "last": 493 }, "values": { "default": 0, @@ -4833,7 +4833,7 @@ "id": 4, "version": { "first": 3, - "last": 225 + "last": 226 }, "registers": { "Privilege": { @@ -4854,7 +4854,7 @@ "description": "Written to set the login level, followed by the password. Note, this can be read at any login level including 0.", "version": { "first": 3, - "last": 225 + "last": 226 }, "values": { "default": 0, @@ -4883,7 +4883,7 @@ "description": "Password for logging in, requires 3 consecutive writes", "version": { "first": 3, - "last": 225 + "last": 226 }, "statictype": "dynamic" } @@ -4907,7 +4907,7 @@ "description": "Remote file operations, use this to open a file on the meter, handle returned", "version": { "first": 20, - "last": 225 + "last": 226 }, "statictype": "dynamic" } @@ -4931,7 +4931,7 @@ "description": "Remote file operations, use this to close a file on the meter", "version": { "first": 20, - "last": 225 + "last": 226 }, "statictype": "dynamic" } @@ -4955,7 +4955,7 @@ "description": "Remote file operations, use this to read bytes from an open file", "version": { "first": 20, - "last": 225 + "last": 226 }, "statictype": "dynamic" } @@ -4979,7 +4979,7 @@ "description": "Remote file operations, use this to write bytes to an open file", "version": { "first": 20, - "last": 225 + "last": 226 }, "statictype": "dynamic" } @@ -5003,7 +5003,7 @@ "description": "Remote file operations, use this to seek within an open file", "version": { "first": 20, - "last": 225 + "last": 226 }, "statictype": "dynamic" } @@ -5027,7 +5027,7 @@ "description": "Remote file operations, use this to determine position within an open file", "version": { "first": 20, - "last": 225 + "last": 226 }, "statictype": "dynamic" } @@ -5051,7 +5051,7 @@ "description": "Remote file operations, use this to delete a file", "version": { "first": 20, - "last": 225 + "last": 226 }, "statictype": "dynamic" } @@ -5075,7 +5075,7 @@ "description": "Remote file operations, use this determine whether the current position in an open file is the end of the file", "version": { "first": 20, - "last": 225 + "last": 226 }, "statictype": "dynamic" } @@ -5099,7 +5099,7 @@ "description": "Returns a list of files in the filesystem that matches a string containing wildcards passed in", "version": { "first": 49, - "last": 225 + "last": 226 }, "statictype": "dynamic" } @@ -5123,7 +5123,7 @@ "description": "String containing the PCB serial number. Note, this can be read at any login level including 0", "version": { "first": 59, - "last": 225 + "last": 226 }, "statictype": "static" } @@ -5147,7 +5147,7 @@ "description": "Bitmask of login levels permitted to manipulate dangerous files", "version": { "first": 59, - "last": 225 + "last": 226 }, "statictype": "static" } @@ -5171,7 +5171,7 @@ "description": "Remote file operations, use this to flush write buffers to an open file", "version": { "first": 66, - "last": 225 + "last": 226 }, "statictype": "dynamic" } @@ -5399,7 +5399,7 @@ "id": 0, "version": { "first": 141, - "last": 512 + "last": 515 }, "registers": { "TriggerUpgrade": { @@ -5420,7 +5420,7 @@ "description": "Writing TRUE to this register internally calls SysTriggerUpgrade() then returns the result.", "version": { "first": 141, - "last": 512 + "last": 515 }, "statictype": "dynamic" } @@ -5444,7 +5444,7 @@ "description": "Writing an application id number allows the version number of that application to be read back.", "version": { "first": 150, - "last": 512 + "last": 515 }, "statictype": "dynamic" } @@ -5468,7 +5468,7 @@ "description": "A string reporting the PCB serial number, this string must be set using production equipment.", "version": { "first": 169, - "last": 512 + "last": 515 }, "values": { "default": "" @@ -5495,7 +5495,7 @@ "description": "A string reported relating to the customer, this string can be written only once after manufacture. If subsequent changes are needed CUSTOMERSERIALNUMBER1 must be used.", "version": { "first": 170, - "last": 512 + "last": 515 }, "values": { "default": "" @@ -5522,7 +5522,7 @@ "description": "A string reported relating to the customer, this string can be written only once after manufacture. If subsequent changes are needed CUSTOMERSERIALNUMBER2 must be used.", "version": { "first": 170, - "last": 512 + "last": 515 }, "values": { "default": "" @@ -5549,7 +5549,7 @@ "description": "A string reported relating to the customer, this string can be written only once after manufacture. If subsequent changes are needed CUSTOMERSERIALNUMBER3 must be used.", "version": { "first": 170, - "last": 512 + "last": 515 }, "values": { "default": "" @@ -5576,7 +5576,7 @@ "description": "A string reported relating to the customer, this string can be written only once after manufacture. This is the last customer serial number change slot.", "version": { "first": 170, - "last": 512 + "last": 515 }, "values": { "default": "" @@ -5603,7 +5603,7 @@ "description": "The number of seconds since reboot.", "version": { "first": 176, - "last": 512 + "last": 515 }, "statictype": "dynamic" } @@ -5627,7 +5627,7 @@ "description": "The number of seconds since 01-Jan-2000.", "version": { "first": 176, - "last": 512 + "last": 515 }, "statictype": "dynamic" } @@ -5651,7 +5651,7 @@ "description": "A string reporting the product version string held in the system core binary.", "version": { "first": 196, - "last": 512 + "last": 515 }, "statictype": "static" } @@ -5675,7 +5675,7 @@ "description": "Writing a drive number returns the drive capacity in bytes, or 0 if the drive is not ready, or an error if the driver is not configured to be present.", "version": { "first": 233, - "last": 512 + "last": 515 }, "statictype": "dynamic" } @@ -5699,7 +5699,7 @@ "description": "Writing an application id number allows the exit error number of that application to be read back.", "version": { "first": 258, - "last": 512 + "last": 515 }, "statictype": "dynamic" } @@ -5723,7 +5723,7 @@ "description": "Reports the instruction set of the hosting microprocessor in b8-15 and allocated platform number in b0-7.", "version": { "first": 265, - "last": 512 + "last": 515 }, "statictype": "static" } @@ -5747,7 +5747,7 @@ "description": "Writing an application id number allows the CRC of that application to be read back.", "version": { "first": 279, - "last": 512 + "last": 515 }, "statictype": "dynamic" } @@ -5771,7 +5771,7 @@ "description": "Bitfield of permissions releated to firmware upgrade", "version": { "first": 470, - "last": 512 + "last": 515 }, "statictype": "static" } @@ -6050,7 +6050,7 @@ "id": 18, "version": { "first": 4, - "last": 110 + "last": 111 }, "registers": { "ILoopMaxFlowRate": { @@ -6090,7 +6090,7 @@ "description": "The flow rate that gives max output on the current loop", "version": { "first": 82, - "last": 110 + "last": 111 }, "statictype": "static" } @@ -6133,7 +6133,7 @@ "description": "Writing TRUE to this register stores the values of the other registers to the non-volatile memory", "version": { "first": 82, - "last": 110 + "last": 111 }, "statictype": "dynamic" } @@ -6205,7 +6205,7 @@ "description": "Volume represented by one pulse. Units of (2^-5)ml. If this is zero pulse output will not be enabled", "version": { "first": 102, - "last": 110 + "last": 111 }, "values": { "default": 32000, @@ -6282,7 +6282,7 @@ "description": "The way pulses are output on the two available channels. This is an enum of type pulse_mode_t.", "version": { "first": 98, - "last": 110 + "last": 111 }, "values": { "default": 0, @@ -6359,7 +6359,7 @@ "description": "The length of a pulse. This is an enum of type pulse_length_t.", "version": { "first": 82, - "last": 110 + "last": 111 }, "values": { "default": 4, @@ -6412,7 +6412,7 @@ "description": "The units of flow rate to display on the LCD. An enum of type displayflowunits_t", "version": { "first": 82, - "last": 110 + "last": 111 }, "values": { "default": 4, @@ -6465,7 +6465,7 @@ "description": "Position of the decimal point on the LCD for flow rate. An enum of type displayflowpoint_t", "version": { "first": 82, - "last": 110 + "last": 111 }, "values": { "default": 2, @@ -6513,7 +6513,7 @@ "description": "The update rate for the current loop", "version": { "first": 82, - "last": 110 + "last": 111 }, "statictype": "static" } @@ -6561,7 +6561,7 @@ "description": "Units for displaying temperature on the LCD. 0 – Celcius, 1 – Fahrenheit.", "version": { "first": 82, - "last": 110 + "last": 111 }, "values": { "default": 0, @@ -6614,7 +6614,7 @@ "description": "Units for displaying pressure on the LCD. 0 – Mpa, 1 – PSI.", "version": { "first": 82, - "last": 110 + "last": 111 }, "values": { "default": 0, @@ -6691,7 +6691,7 @@ "description": "Time between pressure measurements in milliseconds", "version": { "first": 82, - "last": 110 + "last": 111 }, "values": { "default": 60000, @@ -6792,7 +6792,7 @@ "description": "Value in Pa to subtract from measured value to correct for atmospheric pressure", "version": { "first": 82, - "last": 110 + "last": 111 }, "values": { "default": 0, @@ -6845,7 +6845,7 @@ "description": "Whether there is a pressure sensor present", "version": { "first": 71, - "last": 110 + "last": 111 }, "values": { "default": 0, @@ -6874,7 +6874,7 @@ "description": "Write TRUE to trigger a pressure measurement, Read to get the latest measured value in Pa", "version": { "first": 65, - "last": 110 + "last": 111 }, "statictype": "dynamic" } @@ -6898,7 +6898,7 @@ "description": "Returns the latest flow rate. Write 0 to change scaling to internal scaling, 1 to change to display scaling", "version": { "first": 92, - "last": 110 + "last": 111 }, "statictype": "dynamic" } @@ -6922,7 +6922,7 @@ "description": "Generate some artificial pulses, used for testing", "version": { "first": 97, - "last": 110 + "last": 111 }, "values": { "minimum": 0, @@ -6950,7 +6950,7 @@ "description": "Generate some artificial pulses, used for testing", "version": { "first": 97, - "last": 110 + "last": 111 }, "values": { "minimum": 0, @@ -6978,7 +6978,7 @@ "description": "Boolean value for whether pulse output is to space the pulses evenly (TRUE) or grouped (FALSE)", "version": { "first": 98, - "last": 110 + "last": 111 }, "values": { "default": 1, @@ -7007,7 +7007,7 @@ "description": "The number of bits of fractional resolution in a pulse event", "version": { "first": 98, - "last": 110 + "last": 111 }, "values": { "minimum": 0, @@ -7035,7 +7035,7 @@ "description": "Value in Pa to add to measured value after recalibration to correct for sensor drift over time", "version": { "first": 108, - "last": 110 + "last": 111 }, "statictype": "static" } @@ -8114,7 +8114,7 @@ "description": "The rate in Hz that each GP30 takes measurements", "version": { "first": 204, - "last": 269 + "last": 267 }, "values": { "default": 2, @@ -8138,7 +8138,7 @@ "description": "The rate in Hz that each GP30 takes measurements", "version": { "first": 268, - "last": 303 + "last": 304 }, "values": { "default": 2, @@ -8239,7 +8239,7 @@ "description": "The first hit level in the upstream direction for channel 1, units of 0.88mV", "version": { "first": 7, - "last": 269 + "last": 267 }, "values": { "default": 20, @@ -8263,7 +8263,7 @@ "description": "The first hit level in the upstream direction for channel 1, units of 0.88mV", "version": { "first": 268, - "last": 303 + "last": 304 }, "values": { "default": 20, @@ -8364,7 +8364,7 @@ "description": "The first hit level in the upstream direction for channel 2, units of 0.88mV", "version": { "first": 7, - "last": 269 + "last": 267 }, "values": { "default": 20, @@ -8388,7 +8388,7 @@ "description": "The first hit level in the upstream direction for channel 2, units of 0.88mV", "version": { "first": 268, - "last": 303 + "last": 304 }, "values": { "default": 20, @@ -8489,7 +8489,7 @@ "description": "The first hit level in the upstream direction for channel 3, units of 0.88mV", "version": { "first": 7, - "last": 269 + "last": 267 }, "values": { "default": 20, @@ -8513,7 +8513,7 @@ "description": "The first hit level in the upstream direction for channel 3, units of 0.88mV", "version": { "first": 268, - "last": 303 + "last": 304 }, "values": { "default": 20, @@ -8614,7 +8614,7 @@ "description": "The first hit level in the downstream direction for channel 1, units of 0.88mV", "version": { "first": 7, - "last": 269 + "last": 267 }, "values": { "default": 20, @@ -8638,7 +8638,7 @@ "description": "The first hit level in the downstream direction for channel 1, units of 0.88mV", "version": { "first": 268, - "last": 303 + "last": 304 }, "values": { "default": 20, @@ -8739,7 +8739,7 @@ "description": "The first hit level in the downstream direction for channel 2, units of 0.88mV", "version": { "first": 7, - "last": 269 + "last": 267 }, "values": { "default": 20, @@ -8763,7 +8763,7 @@ "description": "The first hit level in the downstream direction for channel 2, units of 0.88mV", "version": { "first": 268, - "last": 303 + "last": 304 }, "values": { "default": 20, @@ -8864,7 +8864,7 @@ "description": "The first hit level in the downstream direction for channel 3, units of 0.88mV", "version": { "first": 7, - "last": 269 + "last": 267 }, "values": { "default": 20, @@ -8888,7 +8888,7 @@ "description": "The first hit level in the downstream direction for channel 3, units of 0.88mV", "version": { "first": 268, - "last": 303 + "last": 304 }, "values": { "default": 20, @@ -8989,7 +8989,7 @@ "description": "The hit number to consider as the first hit", "version": { "first": 7, - "last": 269 + "last": 267 }, "values": { "default": 6, @@ -9013,7 +9013,7 @@ "description": "The hit number to consider as the first hit", "version": { "first": 268, - "last": 303 + "last": 304 }, "values": { "default": 6, @@ -9114,7 +9114,7 @@ "description": "Where to stop running the amplitude peak detection", "version": { "first": 7, - "last": 269 + "last": 267 }, "values": { "default": 19, @@ -9138,7 +9138,7 @@ "description": "Where to stop running the amplitude peak detection", "version": { "first": 268, - "last": 303 + "last": 304 }, "values": { "default": 19, @@ -9239,7 +9239,7 @@ "description": "The number of pulses to fire for a measurement", "version": { "first": 7, - "last": 269 + "last": 267 }, "values": { "default": 17, @@ -9263,7 +9263,7 @@ "description": "The number of pulses to fire for a measurement", "version": { "first": 268, - "last": 303 + "last": 304 }, "values": { "default": 17, @@ -9364,7 +9364,7 @@ "description": "The weight of the lowest display digit as a power of 10. The accepted range of values depends on the LCD present and the DisplayUnits chosen", "version": { "first": 36, - "last": 269 + "last": 267 }, "values": { "default": -6, @@ -9388,7 +9388,7 @@ "description": "The weight of the lowest display digit as a power of 10. The accepted range of values depends on the LCD present and the DisplayUnits chosen", "version": { "first": 268, - "last": 303 + "last": 304 }, "values": { "default": -6, @@ -9489,7 +9489,7 @@ "description": "The units of volume to display. The accepted range of values depends on the LCD present and the DisplayPow10 chosen", "version": { "first": 36, - "last": 269 + "last": 267 }, "values": { "default": 0, @@ -9513,7 +9513,7 @@ "description": "The units of volume to display. The accepted range of values depends on the LCD present and the DisplayPow10 chosen", "version": { "first": 268, - "last": 303 + "last": 304 }, "values": { "default": 0, @@ -9638,7 +9638,7 @@ "description": "The meter pipe size", "version": { "first": 238, - "last": 269 + "last": 267 }, "values": { "default": 1, @@ -9662,7 +9662,7 @@ "description": "The meter pipe size", "version": { "first": 268, - "last": 303 + "last": 304 }, "values": { "default": 1, @@ -9787,7 +9787,7 @@ "description": "The calibration factor for ultrasonic channel 1", "version": { "first": 201, - "last": 269 + "last": 267 }, "values": { "default": 15625, @@ -9811,7 +9811,7 @@ "description": "The calibration factor for ultrasonic channel 1", "version": { "first": 268, - "last": 303 + "last": 304 }, "values": { "default": 15625, @@ -9936,7 +9936,7 @@ "description": "The calibration factor for ultrasonic channel 2", "version": { "first": 201, - "last": 269 + "last": 267 }, "values": { "default": 15625, @@ -9960,7 +9960,7 @@ "description": "The calibration factor for ultrasonic channel 2", "version": { "first": 268, - "last": 303 + "last": 304 }, "values": { "default": 15625, @@ -10085,7 +10085,7 @@ "description": "The calibration factor for ultrasonic channel 3", "version": { "first": 201, - "last": 269 + "last": 267 }, "values": { "default": 15625, @@ -10109,7 +10109,7 @@ "description": "The calibration factor for ultrasonic channel 3", "version": { "first": 268, - "last": 303 + "last": 304 }, "values": { "default": 15625, @@ -10234,7 +10234,7 @@ "description": "The delta time of flight expected on ultrasound channel 1 at zero flow. Value is in units 4 times smaller than usual time of flight scaling (ie LS bit is 2^-40 seconds)", "version": { "first": 133, - "last": 269 + "last": 267 }, "values": { "default": 0, @@ -10258,7 +10258,7 @@ "description": "The delta time of flight expected on ultrasound channel 1 at zero flow. Value is in units 4 times smaller than usual time of flight scaling (ie LS bit is 2^-40 seconds)", "version": { "first": 268, - "last": 303 + "last": 304 }, "values": { "default": 0, @@ -10383,7 +10383,7 @@ "description": "The delta time of flight expected on ultrasound channel 2 at zero flow. Value is in units 4 times smaller than usual time of flight scaling (ie LS bit is 2^-40 seconds)", "version": { "first": 133, - "last": 269 + "last": 267 }, "values": { "default": 0, @@ -10407,7 +10407,7 @@ "description": "The delta time of flight expected on ultrasound channel 2 at zero flow. Value is in units 4 times smaller than usual time of flight scaling (ie LS bit is 2^-40 seconds)", "version": { "first": 268, - "last": 303 + "last": 304 }, "values": { "default": 0, @@ -10532,7 +10532,7 @@ "description": "The delta time of flight expected on ultrasound channel 3 at zero flow. Value is in units 4 times smaller than usual time of flight scaling (ie LS bit is 2^-40 seconds)", "version": { "first": 133, - "last": 269 + "last": 267 }, "values": { "default": 0, @@ -10556,7 +10556,7 @@ "description": "The delta time of flight expected on ultrasound channel 3 at zero flow. Value is in units 4 times smaller than usual time of flight scaling (ie LS bit is 2^-40 seconds)", "version": { "first": 268, - "last": 303 + "last": 304 }, "values": { "default": 0, @@ -10657,7 +10657,7 @@ "description": "The scaled volume value shown on the display. In the units and precision set by DisplayUnits and DisplayPow10 respectively. Decimal point is not represented in this value", "version": { "first": 47, - "last": 303 + "last": 304 }, "statictype": "dynamic" }, @@ -10757,7 +10757,7 @@ "description": "Write 1 to reset all accumulated volume to zero", "version": { "first": 268, - "last": 303 + "last": 304 }, "statictype": "dynamic" }, @@ -10862,7 +10862,7 @@ "description": "The forward flow direction. 0 - undecided, 1 - right, 2 - left", "version": { "first": 268, - "last": 303 + "last": 304 }, "values": { "default": 0, @@ -11011,7 +11011,7 @@ "description": "The type of data output by the green LED", "version": { "first": 268, - "last": 303 + "last": 304 }, "values": { "default": 0, @@ -11112,7 +11112,7 @@ "description": "Write 1 to store calibration values to non-volatile storage. Read back for status", "version": { "first": 54, - "last": 303 + "last": 304 }, "statictype": "dynamic" }, @@ -11193,7 +11193,7 @@ "description": "The forward flow accumulator volume. The scale depends on the meter size", "version": { "first": 54, - "last": 303 + "last": 304 }, "statictype": "dynamic" }, @@ -11274,7 +11274,7 @@ "description": "The reverse flow accumulator volume. The scale depends on the meter size", "version": { "first": 54, - "last": 303 + "last": 304 }, "statictype": "dynamic" }, @@ -11379,7 +11379,7 @@ "description": "The volume that must pass in LowFlowMaxPeriod for it to be registered as real flow. Units of ml", "version": { "first": 268, - "last": 303 + "last": 304 }, "values": { "default": 200, @@ -11504,7 +11504,7 @@ "description": "The time during which LowFlowThreshold volume must pass for it to be registered as real flow. Units of seconds << 16", "version": { "first": 268, - "last": 303 + "last": 304 }, "values": { "default": 3932160, @@ -11629,7 +11629,7 @@ "description": "The amount of flow in ml to accumulate before updating the main scaled accumulators.", "version": { "first": 268, - "last": 303 + "last": 304 }, "values": { "default": 0, @@ -11754,7 +11754,7 @@ "description": "The net volume in ml that must flow in one direction for the forward arrow to be set", "version": { "first": 268, - "last": 303 + "last": 304 }, "values": { "default": 5000000, @@ -11879,7 +11879,7 @@ "description": "The fire buffer within the GP30 on channel 1 to be used", "version": { "first": 268, - "last": 303 + "last": 304 }, "values": { "default": 1, @@ -12004,7 +12004,7 @@ "description": "The fire buffer within the GP30 on channel 2 to be used", "version": { "first": 268, - "last": 303 + "last": 304 }, "values": { "default": 1, @@ -12129,7 +12129,7 @@ "description": "The fire buffer within the GP30 on channel 3 to be used", "version": { "first": 268, - "last": 303 + "last": 304 }, "values": { "default": 1, @@ -12249,7 +12249,7 @@ "description": "Write 1 to put GenesisFlow in Active mode. This is the normal measurement mode", "version": { "first": 268, - "last": 303 + "last": 304 }, "statictype": "dynamic" }, @@ -12330,7 +12330,7 @@ "description": "Write 0 to put GenesisFlow in Active mode, otherwise put GenesisFlow in Idle mode. Idle mode displays just the number written to TriggerIdle. No measurements are performed. Read returns the number written", "version": { "first": 75, - "last": 303 + "last": 304 }, "values": { "default": 0, @@ -12455,7 +12455,7 @@ "description": "The maximum delta time of flight, above this the measurement is deemed bad. In 2^-38 seconds units", "version": { "first": 268, - "last": 303 + "last": 304 }, "values": { "default": 309237, @@ -12580,7 +12580,7 @@ "description": "The maximum absolute time of flight, above this the measurement is deemed bad. In 2^-38 seconds units", "version": { "first": 268, - "last": 303 + "last": 304 }, "values": { "default": 24739011, @@ -12705,7 +12705,7 @@ "description": "The minimum absolute time of flight, below this the measurement is deemed bad. In 2^-38 seconds units", "version": { "first": 268, - "last": 303 + "last": 304 }, "values": { "default": 13743895, @@ -12830,7 +12830,7 @@ "description": "The percentage of the measured amplitude to use for the first hit level for channel 1", "version": { "first": 268, - "last": 303 + "last": 304 }, "values": { "default": 20, @@ -12955,7 +12955,7 @@ "description": "The percentage of the measured amplitude to use for the first hit level for channel 2", "version": { "first": 268, - "last": 303 + "last": 304 }, "values": { "default": 20, @@ -13080,7 +13080,7 @@ "description": "The percentage of the measured amplitude to use for the first hit level for channel 3", "version": { "first": 268, - "last": 303 + "last": 304 }, "values": { "default": 20, @@ -13205,7 +13205,7 @@ "description": "A value describing how long the amplitude is averaged over for calculating the first hit level. This is the amount each amplitude value is shifted down before being added to the moving average", "version": { "first": 268, - "last": 303 + "last": 304 }, "values": { "default": 4, @@ -13330,7 +13330,7 @@ "description": "Minimum absolute first hit level value", "version": { "first": 268, - "last": 303 + "last": 304 }, "values": { "default": 20, @@ -13455,7 +13455,7 @@ "description": "The number of ToF errors to allow before resetting the first hit levels to FirstHitMinimum", "version": { "first": 268, - "last": 303 + "last": 304 }, "values": { "default": 16, @@ -13580,7 +13580,7 @@ "description": "The period (in seconds) between first hit level updates", "version": { "first": 268, - "last": 303 + "last": 304 }, "values": { "default": 10, @@ -13705,7 +13705,7 @@ "description": "The time (in seconds) to maintain zero flow after leaving empty pipe", "version": { "first": 268, - "last": 303 + "last": 304 }, "values": { "default": 30, @@ -13830,7 +13830,7 @@ "description": "The calibration offset for the temperature measurement on channel 1. In units of 2^-38 seconds", "version": { "first": 268, - "last": 303 + "last": 304 }, "values": { "default": 0, @@ -13955,7 +13955,7 @@ "description": "The calibration offset for the temperature measurement on channel 2. In units of 2^-38 seconds", "version": { "first": 268, - "last": 303 + "last": 304 }, "values": { "default": 0, @@ -14080,7 +14080,7 @@ "description": "The calibration offset for the temperature measurement on channel 3. In units of 2^-38 seconds", "version": { "first": 268, - "last": 303 + "last": 304 }, "values": { "default": 0, @@ -14204,7 +14204,7 @@ "description": "Write the current temperature to this register to trigger a calibration step. In units of 2^-12 degrees celcius", "version": { "first": 205, - "last": 303 + "last": 304 }, "values": { "minimum": 0, @@ -14320,7 +14320,7 @@ "description": "Write 1 to store configuration values to non-volatile storage. Read back for status", "version": { "first": 268, - "last": 303 + "last": 304 }, "statictype": "dynamic" }, @@ -14425,7 +14425,7 @@ "description": "Write 1 to stop various display related registers being changed. Read back 1 for 'sealed' 0 for 'unsealed'", "version": { "first": 268, - "last": 303 + "last": 304 }, "values": { "default": 0, @@ -14550,7 +14550,7 @@ "description": "Write 1 to put GenesisFlow in Test mode. This differs from normal measurement mode in that the volume is presented to 3 extra decimal places if possible. Read back 1 for Test mode, 0 otherwise", "version": { "first": 268, - "last": 303 + "last": 304 }, "values": { "default": 0, @@ -14675,7 +14675,7 @@ "description": "Maximum amplitude for a valid signal in 2^-22mV units", "version": { "first": 268, - "last": 303 + "last": 304 }, "values": { "default": 2936012800, @@ -14800,7 +14800,7 @@ "description": "Minimum amplitude for a valid signal in 2^-22mV units", "version": { "first": 268, - "last": 303 + "last": 304 }, "values": { "default": 209715200, @@ -14925,7 +14925,7 @@ "description": "Number of hard errors to allow before declaring a fatal error", "version": { "first": 268, - "last": 303 + "last": 304 }, "values": { "default": 4, @@ -15026,7 +15026,7 @@ "description": "The timeout for an ultrasonic measurement (0 - 128us, 1 - 256us, 2 - 1024us, 3 - 4096us)", "version": { "first": 273, - "last": 303 + "last": 304 }, "values": { "default": 1, @@ -15127,7 +15127,7 @@ "description": "The maximum deviation of a valid delta tof from the recent mean. In 2^-38 seconds units", "version": { "first": 280, - "last": 303 + "last": 304 }, "values": { "default": 109951, @@ -15228,7 +15228,7 @@ "description": "The maximum range of temperatures between channels before one is rejected. In units of 2^-12 degrees celcius", "version": { "first": 289, - "last": 303 + "last": 304 }, "values": { "default": 8192, @@ -15329,7 +15329,7 @@ "description": "The maximum range of delta time of flight between channels before one is rejected. In 2^-38 seconds units", "version": { "first": 289, - "last": 303 + "last": 304 }, "values": { "default": 137438, @@ -15430,7 +15430,7 @@ "description": "Read for the current loaded lookup table CRC, write to set the expected CRC.", "version": { "first": 295, - "last": 303 + "last": 304 }, "statictype": "dynamic" } @@ -15454,7 +15454,7 @@ "description": "Whether to display leading zeros on row 2. If false leading zeros will be replaced with a space", "version": { "first": 302, - "last": 303 + "last": 304 }, "values": { "default": 0, @@ -15798,7 +15798,7 @@ "id": 20, "version": { "first": 10, - "last": 203 + "last": 206 }, "registers": { "PulseReportRate": { @@ -15867,7 +15867,7 @@ "description": "The rate at which pulse reports are sent to the IrDA pulse adapter", "version": { "first": 161, - "last": 203 + "last": 206 }, "values": { "default": 0, @@ -15968,7 +15968,7 @@ "description": "The number of 15 minute periods we have to have received no valid IrDA messages to assume there is no adapter present", "version": { "first": 161, - "last": 203 + "last": 206 }, "values": { "default": 3, @@ -16066,7 +16066,7 @@ "description": "The present sequence number used in pulse reports", "version": { "first": 161, - "last": 203 + "last": 206 }, "values": { "minimum": 0, @@ -16132,7 +16132,7 @@ "description": "Write 1 to store configuration values to non-volatile storage. Read back for status", "version": { "first": 161, - "last": 203 + "last": 206 }, "statictype": "dynamic" } @@ -16228,7 +16228,7 @@ "description": "The number of digits to use for AMR", "version": { "first": 161, - "last": 203 + "last": 206 }, "values": { "default": 8, @@ -16305,7 +16305,7 @@ "description": "The offset of the AMR smallest digit from the right (always negative)", "version": { "first": 161, - "last": 203 + "last": 206 }, "values": { "default": 0, @@ -16382,7 +16382,7 @@ "description": "A bitfield of the optional fields being used for UI-1203", "version": { "first": 161, - "last": 203 + "last": 206 }, "values": { "default": 268, @@ -16435,7 +16435,7 @@ "description": "A timestamp of meter manufacture in seconds since 1/1/2000 00:00:00 UTC", "version": { "first": 161, - "last": 203 + "last": 206 }, "values": { "default": 0, @@ -16512,7 +16512,7 @@ "description": "Whether or not to display AMR digits on the screen", "version": { "first": 161, - "last": 203 + "last": 206 }, "values": { "default": 0, @@ -16541,7 +16541,7 @@ "description": "The serial number of the current pulse adapter", "version": { "first": 193, - "last": 203 + "last": 206 }, "statictype": "infrequentlyupdated" } @@ -16565,7 +16565,7 @@ "description": "The firmware version of the current pulse adapter", "version": { "first": 193, - "last": 203 + "last": 206 }, "statictype": "infrequentlyupdated" } @@ -16609,7 +16609,7 @@ "id": 23, "version": { "first": 41, - "last": 100 + "last": 102 }, "registers": { "StoreConfiguration": { @@ -16630,7 +16630,7 @@ "description": "Write 1 to store configuration values to non-volatile storage. Read back for status", "version": { "first": 41, - "last": 100 + "last": 102 }, "statictype": "dynamic" } @@ -16654,7 +16654,7 @@ "description": "Bitmask of enabled predefined alarms", "version": { "first": 41, - "last": 100 + "last": 102 }, "values": { "default": 561047, diff --git a/Common/Hardware/WaterMeter/WaterMeterCore/WaterMeterRegisters/obj/Debug/WaterMeterRegisters.csproj.CoreCompileInputs.cache b/Common/Hardware/WaterMeter/WaterMeterCore/WaterMeterRegisters/obj/Debug/WaterMeterRegisters.csproj.CoreCompileInputs.cache index f22623aa..d8b5c8f6 100644 --- a/Common/Hardware/WaterMeter/WaterMeterCore/WaterMeterRegisters/obj/Debug/WaterMeterRegisters.csproj.CoreCompileInputs.cache +++ b/Common/Hardware/WaterMeter/WaterMeterCore/WaterMeterRegisters/obj/Debug/WaterMeterRegisters.csproj.CoreCompileInputs.cache @@ -1 +1 @@ -5ed75d99ee45ff67821090f1b3dbb001dd9e4fe3 +1a3d4919c9c702245832d925951f2b7cb72fc333 diff --git a/Common/Ui/GenesisToolBox/FrmFwUpdate.cs b/Common/Ui/GenesisToolBox/FrmFwUpdate.cs index abf1a2d6..47a61c83 100644 --- a/Common/Ui/GenesisToolBox/FrmFwUpdate.cs +++ b/Common/Ui/GenesisToolBox/FrmFwUpdate.cs @@ -1454,6 +1454,9 @@ namespace Xylem.Common.Ui.GenesisToolBox return; } + if (_meterFwUpdate != null) + _meterFwUpdate.StoreConfigEnable = cbxStoreConfigEnable.Checked; + SetControlsDownloadIsOngoing(); AutomaticUpdateControl(true); diff --git a/Common/Utils/DateTimeServerShared/DateTimeServer.cs b/Common/Utils/DateTimeServerShared/DateTimeServer.cs index c7d9d888..ed4fab44 100644 --- a/Common/Utils/DateTimeServerShared/DateTimeServer.cs +++ b/Common/Utils/DateTimeServerShared/DateTimeServer.cs @@ -25,6 +25,25 @@ namespace Xylem.Common.Utils.DateTimeServer return date.ToShortDateString(); } + /// + /// Convert date time to sortable string. + /// + /// date time offset needed to extract the local date + /// culture info for local information of date and time offset + /// Date string + /// + /// - Initial. + /// + public static String GetSortableDateStringFromDateTime(DateTime dt, CultureInfo cI) + { + var culturePattern = @"yyyy/MM/dd"; + if (cI.IetfLanguageTag.Contains("de-")) + { + culturePattern = @"yyyy-MM-dd"; + } + return dt.ToString(culturePattern); + } + /// /// Convert date string to date time. /// diff --git a/ServiceFwUpdate/Ui/ServiceFwUpdateBuilder/FrmFwUpdateBuilder.cs b/ServiceFwUpdate/Ui/ServiceFwUpdateBuilder/FrmFwUpdateBuilder.cs index 69a75a8a..cad2f612 100644 --- a/ServiceFwUpdate/Ui/ServiceFwUpdateBuilder/FrmFwUpdateBuilder.cs +++ b/ServiceFwUpdate/Ui/ServiceFwUpdateBuilder/FrmFwUpdateBuilder.cs @@ -3099,6 +3099,9 @@ namespace Xylem.ServiceFwUpdate.Ui.FwUpdateBuilder /// /// - Removed coloring of safes depending bon valid date as it slows down the program dramatically. /// + /// + /// - CHanged date time field to string with yyyy-MM-dd to make it sortable. + /// private void FillDataGridWithFwUpdateSafesInfos() { grpLanguageSelection.Enabled = false; @@ -3108,7 +3111,8 @@ namespace Xylem.ServiceFwUpdate.Ui.FwUpdateBuilder Thread.CurrentThread.CurrentCulture = _cultureInfo; _dataTableUpdateSafes = new DataTable(); - _dataTableUpdateSafes.Columns.Add(Resources.StrTableUserValidDate, typeof(DateTime)); + // _dataTableUpdateSafes.Columns.Add(Resources.StrTableUserValidDate, typeof(DateTime)); + _dataTableUpdateSafes.Columns.Add(Resources.StrTableUserValidDate, typeof(String)); _dataTableUpdateSafes.Columns.Add(Resources.StrTableCordonelPcbId, typeof(String)); _dataTableUpdateSafes.Columns.Add(Resources.StrTableCordonelUpdateOrder, typeof(Int64)); @@ -3127,36 +3131,38 @@ namespace Xylem.ServiceFwUpdate.Ui.FwUpdateBuilder { try { + var row = _dataTableUpdateSafes.NewRow(); - - var row = _dataTableUpdateSafes.NewRow(); + //row[Resources.StrTableUserValidDate] = safeInfo.ValidDate.DateTime; + row[Resources.StrTableUserValidDate] = + DateTimeServer.GetSortableDateStringFromDateTime(safeInfo.ValidDate.DateTime, + _cultureInfo); + row[Resources.StrTableCordonelPcbId] = pcbId; - row[Resources.StrTableUserValidDate] = safeInfo.ValidDate.DateTime; - row[Resources.StrTableCordonelPcbId] = pcbId; - - // extract customer name , order and position from file name - var info = safeInfo.Name.Split(FwUpdateConfig.FwUpdateFileFieldSeparator); - var replace = info[1].Replace(FwUpdateConfig.FwUpdateFileExtension, ""); - var orderPos = replace.Split(FwUpdateConfig.FwUpdateFileOrderPosSeparator); + // extract customer name , order and position from file name + var info = safeInfo.Name.Split(FwUpdateConfig.FwUpdateFileFieldSeparator); + var replace = info[1].Replace(FwUpdateConfig.FwUpdateFileExtension, ""); + var orderPos = replace.Split(FwUpdateConfig.FwUpdateFileOrderPosSeparator); - row[Resources.StrTableCordonelUpdateOrder] = orderPos[0]; - row[Resources.StrTableCordonelProductionPos] = orderPos[1]; + row[Resources.StrTableCordonelUpdateOrder] = orderPos[0]; + row[Resources.StrTableCordonelProductionPos] = orderPos[1]; - row[Resources.StrTableCustomerName] = info[0]; - var userName = "?"; - foreach (var user in _fwUpdateDbAccess.DbFullQualifiedUpdateOperators.Where(user => - user.Id == safeInfo.UserId)) - { - userName = user.FullName; - break; + row[Resources.StrTableCustomerName] = info[0]; + var userName = "?"; + foreach (var user in _fwUpdateDbAccess.DbFullQualifiedUpdateOperators.Where(user => + user.Id == safeInfo.UserId)) + { + userName = user.FullName; + break; + } + + row[Resources.StrTableUserFullName] = userName; + _dataTableUpdateSafes.Rows.Add(row); } - - row[Resources.StrTableUserFullName] = userName; - _dataTableUpdateSafes.Rows.Add(row); - } - catch (Exception exs) + catch (Exception) { + // ignored } } } @@ -3170,7 +3176,7 @@ namespace Xylem.ServiceFwUpdate.Ui.FwUpdateBuilder //TODO THW FwUpdateSafesInfosStyleSet(); } - catch (Exception ex) + catch (Exception) { _processState = ProcessState.Error; } @@ -3180,24 +3186,24 @@ namespace Xylem.ServiceFwUpdate.Ui.FwUpdateBuilder } } - /// - /// Color the rows depending on the state - /// - /// - /// - Initial. - /// - private void FwUpdateSafesInfosStyleSet() - { - Thread.CurrentThread.CurrentUICulture = _cultureInfo; - Thread.CurrentThread.CurrentCulture = _cultureInfo; + ///// + ///// Color the rows depending on the state + ///// + ///// + ///// - Initial. + ///// + //private void FwUpdateSafesInfosStyleSet() + //{ + // Thread.CurrentThread.CurrentUICulture = _cultureInfo; + // Thread.CurrentThread.CurrentCulture = _cultureInfo; - foreach (DataGridViewRow dataGridRow in gridViewFwUpdateSafeSelection.Rows) - { - dataGridRow.DefaultCellStyle = DateTimeServer.GetDateTimeOffsetFromDateString( - dataGridRow.Cells[Resources.StrTableUserValidDate].Value.ToString()) >= DateTimeOffset.Now ? - _styleValid : _styleInvalid; - } - } + // foreach (DataGridViewRow dataGridRow in gridViewFwUpdateSafeSelection.Rows) + // { + // dataGridRow.DefaultCellStyle = DateTimeServer.GetDateTimeOffsetFromDateString( + // dataGridRow.Cells[Resources.StrTableUserValidDate].Value.ToString()) >= DateTimeOffset.Now ? + // _styleValid : _styleInvalid; + // } + //} #endregion --------------------------------------- Data Grid Update Safes -------------------------------------- #region ------------------------------------------ Data Grid Report Files -------------------------------------- @@ -3266,6 +3272,9 @@ namespace Xylem.ServiceFwUpdate.Ui.FwUpdateBuilder /// /// - Use file ID for reference of report as multiple reports might be generated at the same day. /// + /// + /// - CHanged date time field to string with yyyy-MM-dd to make it sortable. + /// private void FillDataGridWithReportsInfos() { grpLanguageSelection.Enabled = false; @@ -3275,7 +3284,8 @@ namespace Xylem.ServiceFwUpdate.Ui.FwUpdateBuilder Thread.CurrentThread.CurrentCulture = _cultureInfo; _dataTableReportFiles = new DataTable(); - _dataTableReportFiles.Columns.Add(Resources.StrTableDate, typeof(DateTime)); + //_dataTableReportFiles.Columns.Add(Resources.StrTableDate, typeof(DateTime)); + _dataTableReportFiles.Columns.Add(Resources.StrTableDate, typeof(String)); _dataTableReportFiles.Columns.Add(Resources.StrTableCordonelPcbId, typeof(String)); _dataTableReportFiles.Columns.Add(Resources.StrTableCordonelUpdateOrder, typeof(Int64)); @@ -3293,7 +3303,9 @@ namespace Xylem.ServiceFwUpdate.Ui.FwUpdateBuilder var row = _dataTableReportFiles.NewRow(); - row[Resources.StrTableDate] = report.Date.Date; + //row[Resources.StrTableDate] = report.Date.Date; + row[Resources.StrTableDate] = + DateTimeServer.GetSortableDateStringFromDateTime(report.Date.Date, _cultureInfo); row[Resources.StrTableCordonelPcbId] = report.PcbId; row[Resources.StrTableCordonelUpdateOrder] = report.OrderNr;