EOL new properties

This commit is contained in:
Stoyan Zlatev
2024-09-04 11:59:57 +02:00
parent c08341ef6f
commit 9260059bb7
8 changed files with 334 additions and 249 deletions
+79 -78
View File
@@ -17,27 +17,69 @@
{
// 01020304050607081112131415161718
// E6C88800DEB868C0D6A84880CE982840
//var encryptionKey = new Byte[] { 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17, 0x18 };
var encryptionKey = new Byte[] { 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17, 0x18 };
var task = new JusteRegisterTask
{
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, 0x0,
// 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,
// WakeUpCmd = true
// DelPamSemi = true
// },
// Address = 4291305226,
// // Address = 319020415,
// Address = 319020415,
// Data = new Byte[]
// {
// // Change Key
// // 0x6C, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17, 0x18,
// // WUP - stay awake
// 0x00, 0x00,
// // LED on
// 0x1F, 0x01, 0x08,
// // LAT
// 0x02, 0x00,
// // Reboot
// // 0x0E, 0x0,
// // MBUS - 7
// 0x05, 0x07,
// // TX
// 0x10, 0x00, 0x03,
// // Provide Pin Auth Level I
// // 0x43, 0x01, 0x14, 0x30, 0x68, 0xD0,
@@ -50,85 +92,44 @@
// // 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
//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 I
// // 0x43, 0x01, 0x14, 0x30, 0x68, 0xD0,
// Provide Pin Auth Level II
0x43, 0x02, 0x14, 0x0E, 0x80, 0x40,
// // Provide Pin Auth Level II
// 0x43, 0x02, 0x14, 0x0E, 0x80, 0x40,
// Provide Pin Auth Level III
// 0x43, 0x03, 0x63, 0x93, 0x73, 0x22,
// // Provide Pin Auth Level III
// // 0x43, 0x03, 0x63, 0x93, 0x73, 0x22,
// Reset credits
// 0x1F, 0x01, 0x03,
}
};
programmingBatch.Run(task);
task.Wait();
// // Reset credits
// // 0x1F, 0x01, 0x03,
// }
//};
//programmingBatch.Run(task);
//task.Wait();
Console.ReadKey();
programmingBatch.Stop();
}
var x = "".Replace(' ', '%');
}