|
|
@ -1450,7 +1450,7 @@ namespace BatCharging.Service
|
|
|
|
|
|
|
|
|
|
|
|
public byte[] SendRCMD1103(out APDUModel APDUModel, CMD1103 CMD)
|
|
|
|
public byte[] SendRCMD1103(out APDUModel APDUModel, CMD1103 CMD)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
byte[] result = null;
|
|
|
|
byte[] result;
|
|
|
|
|
|
|
|
|
|
|
|
APDUModel model = new APDUModel();
|
|
|
|
APDUModel model = new APDUModel();
|
|
|
|
model.OriginDomain1 = 0xAA;
|
|
|
|
model.OriginDomain1 = 0xAA;
|
|
|
@ -1483,76 +1483,76 @@ namespace BatCharging.Service
|
|
|
|
{
|
|
|
|
{
|
|
|
|
List<byte> lstContent = new List<byte>();
|
|
|
|
List<byte> lstContent = new List<byte>();
|
|
|
|
|
|
|
|
|
|
|
|
lstContent.AddRange(BitConverter.GetBytes(CMD.startHour1));
|
|
|
|
lstContent.Add(CMD.startHour1);
|
|
|
|
lstContent.AddRange(BitConverter.GetBytes(CMD.startMinute1));
|
|
|
|
lstContent.Add(CMD.startMinute1);
|
|
|
|
lstContent.AddRange(BitConverter.GetBytes(CMD.endHour1));
|
|
|
|
lstContent.Add(CMD.endHour1);
|
|
|
|
lstContent.AddRange(BitConverter.GetBytes(CMD.endMinute1));
|
|
|
|
lstContent.Add(CMD.endMinute1);
|
|
|
|
lstContent.AddRange(BitConverter.GetBytes(CMD.rate1));
|
|
|
|
lstContent.AddRange(BitConverter.GetBytes(CMD.rate1));
|
|
|
|
|
|
|
|
|
|
|
|
lstContent.AddRange(BitConverter.GetBytes(CMD.startHour2));
|
|
|
|
lstContent.Add(CMD.startHour2);
|
|
|
|
lstContent.AddRange(BitConverter.GetBytes(CMD.startMinute2));
|
|
|
|
lstContent.Add(CMD.startMinute2);
|
|
|
|
lstContent.AddRange(BitConverter.GetBytes(CMD.endHour2));
|
|
|
|
lstContent.Add(CMD.endHour2);
|
|
|
|
lstContent.AddRange(BitConverter.GetBytes(CMD.endMinute2));
|
|
|
|
lstContent.Add(CMD.endMinute2);
|
|
|
|
lstContent.AddRange(BitConverter.GetBytes(CMD.rate2));
|
|
|
|
lstContent.AddRange(BitConverter.GetBytes(CMD.rate2));
|
|
|
|
|
|
|
|
|
|
|
|
lstContent.AddRange(BitConverter.GetBytes(CMD.startHour3));
|
|
|
|
lstContent.Add(CMD.startHour3);
|
|
|
|
lstContent.AddRange(BitConverter.GetBytes(CMD.startMinute3));
|
|
|
|
lstContent.Add(CMD.startMinute3);
|
|
|
|
lstContent.AddRange(BitConverter.GetBytes(CMD.endHour3));
|
|
|
|
lstContent.Add(CMD.endHour3);
|
|
|
|
lstContent.AddRange(BitConverter.GetBytes(CMD.endMinute3));
|
|
|
|
lstContent.Add(CMD.endMinute3);
|
|
|
|
lstContent.AddRange(BitConverter.GetBytes(CMD.rate3));
|
|
|
|
lstContent.AddRange(BitConverter.GetBytes(CMD.rate3));
|
|
|
|
|
|
|
|
|
|
|
|
lstContent.AddRange(BitConverter.GetBytes(CMD.startHour4));
|
|
|
|
lstContent.Add(CMD.startHour4);
|
|
|
|
lstContent.AddRange(BitConverter.GetBytes(CMD.startMinute4));
|
|
|
|
lstContent.Add(CMD.startMinute4);
|
|
|
|
lstContent.AddRange(BitConverter.GetBytes(CMD.endHour4));
|
|
|
|
lstContent.Add(CMD.endHour4);
|
|
|
|
lstContent.AddRange(BitConverter.GetBytes(CMD.endMinute4));
|
|
|
|
lstContent.Add(CMD.endMinute4);
|
|
|
|
lstContent.AddRange(BitConverter.GetBytes(CMD.rate4));
|
|
|
|
lstContent.AddRange(BitConverter.GetBytes(CMD.rate4));
|
|
|
|
|
|
|
|
|
|
|
|
lstContent.AddRange(BitConverter.GetBytes(CMD.startHour5));
|
|
|
|
lstContent.Add(CMD.startHour5);
|
|
|
|
lstContent.AddRange(BitConverter.GetBytes(CMD.startMinute5));
|
|
|
|
lstContent.Add(CMD.startMinute5);
|
|
|
|
lstContent.AddRange(BitConverter.GetBytes(CMD.endHour5));
|
|
|
|
lstContent.Add(CMD.endHour5);
|
|
|
|
lstContent.AddRange(BitConverter.GetBytes(CMD.endMinute5));
|
|
|
|
lstContent.Add(CMD.endMinute5);
|
|
|
|
lstContent.AddRange(BitConverter.GetBytes(CMD.rate5));
|
|
|
|
lstContent.AddRange(BitConverter.GetBytes(CMD.rate5));
|
|
|
|
|
|
|
|
|
|
|
|
lstContent.AddRange(BitConverter.GetBytes(CMD.startHour6));
|
|
|
|
lstContent.Add(CMD.startHour6);
|
|
|
|
lstContent.AddRange(BitConverter.GetBytes(CMD.startMinute6));
|
|
|
|
lstContent.Add(CMD.startMinute6);
|
|
|
|
lstContent.AddRange(BitConverter.GetBytes(CMD.endHour6));
|
|
|
|
lstContent.Add(CMD.endHour6);
|
|
|
|
lstContent.AddRange(BitConverter.GetBytes(CMD.endMinute6));
|
|
|
|
lstContent.Add(CMD.endMinute6);
|
|
|
|
lstContent.AddRange(BitConverter.GetBytes(CMD.rate6));
|
|
|
|
lstContent.AddRange(BitConverter.GetBytes(CMD.rate6));
|
|
|
|
|
|
|
|
|
|
|
|
lstContent.AddRange(BitConverter.GetBytes(CMD.startHour7));
|
|
|
|
lstContent.Add(CMD.startHour7);
|
|
|
|
lstContent.AddRange(BitConverter.GetBytes(CMD.startMinute7));
|
|
|
|
lstContent.Add(CMD.startMinute7);
|
|
|
|
lstContent.AddRange(BitConverter.GetBytes(CMD.endHour7));
|
|
|
|
lstContent.Add(CMD.endHour7);
|
|
|
|
lstContent.AddRange(BitConverter.GetBytes(CMD.endMinute7));
|
|
|
|
lstContent.Add(CMD.endMinute7);
|
|
|
|
lstContent.AddRange(BitConverter.GetBytes(CMD.rate7));
|
|
|
|
lstContent.AddRange(BitConverter.GetBytes(CMD.rate7));
|
|
|
|
|
|
|
|
|
|
|
|
lstContent.AddRange(BitConverter.GetBytes(CMD.startHour8));
|
|
|
|
lstContent.Add(CMD.startHour8);
|
|
|
|
lstContent.AddRange(BitConverter.GetBytes(CMD.startMinute8));
|
|
|
|
lstContent.Add(CMD.startMinute8);
|
|
|
|
lstContent.AddRange(BitConverter.GetBytes(CMD.endHour8));
|
|
|
|
lstContent.Add(CMD.endHour8);
|
|
|
|
lstContent.AddRange(BitConverter.GetBytes(CMD.endMinute8));
|
|
|
|
lstContent.Add(CMD.endMinute8);
|
|
|
|
lstContent.AddRange(BitConverter.GetBytes(CMD.rate8));
|
|
|
|
lstContent.AddRange(BitConverter.GetBytes(CMD.rate8));
|
|
|
|
|
|
|
|
|
|
|
|
lstContent.AddRange(BitConverter.GetBytes(CMD.startHour9));
|
|
|
|
lstContent.Add(CMD.startHour9);
|
|
|
|
lstContent.AddRange(BitConverter.GetBytes(CMD.startMinute9));
|
|
|
|
lstContent.Add(CMD.startMinute9);
|
|
|
|
lstContent.AddRange(BitConverter.GetBytes(CMD.endHour9));
|
|
|
|
lstContent.Add(CMD.endHour9);
|
|
|
|
lstContent.AddRange(BitConverter.GetBytes(CMD.endMinute9));
|
|
|
|
lstContent.Add(CMD.endMinute9);
|
|
|
|
lstContent.AddRange(BitConverter.GetBytes(CMD.rate9));
|
|
|
|
lstContent.AddRange(BitConverter.GetBytes(CMD.rate9));
|
|
|
|
|
|
|
|
|
|
|
|
lstContent.AddRange(BitConverter.GetBytes(CMD.startHour10));
|
|
|
|
lstContent.Add(CMD.startHour10);
|
|
|
|
lstContent.AddRange(BitConverter.GetBytes(CMD.startMinute10));
|
|
|
|
lstContent.Add(CMD.startMinute10);
|
|
|
|
lstContent.AddRange(BitConverter.GetBytes(CMD.endHour10));
|
|
|
|
lstContent.Add(CMD.endHour10);
|
|
|
|
lstContent.AddRange(BitConverter.GetBytes(CMD.endMinute10));
|
|
|
|
lstContent.Add(CMD.endMinute10);
|
|
|
|
lstContent.AddRange(BitConverter.GetBytes(CMD.rate10));
|
|
|
|
lstContent.AddRange(BitConverter.GetBytes(CMD.rate10));
|
|
|
|
|
|
|
|
|
|
|
|
lstContent.AddRange(BitConverter.GetBytes(CMD.startHour11));
|
|
|
|
lstContent.Add(CMD.startHour11);
|
|
|
|
lstContent.AddRange(BitConverter.GetBytes(CMD.startMinute11));
|
|
|
|
lstContent.Add(CMD.startMinute11);
|
|
|
|
lstContent.AddRange(BitConverter.GetBytes(CMD.endHour11));
|
|
|
|
lstContent.Add(CMD.endHour11);
|
|
|
|
lstContent.AddRange(BitConverter.GetBytes(CMD.endMinute11));
|
|
|
|
lstContent.Add(CMD.endMinute11);
|
|
|
|
lstContent.AddRange(BitConverter.GetBytes(CMD.rate11));
|
|
|
|
lstContent.AddRange(BitConverter.GetBytes(CMD.rate11));
|
|
|
|
|
|
|
|
|
|
|
|
lstContent.AddRange(BitConverter.GetBytes(CMD.startHour12));
|
|
|
|
lstContent.Add(CMD.startHour12);
|
|
|
|
lstContent.AddRange(BitConverter.GetBytes(CMD.startMinute12));
|
|
|
|
lstContent.Add(CMD.startMinute12);
|
|
|
|
lstContent.AddRange(BitConverter.GetBytes(CMD.endHour12));
|
|
|
|
lstContent.Add(CMD.endHour12);
|
|
|
|
lstContent.AddRange(BitConverter.GetBytes(CMD.endMinute12));
|
|
|
|
lstContent.Add(CMD.endMinute12);
|
|
|
|
lstContent.AddRange(BitConverter.GetBytes(CMD.rate12));
|
|
|
|
lstContent.AddRange(BitConverter.GetBytes(CMD.rate12));
|
|
|
|
|
|
|
|
|
|
|
|
results = lstContent.ToArray();
|
|
|
|
results = lstContent.ToArray();
|
|
|
|