omni vfm
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
namespace CommonConsole
|
||||
{
|
||||
using Common.Hardware.WaterMeter.OmniPlus;
|
||||
using Common.Hardware.WaterMeter.OmniPlus.Features;
|
||||
using Common.Utils.Extensions;
|
||||
|
||||
using System;
|
||||
@@ -11,13 +12,24 @@
|
||||
public static void Main()
|
||||
{
|
||||
var connection = new OmniConnection();
|
||||
connection.UseIrda("COM40");
|
||||
connection.UseUniPro("COM9");
|
||||
|
||||
var _params = connection.ViewSystemParameters();
|
||||
|
||||
var x1 = connection.FactorySeal(false);
|
||||
var x2 = connection.FactorySeal(true);
|
||||
var x3 = connection.FactorySeal(false);
|
||||
var _params = connection.Set(new ConfigurationParametersSet
|
||||
{
|
||||
AlarmPercistancePeriodDays = 8,
|
||||
BuildInfo = "816234014680",
|
||||
DataLogIntervalMinutes = 60,
|
||||
DeviceID = "OMNI-02",
|
||||
FactoryID = "98944637",
|
||||
ManifacturingTime = (UInt32)new DateTime(2023, 01, 01, 12, 0, 0).TimeOfDay.TotalSeconds,
|
||||
NumberOfReadingDigits = 8,
|
||||
OptionalUniDirFields = 12,
|
||||
ProgrammableID = "95061881",
|
||||
ReadingPreset = "00000010",
|
||||
RebootCount = 0,
|
||||
SystemTime = Epoch20000101.UTCNow
|
||||
});
|
||||
|
||||
|
||||
connection.Disconnect();
|
||||
|
||||
@@ -82,4 +94,5 @@
|
||||
return requestBytesList.ToArray();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user