eRegister programming execute tasks in a row
This commit is contained in:
+114
-113
@@ -10,130 +10,131 @@
|
||||
{
|
||||
public static void Main()
|
||||
{
|
||||
Console.WriteLine(BitConverter.ToString(BitConverter.GetBytes(111111111)));
|
||||
|
||||
var programmingBatch = new JusteRegisterProgrammingBatch();
|
||||
|
||||
if (programmingBatch.StartOnCOMPort("COM6"))
|
||||
{
|
||||
// 01020304050607081112131415161718
|
||||
// E6C88800DEB868C0D6A84880CE982840
|
||||
var encryptionKey = new Byte[] { 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17, 0x18 };
|
||||
var task = new JusteRegisterProgrammingTask
|
||||
{
|
||||
Cmd = JustSirtMessage.W_PAM,
|
||||
P1 = new P811
|
||||
{
|
||||
DelPamSemi = true,
|
||||
WakeUpCmd = true
|
||||
},
|
||||
Address = 4291305226,
|
||||
// Address = 319020415,
|
||||
Data = new Byte[]
|
||||
{
|
||||
// Change Key
|
||||
// 0x6C, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17, 0x18,
|
||||
|
||||
// LED on
|
||||
// 0x1F, 0x01, 0x08,
|
||||
|
||||
// Reboot
|
||||
0x0E, 0x00,
|
||||
|
||||
// Provide Pin Auth Level I
|
||||
// 0x43, 0x01, 0x14, 0x30, 0x68, 0xD0,
|
||||
|
||||
// Provide Pin Auth Level II
|
||||
// 0x43, 0x02, 0x14, 0x0E, 0x80, 0x40,
|
||||
|
||||
// Provide Pin Auth Level III
|
||||
0x43, 0x03, 0x63, 0x93, 0x73, 0x22,
|
||||
|
||||
// Reset credits
|
||||
// 0x1F, 0x01, 0x03,
|
||||
},
|
||||
EncryptionKey = encryptionKey
|
||||
};
|
||||
programmingBatch.Run(task);
|
||||
task.Wait();
|
||||
|
||||
// 55-81-14-00-FF-C8-1F-0A-0B-07-FA-E3-AA-EA-8A-7B-7B-D9-A7-D7-D5-B8-16
|
||||
// 55-81-14-00-FF-C8-1F-0A-0B-07-FA-E3-AA-EA-8A-7B-7B-D9-A7-D7-D5-B8-16
|
||||
|
||||
//var task = new JusteRegisterTask
|
||||
//{
|
||||
// Cmd = JustSirtMessage.W_PAM,
|
||||
// P1 = new P811
|
||||
// {
|
||||
// DelPamSemi = true
|
||||
// },
|
||||
// Address = 319020415,
|
||||
// Data = new Byte[]
|
||||
// {
|
||||
// // WUP - stay awake
|
||||
// 0x00, 0x00,
|
||||
|
||||
// // LAT
|
||||
// 0x02, 0x00,
|
||||
|
||||
// // MBUS - 7
|
||||
// 0x05, 0x07,
|
||||
|
||||
// // TX
|
||||
// 0x10, 0x00, 0x03,
|
||||
|
||||
// // Provide Pin Auth Level I
|
||||
// // 0x43, 0x01, 0x14, 0x30, 0x68, 0xD0,
|
||||
|
||||
// // Provide Pin Auth Level II
|
||||
// 0x43, 0x02, 0x14, 0x0E, 0x80, 0x40,
|
||||
|
||||
// // Provide Pin Auth Level III
|
||||
// // 0x43, 0x03, 0x63, 0x93, 0x73, 0x22,
|
||||
|
||||
// // Reset credits
|
||||
// // 0x1F, 0x01, 0x03,
|
||||
// }
|
||||
//};
|
||||
//programmingBatch.Run(task);
|
||||
//task.Wait();
|
||||
|
||||
//task = new JusteRegisterTask
|
||||
//{
|
||||
// Cmd = JustSirtMessage.W_PAM,
|
||||
// P1 = new P811
|
||||
// {
|
||||
// DelPamSemi = true
|
||||
// },
|
||||
// Address = 319020415,
|
||||
// Data = new Byte[]
|
||||
// {
|
||||
// // Parametersatz
|
||||
|
||||
|
||||
// // Provide Pin Auth Level I
|
||||
// // 0x43, 0x01, 0x14, 0x30, 0x68, 0xD0,
|
||||
|
||||
// // Provide Pin Auth Level II
|
||||
// 0x43, 0x02, 0x14, 0x0E, 0x80, 0x40,
|
||||
|
||||
// // Provide Pin Auth Level III
|
||||
// // 0x43, 0x03, 0x63, 0x93, 0x73, 0x22,
|
||||
|
||||
// // Reset credits
|
||||
// // 0x1F, 0x01, 0x03,
|
||||
// }
|
||||
//};
|
||||
//programmingBatch.Run(task);
|
||||
//task.Wait();
|
||||
|
||||
Console.ReadKey();
|
||||
|
||||
programmingBatch.Stop();
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// 01020304050607081112131415161718
|
||||
// E6C88800DEB868C0D6A84880CE982840
|
||||
//var encryptionKey = new Byte[] { 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17, 0x18 };
|
||||
//var task = new JusteRegisterProgrammingTask
|
||||
//{
|
||||
// Cmd = JustSirtMessage.W_PAM,
|
||||
// P1 = new P811
|
||||
// {
|
||||
// DelPamSemi = true,
|
||||
// WakeUpCmd = true
|
||||
// },
|
||||
// Address = 4291305226,
|
||||
// // Address = 319020415,
|
||||
// Data = new Byte[]
|
||||
// {
|
||||
// // Change Key
|
||||
// // 0x6C, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17, 0x18,
|
||||
|
||||
// // LED on
|
||||
// // 0x1F, 0x01, 0x08,
|
||||
|
||||
// // Reboot
|
||||
// 0x0E, 0x00,
|
||||
|
||||
// // Provide Pin Auth Level I
|
||||
// // 0x43, 0x01, 0x14, 0x30, 0x68, 0xD0,
|
||||
|
||||
// // Provide Pin Auth Level II
|
||||
// // 0x43, 0x02, 0x14, 0x0E, 0x80, 0x40,
|
||||
|
||||
// // Provide Pin Auth Level III
|
||||
// 0x43, 0x03, 0x63, 0x93, 0x73, 0x22,
|
||||
|
||||
// // Reset credits
|
||||
// // 0x1F, 0x01, 0x03,
|
||||
// },
|
||||
// EncryptionKey = encryptionKey
|
||||
//};
|
||||
//programmingBatch.Run(task);
|
||||
//task.Wait();
|
||||
|
||||
// 55-81-14-00-FF-C8-1F-0A-0B-07-FA-E3-AA-EA-8A-7B-7B-D9-A7-D7-D5-B8-16
|
||||
// 55-81-14-00-FF-C8-1F-0A-0B-07-FA-E3-AA-EA-8A-7B-7B-D9-A7-D7-D5-B8-16
|
||||
|
||||
//var task = new JusteRegisterTask
|
||||
//{
|
||||
// Cmd = JustSirtMessage.W_PAM,
|
||||
// P1 = new P811
|
||||
// {
|
||||
// DelPamSemi = true
|
||||
// },
|
||||
// Address = 319020415,
|
||||
// Data = new Byte[]
|
||||
// {
|
||||
// // WUP - stay awake
|
||||
// 0x00, 0x00,
|
||||
|
||||
// // LAT
|
||||
// 0x02, 0x00,
|
||||
|
||||
// // MBUS - 7
|
||||
// 0x05, 0x07,
|
||||
|
||||
// // TX
|
||||
// 0x10, 0x00, 0x03,
|
||||
|
||||
// // Provide Pin Auth Level I
|
||||
// // 0x43, 0x01, 0x14, 0x30, 0x68, 0xD0,
|
||||
|
||||
// // Provide Pin Auth Level II
|
||||
// 0x43, 0x02, 0x14, 0x0E, 0x80, 0x40,
|
||||
|
||||
// // Provide Pin Auth Level III
|
||||
// // 0x43, 0x03, 0x63, 0x93, 0x73, 0x22,
|
||||
|
||||
// // Reset credits
|
||||
// // 0x1F, 0x01, 0x03,
|
||||
// }
|
||||
//};
|
||||
//programmingBatch.Run(task);
|
||||
//task.Wait();
|
||||
|
||||
//task = new JusteRegisterTask
|
||||
//{
|
||||
// Cmd = JustSirtMessage.W_PAM,
|
||||
// P1 = new P811
|
||||
// {
|
||||
// DelPamSemi = true
|
||||
// },
|
||||
// Address = 319020415,
|
||||
// Data = new Byte[]
|
||||
// {
|
||||
// // Parametersatz
|
||||
|
||||
|
||||
// // Provide Pin Auth Level I
|
||||
// // 0x43, 0x01, 0x14, 0x30, 0x68, 0xD0,
|
||||
|
||||
// // Provide Pin Auth Level II
|
||||
// 0x43, 0x02, 0x14, 0x0E, 0x80, 0x40,
|
||||
|
||||
// // Provide Pin Auth Level III
|
||||
// // 0x43, 0x03, 0x63, 0x93, 0x73, 0x22,
|
||||
|
||||
// // Reset credits
|
||||
// // 0x1F, 0x01, 0x03,
|
||||
// }
|
||||
//};
|
||||
//programmingBatch.Run(task);
|
||||
//task.Wait();
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user