eRegister tasks status refresh
This commit is contained in:
@@ -1,9 +1,8 @@
|
||||
namespace CommonConsole
|
||||
{
|
||||
using Common.Hardware.Interfaces.Ports.Sirt;
|
||||
using Common.Hardware.Interfaces.Ports.SirtBroadcaster.Parameters;
|
||||
using Common.Hardware.Interfaces.Ports.Sirt.Parameters;
|
||||
using Common.Hardware.WaterMeter.eRegister;
|
||||
|
||||
using System;
|
||||
|
||||
public class Program
|
||||
@@ -14,13 +13,32 @@
|
||||
|
||||
if (programmingBatch.StartOnCOMPort("COM6"))
|
||||
{
|
||||
var task = new JusteRegisterProgrammingTask
|
||||
{
|
||||
Cmd = JustSirtMessage.W_PAM,
|
||||
P1 = new P811
|
||||
{
|
||||
DelPamSemi = true
|
||||
},
|
||||
Address = 319020415,
|
||||
Data = new Byte[]
|
||||
{
|
||||
// Metrology parameters
|
||||
0x92, 0x10, 0x71, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x18, 0x71, 0x02, 0x00, 0x00,
|
||||
|
||||
// Provide Pin Auth Level III
|
||||
0x43, 0x03, 0x63, 0x93, 0x73, 0x22,
|
||||
}
|
||||
};
|
||||
programmingBatch.Run(task);
|
||||
|
||||
Console.ReadKey();
|
||||
|
||||
programmingBatch.Stop();
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Console.WriteLine("Not connected!");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user