|
|
@ -1144,73 +1144,73 @@ namespace BatCharging.Service.DataRlt
|
|
|
|
CMD1102.startMinute1 = data[9];
|
|
|
|
CMD1102.startMinute1 = data[9];
|
|
|
|
CMD1102.endHour1 = data[10];
|
|
|
|
CMD1102.endHour1 = data[10];
|
|
|
|
CMD1102.endMinute1 = data[11];
|
|
|
|
CMD1102.endMinute1 = data[11];
|
|
|
|
CMD1102.rate1 = (int)ByteUtils.DToUInt32(data, 12);
|
|
|
|
CMD1102.rate1 = ByteUtils.DToUInt32(data, 12);
|
|
|
|
|
|
|
|
|
|
|
|
CMD1102.startHour2 = data[16];
|
|
|
|
CMD1102.startHour2 = data[16];
|
|
|
|
CMD1102.startMinute2 = data[17];
|
|
|
|
CMD1102.startMinute2 = data[17];
|
|
|
|
CMD1102.endHour2 = data[18];
|
|
|
|
CMD1102.endHour2 = data[18];
|
|
|
|
CMD1102.endMinute2 = data[19];
|
|
|
|
CMD1102.endMinute2 = data[19];
|
|
|
|
CMD1102.rate2 = ByteUtils.DToUInt16(data, 20);
|
|
|
|
CMD1102.rate2 = ByteUtils.DToUInt32(data, 20);
|
|
|
|
|
|
|
|
|
|
|
|
CMD1102.startHour3 = data[24];
|
|
|
|
CMD1102.startHour3 = data[24];
|
|
|
|
CMD1102.startMinute3 = data[25];
|
|
|
|
CMD1102.startMinute3 = data[25];
|
|
|
|
CMD1102.endHour3 = data[26];
|
|
|
|
CMD1102.endHour3 = data[26];
|
|
|
|
CMD1102.endMinute3 = data[27];
|
|
|
|
CMD1102.endMinute3 = data[27];
|
|
|
|
CMD1102.rate3 = ByteUtils.DToUInt16(data, 28);
|
|
|
|
CMD1102.rate3 = ByteUtils.DToUInt32(data, 28);
|
|
|
|
|
|
|
|
|
|
|
|
CMD1102.startHour4 = data[32];
|
|
|
|
CMD1102.startHour4 = data[32];
|
|
|
|
CMD1102.startMinute4 = data[33];
|
|
|
|
CMD1102.startMinute4 = data[33];
|
|
|
|
CMD1102.endHour4 = data[34];
|
|
|
|
CMD1102.endHour4 = data[34];
|
|
|
|
CMD1102.endMinute4 = data[35];
|
|
|
|
CMD1102.endMinute4 = data[35];
|
|
|
|
CMD1102.rate4 = ByteUtils.DToUInt16(data, 36);
|
|
|
|
CMD1102.rate4 = ByteUtils.DToUInt32(data, 36);
|
|
|
|
|
|
|
|
|
|
|
|
CMD1102.startHour5 = data[40];
|
|
|
|
CMD1102.startHour5 = data[40];
|
|
|
|
CMD1102.startMinute5 = data[41];
|
|
|
|
CMD1102.startMinute5 = data[41];
|
|
|
|
CMD1102.endHour5 = data[42];
|
|
|
|
CMD1102.endHour5 = data[42];
|
|
|
|
CMD1102.endMinute5 = data[43];
|
|
|
|
CMD1102.endMinute5 = data[43];
|
|
|
|
CMD1102.rate5 = ByteUtils.DToUInt16(data, 44);
|
|
|
|
CMD1102.rate5 = ByteUtils.DToUInt32(data, 44);
|
|
|
|
|
|
|
|
|
|
|
|
CMD1102.startHour6 = data[48];
|
|
|
|
CMD1102.startHour6 = data[48];
|
|
|
|
CMD1102.startMinute6 = data[49];
|
|
|
|
CMD1102.startMinute6 = data[49];
|
|
|
|
CMD1102.endHour6 = data[50];
|
|
|
|
CMD1102.endHour6 = data[50];
|
|
|
|
CMD1102.endMinute6 = data[51];
|
|
|
|
CMD1102.endMinute6 = data[51];
|
|
|
|
CMD1102.rate6 = ByteUtils.DToUInt16(data, 52);
|
|
|
|
CMD1102.rate6 = ByteUtils.DToUInt32(data, 52);
|
|
|
|
|
|
|
|
|
|
|
|
CMD1102.startHour7 = data[56];
|
|
|
|
CMD1102.startHour7 = data[56];
|
|
|
|
CMD1102.startMinute7 = data[57];
|
|
|
|
CMD1102.startMinute7 = data[57];
|
|
|
|
CMD1102.endHour7 = data[58];
|
|
|
|
CMD1102.endHour7 = data[58];
|
|
|
|
CMD1102.endMinute7 = data[59];
|
|
|
|
CMD1102.endMinute7 = data[59];
|
|
|
|
CMD1102.rate7 = ByteUtils.DToUInt16(data, 60);
|
|
|
|
CMD1102.rate7 = ByteUtils.DToUInt32(data, 60);
|
|
|
|
|
|
|
|
|
|
|
|
CMD1102.startHour8 = data[64];
|
|
|
|
CMD1102.startHour8 = data[64];
|
|
|
|
CMD1102.startMinute8 = data[65];
|
|
|
|
CMD1102.startMinute8 = data[65];
|
|
|
|
CMD1102.endHour8 = data[66];
|
|
|
|
CMD1102.endHour8 = data[66];
|
|
|
|
CMD1102.endMinute8 = data[67];
|
|
|
|
CMD1102.endMinute8 = data[67];
|
|
|
|
CMD1102.rate8 = ByteUtils.DToUInt16(data, 68);
|
|
|
|
CMD1102.rate8 = ByteUtils.DToUInt32(data, 68);
|
|
|
|
|
|
|
|
|
|
|
|
CMD1102.startHour9 = data[72];
|
|
|
|
CMD1102.startHour9 = data[72];
|
|
|
|
CMD1102.startMinute9 = data[73];
|
|
|
|
CMD1102.startMinute9 = data[73];
|
|
|
|
CMD1102.endHour9 = data[74];
|
|
|
|
CMD1102.endHour9 = data[74];
|
|
|
|
CMD1102.endMinute9 = data[75];
|
|
|
|
CMD1102.endMinute9 = data[75];
|
|
|
|
CMD1102.rate9 = ByteUtils.DToUInt16(data, 76);
|
|
|
|
CMD1102.rate9 = ByteUtils.DToUInt32(data, 76);
|
|
|
|
|
|
|
|
|
|
|
|
CMD1102.startHour10 = data[80];
|
|
|
|
CMD1102.startHour10 = data[80];
|
|
|
|
CMD1102.startMinute10 = data[81];
|
|
|
|
CMD1102.startMinute10 = data[81];
|
|
|
|
CMD1102.endHour10 = data[82];
|
|
|
|
CMD1102.endHour10 = data[82];
|
|
|
|
CMD1102.endMinute10 = data[83];
|
|
|
|
CMD1102.endMinute10 = data[83];
|
|
|
|
CMD1102.rate10 = ByteUtils.DToUInt16(data, 84);
|
|
|
|
CMD1102.rate10 = ByteUtils.DToUInt32(data, 84);
|
|
|
|
|
|
|
|
|
|
|
|
CMD1102.startHour11 = data[88];
|
|
|
|
CMD1102.startHour11 = data[88];
|
|
|
|
CMD1102.startMinute11 = data[89];
|
|
|
|
CMD1102.startMinute11 = data[89];
|
|
|
|
CMD1102.endHour11 = data[90];
|
|
|
|
CMD1102.endHour11 = data[90];
|
|
|
|
CMD1102.endMinute11 = data[91];
|
|
|
|
CMD1102.endMinute11 = data[91];
|
|
|
|
CMD1102.rate11 = ByteUtils.DToUInt16(data, 92);
|
|
|
|
CMD1102.rate11 = ByteUtils.DToUInt32(data, 92);
|
|
|
|
|
|
|
|
|
|
|
|
CMD1102.startHour12 = data[96];
|
|
|
|
CMD1102.startHour12 = data[96];
|
|
|
|
CMD1102.startMinute12 = data[97];
|
|
|
|
CMD1102.startMinute12 = data[97];
|
|
|
|
CMD1102.endHour12 = data[98];
|
|
|
|
CMD1102.endHour12 = data[98];
|
|
|
|
CMD1102.endMinute12 = data[99];
|
|
|
|
CMD1102.endMinute12 = data[99];
|
|
|
|
CMD1102.rate12 = ByteUtils.DToUInt16(data, 100);
|
|
|
|
CMD1102.rate12 = ByteUtils.DToUInt32(data, 100);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return CMD1102;
|
|
|
|
return CMD1102;
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -1250,67 +1250,67 @@ namespace BatCharging.Service.DataRlt
|
|
|
|
CMD1108.startMinute2 = data[17];
|
|
|
|
CMD1108.startMinute2 = data[17];
|
|
|
|
CMD1108.endHour2 = data[18];
|
|
|
|
CMD1108.endHour2 = data[18];
|
|
|
|
CMD1108.endMinute2 = data[19];
|
|
|
|
CMD1108.endMinute2 = data[19];
|
|
|
|
CMD1108.rate2 = ByteUtils.DToUInt16(data, 20);
|
|
|
|
CMD1108.rate2 = ByteUtils.DToUInt32(data, 20);
|
|
|
|
|
|
|
|
|
|
|
|
CMD1108.startHour3 = data[24];
|
|
|
|
CMD1108.startHour3 = data[24];
|
|
|
|
CMD1108.startMinute3 = data[25];
|
|
|
|
CMD1108.startMinute3 = data[25];
|
|
|
|
CMD1108.endHour3 = data[26];
|
|
|
|
CMD1108.endHour3 = data[26];
|
|
|
|
CMD1108.endMinute3 = data[27];
|
|
|
|
CMD1108.endMinute3 = data[27];
|
|
|
|
CMD1108.rate3 = ByteUtils.DToUInt16(data, 28);
|
|
|
|
CMD1108.rate3 = ByteUtils.DToUInt32(data, 28);
|
|
|
|
|
|
|
|
|
|
|
|
CMD1108.startHour4 = data[32];
|
|
|
|
CMD1108.startHour4 = data[32];
|
|
|
|
CMD1108.startMinute4 = data[33];
|
|
|
|
CMD1108.startMinute4 = data[33];
|
|
|
|
CMD1108.endHour4 = data[34];
|
|
|
|
CMD1108.endHour4 = data[34];
|
|
|
|
CMD1108.endMinute4 = data[35];
|
|
|
|
CMD1108.endMinute4 = data[35];
|
|
|
|
CMD1108.rate4 = ByteUtils.DToUInt16(data, 36);
|
|
|
|
CMD1108.rate4 = ByteUtils.DToUInt32(data, 36);
|
|
|
|
|
|
|
|
|
|
|
|
CMD1108.startHour5 = data[40];
|
|
|
|
CMD1108.startHour5 = data[40];
|
|
|
|
CMD1108.startMinute5 = data[41];
|
|
|
|
CMD1108.startMinute5 = data[41];
|
|
|
|
CMD1108.endHour5 = data[42];
|
|
|
|
CMD1108.endHour5 = data[42];
|
|
|
|
CMD1108.endMinute5 = data[43];
|
|
|
|
CMD1108.endMinute5 = data[43];
|
|
|
|
CMD1108.rate5 = ByteUtils.DToUInt16(data, 44);
|
|
|
|
CMD1108.rate5 = ByteUtils.DToUInt32(data, 44);
|
|
|
|
|
|
|
|
|
|
|
|
CMD1108.startHour6 = data[48];
|
|
|
|
CMD1108.startHour6 = data[48];
|
|
|
|
CMD1108.startMinute6 = data[49];
|
|
|
|
CMD1108.startMinute6 = data[49];
|
|
|
|
CMD1108.endHour6 = data[50];
|
|
|
|
CMD1108.endHour6 = data[50];
|
|
|
|
CMD1108.endMinute6 = data[51];
|
|
|
|
CMD1108.endMinute6 = data[51];
|
|
|
|
CMD1108.rate6 = ByteUtils.DToUInt16(data, 52);
|
|
|
|
CMD1108.rate6 = ByteUtils.DToUInt32(data, 52);
|
|
|
|
|
|
|
|
|
|
|
|
CMD1108.startHour7 = data[56];
|
|
|
|
CMD1108.startHour7 = data[56];
|
|
|
|
CMD1108.startMinute7 = data[57];
|
|
|
|
CMD1108.startMinute7 = data[57];
|
|
|
|
CMD1108.endHour7 = data[58];
|
|
|
|
CMD1108.endHour7 = data[58];
|
|
|
|
CMD1108.endMinute7 = data[59];
|
|
|
|
CMD1108.endMinute7 = data[59];
|
|
|
|
CMD1108.rate7 = ByteUtils.DToUInt16(data, 60);
|
|
|
|
CMD1108.rate7 = ByteUtils.DToUInt32(data, 60);
|
|
|
|
|
|
|
|
|
|
|
|
CMD1108.startHour8 = data[64];
|
|
|
|
CMD1108.startHour8 = data[64];
|
|
|
|
CMD1108.startMinute8 = data[65];
|
|
|
|
CMD1108.startMinute8 = data[65];
|
|
|
|
CMD1108.endHour8 = data[66];
|
|
|
|
CMD1108.endHour8 = data[66];
|
|
|
|
CMD1108.endMinute8 = data[67];
|
|
|
|
CMD1108.endMinute8 = data[67];
|
|
|
|
CMD1108.rate8 = ByteUtils.DToUInt16(data, 68);
|
|
|
|
CMD1108.rate8 = ByteUtils.DToUInt32(data, 68);
|
|
|
|
|
|
|
|
|
|
|
|
CMD1108.startHour9 = data[72];
|
|
|
|
CMD1108.startHour9 = data[72];
|
|
|
|
CMD1108.startMinute9 = data[73];
|
|
|
|
CMD1108.startMinute9 = data[73];
|
|
|
|
CMD1108.endHour9 = data[74];
|
|
|
|
CMD1108.endHour9 = data[74];
|
|
|
|
CMD1108.endMinute9 = data[75];
|
|
|
|
CMD1108.endMinute9 = data[75];
|
|
|
|
CMD1108.rate9 = ByteUtils.DToUInt16(data, 76);
|
|
|
|
CMD1108.rate9 = ByteUtils.DToUInt32(data, 76);
|
|
|
|
|
|
|
|
|
|
|
|
CMD1108.startHour10 = data[80];
|
|
|
|
CMD1108.startHour10 = data[80];
|
|
|
|
CMD1108.startMinute10 = data[81];
|
|
|
|
CMD1108.startMinute10 = data[81];
|
|
|
|
CMD1108.endHour10 = data[82];
|
|
|
|
CMD1108.endHour10 = data[82];
|
|
|
|
CMD1108.endMinute10 = data[83];
|
|
|
|
CMD1108.endMinute10 = data[83];
|
|
|
|
CMD1108.rate10 = ByteUtils.DToUInt16(data, 84);
|
|
|
|
CMD1108.rate10 = ByteUtils.DToUInt32(data, 84);
|
|
|
|
|
|
|
|
|
|
|
|
CMD1108.startHour11 = data[88];
|
|
|
|
CMD1108.startHour11 = data[88];
|
|
|
|
CMD1108.startMinute11 = data[89];
|
|
|
|
CMD1108.startMinute11 = data[89];
|
|
|
|
CMD1108.endHour11 = data[90];
|
|
|
|
CMD1108.endHour11 = data[90];
|
|
|
|
CMD1108.endMinute11 = data[91];
|
|
|
|
CMD1108.endMinute11 = data[91];
|
|
|
|
CMD1108.rate11 = ByteUtils.DToUInt16(data, 92);
|
|
|
|
CMD1108.rate11 = ByteUtils.DToUInt32(data, 92);
|
|
|
|
|
|
|
|
|
|
|
|
CMD1108.startHour12 = data[96];
|
|
|
|
CMD1108.startHour12 = data[96];
|
|
|
|
CMD1108.startMinute12 = data[97];
|
|
|
|
CMD1108.startMinute12 = data[97];
|
|
|
|
CMD1108.endHour12 = data[98];
|
|
|
|
CMD1108.endHour12 = data[98];
|
|
|
|
CMD1108.endMinute12 = data[99];
|
|
|
|
CMD1108.endMinute12 = data[99];
|
|
|
|
CMD1108.rate12 = ByteUtils.DToUInt16(data, 100);
|
|
|
|
CMD1108.rate12 = ByteUtils.DToUInt32(data, 100);
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return CMD1108;
|
|
|
|
return CMD1108;
|
|
|
@ -1321,8 +1321,7 @@ namespace BatCharging.Service.DataRlt
|
|
|
|
if (data != null && data.Length > 0)
|
|
|
|
if (data != null && data.Length > 0)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
CMD1302 = new CMD1302();
|
|
|
|
CMD1302 = new CMD1302();
|
|
|
|
CMD1302.value01 = ByteUtils.DToUInt16(data, 8);
|
|
|
|
|
|
|
|
CMD1302.value02 = ByteUtils.DToUInt16(data, 10);
|
|
|
|
|
|
|
|
CMD1302.value03 = Encoding.ASCII.GetString(data, 12, 32);
|
|
|
|
CMD1302.value03 = Encoding.ASCII.GetString(data, 12, 32);
|
|
|
|
CMD1302.value04 = data[44];
|
|
|
|
CMD1302.value04 = data[44];
|
|
|
|
CMD1302.value05 = data[45];
|
|
|
|
CMD1302.value05 = data[45];
|
|
|
@ -1337,8 +1336,7 @@ namespace BatCharging.Service.DataRlt
|
|
|
|
if (data != null && data.Length > 0)
|
|
|
|
if (data != null && data.Length > 0)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
CMD1402 = new CMD1402();
|
|
|
|
CMD1402 = new CMD1402();
|
|
|
|
CMD1402.value01 = ByteUtils.DToUInt16(data, 8);
|
|
|
|
|
|
|
|
CMD1402.value02 = ByteUtils.DToUInt16(data, 10);
|
|
|
|
|
|
|
|
CMD1402.value03 = data[12];
|
|
|
|
CMD1402.value03 = data[12];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return CMD1402;
|
|
|
|
return CMD1402;
|
|
|
@ -1349,8 +1347,7 @@ namespace BatCharging.Service.DataRlt
|
|
|
|
if (data != null && data.Length > 0)
|
|
|
|
if (data != null && data.Length > 0)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
CMD1403 = new CMD1403();
|
|
|
|
CMD1403 = new CMD1403();
|
|
|
|
CMD1403.value01 = ByteUtils.DToUInt16(data, 8);
|
|
|
|
|
|
|
|
CMD1403.value02 = ByteUtils.DToUInt16(data, 10);
|
|
|
|
|
|
|
|
CMD1403.value03 = data[12];
|
|
|
|
CMD1403.value03 = data[12];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return CMD1403;
|
|
|
|
return CMD1403;
|
|
|
@ -1361,8 +1358,7 @@ namespace BatCharging.Service.DataRlt
|
|
|
|
if (data != null && data.Length > 0)
|
|
|
|
if (data != null && data.Length > 0)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
CMD1407 = new CMD1407();
|
|
|
|
CMD1407 = new CMD1407();
|
|
|
|
CMD1407.value01 = ByteUtils.DToUInt16(data, 8);
|
|
|
|
|
|
|
|
CMD1407.value02 = ByteUtils.DToUInt16(data, 10);
|
|
|
|
|
|
|
|
CMD1407.value03 = data[12];
|
|
|
|
CMD1407.value03 = data[12];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return CMD1407;
|
|
|
|
return CMD1407;
|
|
|
@ -1385,10 +1381,9 @@ namespace BatCharging.Service.DataRlt
|
|
|
|
if (data != null && data.Length > 0)
|
|
|
|
if (data != null && data.Length > 0)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
CMD1503 = new CMD1503();
|
|
|
|
CMD1503 = new CMD1503();
|
|
|
|
CMD1503.value01 = ByteUtils.DToUInt16(data, 8);
|
|
|
|
|
|
|
|
CMD1503.value02 = ByteUtils.DToUInt16(data, 10);
|
|
|
|
CMD1503.value03 = ByteUtils.DToUInt32(data, 12);
|
|
|
|
CMD1503.value03 = ByteUtils.DToUInt16(data, 12);
|
|
|
|
CMD1503.value04 = ByteUtils.DToUInt32(data, 16);
|
|
|
|
CMD1503.value04 = ByteUtils.DToUInt16(data, 16);
|
|
|
|
|
|
|
|
CMD1503.value05 = Encoding.ASCII.GetString(data, 20, (data.Length - 21)); ;
|
|
|
|
CMD1503.value05 = Encoding.ASCII.GetString(data, 20, (data.Length - 21)); ;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return CMD1503;
|
|
|
|
return CMD1503;
|
|
|
@ -1399,21 +1394,8 @@ namespace BatCharging.Service.DataRlt
|
|
|
|
if (data != null && data.Length > 0)
|
|
|
|
if (data != null && data.Length > 0)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
CMD1505 = new CMD1505();
|
|
|
|
CMD1505 = new CMD1505();
|
|
|
|
CMD1505.value01 = ByteUtils.DToUInt16(data, 8);
|
|
|
|
|
|
|
|
CMD1505.value02 = ByteUtils.DToUInt16(data, 10);
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return CMD1505;
|
|
|
|
return CMD1505;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
public CMD1506 ConCMD1506(byte[] data)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
CMD1506 CMD1506 = null;
|
|
|
|
|
|
|
|
if (data != null && data.Length > 0)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
CMD1506 = new CMD1506();
|
|
|
|
|
|
|
|
CMD1506.value01 = ByteUtils.DToUInt16(data, 8);
|
|
|
|
|
|
|
|
CMD1506.value02 = ByteUtils.DToUInt16(data, 10);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
return CMD1506;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|