eRegister tasks status refresh

This commit is contained in:
Stoyan Zlatev
2024-09-10 16:51:39 +02:00
parent 66d9c0f4a5
commit 2890a0e851
14 changed files with 163 additions and 79 deletions
+21 -3
View File
@@ -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!");
}
}