|
|
|
@ -268,35 +268,36 @@ namespace BatCharging.Service.DataRlt
|
|
|
|
|
CMD110.value08 = ByteUtils.DToUInt32(data, 53);
|
|
|
|
|
byte version1 = data[58];
|
|
|
|
|
byte version2 = data[59];
|
|
|
|
|
CMD110.value09 = "v" + version1.ToString() + version2.ToString();
|
|
|
|
|
CMD110.value10 = data[60];
|
|
|
|
|
CMD110.value11 = ByteUtils.DToUInt32(data, 61);
|
|
|
|
|
CMD110.value12 = ByteUtils.DToUInt32(data, 65);
|
|
|
|
|
CMD110.value13 = ByteUtils.DToUInt32(data, 69);
|
|
|
|
|
CMD110.value14 = ByteUtils.DToUInt32(data, 73);
|
|
|
|
|
CMD110.value15 = ByteUtils.DToUInt16(data, 77);
|
|
|
|
|
CMD110.value16 = data[79];
|
|
|
|
|
CMD110.value17 = data[80];
|
|
|
|
|
CMD110.value18 = ByteUtils.DToUInt32(data, 81);
|
|
|
|
|
CMD110.value19 = data[85];
|
|
|
|
|
CMD110.value20 = data[86];
|
|
|
|
|
CMD110.value21 = Encoding.ASCII.GetString(data, 87, 17);
|
|
|
|
|
|
|
|
|
|
byte VersionSerialNum = data[104];
|
|
|
|
|
byte day = data[105];
|
|
|
|
|
byte month = data[106];
|
|
|
|
|
ushort year = ByteUtils.DToUInt16(data, 107);
|
|
|
|
|
byte version3 = data[60];
|
|
|
|
|
CMD110.value09 = "v" + version1.ToString() + version2.ToString() + version3.ToString();
|
|
|
|
|
CMD110.value10 = data[61];
|
|
|
|
|
CMD110.value11 = ByteUtils.DToUInt32(data, 62);
|
|
|
|
|
CMD110.value12 = ByteUtils.DToUInt32(data, 66);
|
|
|
|
|
CMD110.value13 = ByteUtils.DToUInt32(data, 70);
|
|
|
|
|
CMD110.value14 = ByteUtils.DToUInt32(data, 74);
|
|
|
|
|
CMD110.value15 = ByteUtils.DToUInt16(data, 78);
|
|
|
|
|
CMD110.value16 = data[80];
|
|
|
|
|
CMD110.value17 = data[81];
|
|
|
|
|
CMD110.value18 = ByteUtils.DToUInt32(data, 82);
|
|
|
|
|
CMD110.value19 = data[86];
|
|
|
|
|
CMD110.value20 = data[87];
|
|
|
|
|
CMD110.value21 = Encoding.ASCII.GetString(data, 88, 17);
|
|
|
|
|
|
|
|
|
|
byte VersionSerialNum = data[105];
|
|
|
|
|
byte day = data[106];
|
|
|
|
|
byte month = data[107];
|
|
|
|
|
ushort year = ByteUtils.DToUInt16(data, 108);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
CMD110.value22 = VersionSerialNum.ToString() + year.ToString() + "年" + month.ToString() + "月" + day.ToString() + "日";
|
|
|
|
|
CMD110.value23 = (float)(ByteUtils.DToUInt32(data, 112) * 0.1);
|
|
|
|
|
CMD110.value24 = (float)(ByteUtils.DToUInt32(data, 116) * 0.1);
|
|
|
|
|
CMD110.value25 = (float)(ByteUtils.DToUInt32(data, 120) * 0.1);
|
|
|
|
|
CMD110.value26 = (float)(ByteUtils.DToUInt32(data, 124) * 0.1);
|
|
|
|
|
CMD110.value27 = data[128];
|
|
|
|
|
CMD110.value28 = (float)(ByteUtils.DToUInt16(data, 129) * 0.1);
|
|
|
|
|
CMD110.value29 = (float)(ByteUtils.DToUInt32(data, 131) * 0.1);
|
|
|
|
|
CMD110.value30 = Encoding.ASCII.GetString(data, 135, 32);
|
|
|
|
|
CMD110.value23 = (float)(ByteUtils.DToUInt32(data, 113) * 0.1);
|
|
|
|
|
CMD110.value24 = (float)(ByteUtils.DToUInt32(data, 117) * 0.1);
|
|
|
|
|
CMD110.value25 = (float)(ByteUtils.DToUInt32(data, 121) * 0.1);
|
|
|
|
|
CMD110.value26 = (float)(ByteUtils.DToUInt32(data, 125) * 0.1);
|
|
|
|
|
CMD110.value27 = data[129];
|
|
|
|
|
CMD110.value28 = (float)(ByteUtils.DToUInt16(data, 130) * 0.1);
|
|
|
|
|
CMD110.value29 = (float)(ByteUtils.DToUInt32(data, 132) * 0.1);
|
|
|
|
|
CMD110.value30 = Encoding.ASCII.GetString(data, 136, 32);
|
|
|
|
|
}
|
|
|
|
|
return CMD110;
|
|
|
|
|
}
|
|
|
|
@ -409,132 +410,132 @@ namespace BatCharging.Service.DataRlt
|
|
|
|
|
CMD202.value15 = (ByteUtils.DToUInt32(data, 112) * 0.01).ToString("F2");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
CMD202.value26 = ByteUtils.DToUInt32(data, 167);
|
|
|
|
|
CMD202.value27 = ByteUtils.DToUInt32(data, 171);
|
|
|
|
|
CMD202.value28 = ByteUtils.DToUInt32(data, 175);
|
|
|
|
|
CMD202.value29 = ByteUtils.DToUInt32(data, 179);
|
|
|
|
|
CMD202.value30 = ByteUtils.DToUInt32(data, 183);
|
|
|
|
|
CMD202.value31 = ByteUtils.DToUInt32(data, 187);
|
|
|
|
|
CMD202.value32 = ByteUtils.DToUInt32(data, 191);
|
|
|
|
|
CMD202.value33 = ByteUtils.DToUInt32(data, 195);
|
|
|
|
|
CMD202.value34 = ByteUtils.DToUInt32(data, 199);
|
|
|
|
|
CMD202.value35 = ByteUtils.DToUInt32(data, 203);
|
|
|
|
|
CMD202.value36 = ByteUtils.DToUInt32(data, 207);
|
|
|
|
|
CMD202.value37 = ByteUtils.DToUInt32(data, 211);
|
|
|
|
|
CMD202.value38 = ByteUtils.DToUInt32(data, 215);
|
|
|
|
|
CMD202.value39 = ByteUtils.DToUInt32(data, 219);
|
|
|
|
|
CMD202.value40 = ByteUtils.DToUInt32(data, 223);
|
|
|
|
|
CMD202.value41 = ByteUtils.DToUInt32(data, 227);
|
|
|
|
|
CMD202.value42 = ByteUtils.DToUInt32(data, 231);
|
|
|
|
|
CMD202.value43 = ByteUtils.DToUInt32(data, 235);
|
|
|
|
|
CMD202.value44 = ByteUtils.DToUInt32(data, 239);
|
|
|
|
|
CMD202.value45 = ByteUtils.DToUInt32(data, 243);
|
|
|
|
|
CMD202.value46 = ByteUtils.DToUInt32(data, 247);
|
|
|
|
|
CMD202.value47 = ByteUtils.DToUInt32(data, 251);
|
|
|
|
|
CMD202.value48 = ByteUtils.DToUInt32(data, 255);
|
|
|
|
|
CMD202.value49 = ByteUtils.DToUInt32(data, 259);
|
|
|
|
|
CMD202.value50 = ByteUtils.DToUInt32(data, 263);
|
|
|
|
|
CMD202.value51 = ByteUtils.DToUInt32(data, 267);
|
|
|
|
|
CMD202.value52 = ByteUtils.DToUInt32(data, 271);
|
|
|
|
|
CMD202.value53 = ByteUtils.DToUInt32(data, 275);
|
|
|
|
|
CMD202.value54 = ByteUtils.DToUInt32(data, 279);
|
|
|
|
|
CMD202.value55 = ByteUtils.DToUInt32(data, 283);
|
|
|
|
|
CMD202.value56 = ByteUtils.DToUInt32(data, 287);
|
|
|
|
|
CMD202.value57 = ByteUtils.DToUInt32(data, 291);
|
|
|
|
|
CMD202.value58 = ByteUtils.DToUInt32(data, 295);
|
|
|
|
|
CMD202.value59 = ByteUtils.DToUInt32(data, 299);
|
|
|
|
|
CMD202.value60 = ByteUtils.DToUInt32(data, 303);
|
|
|
|
|
CMD202.value61 = ByteUtils.DToUInt32(data, 307);
|
|
|
|
|
CMD202.value63 = ByteUtils.DToUInt32(data, 311);
|
|
|
|
|
CMD202.value64 = ByteUtils.DToUInt32(data, 315);
|
|
|
|
|
CMD202.value64 = ByteUtils.DToUInt32(data, 319);
|
|
|
|
|
CMD202.value65 = ByteUtils.DToUInt32(data, 323);
|
|
|
|
|
CMD202.value66 = ByteUtils.DToUInt32(data, 327);
|
|
|
|
|
CMD202.value67 = ByteUtils.DToUInt32(data, 331);
|
|
|
|
|
CMD202.value68 = ByteUtils.DToUInt32(data, 335);
|
|
|
|
|
CMD202.value69 = ByteUtils.DToUInt32(data, 339);
|
|
|
|
|
CMD202.value70 = ByteUtils.DToUInt32(data, 343);
|
|
|
|
|
CMD202.value71 = ByteUtils.DToUInt32(data, 347);
|
|
|
|
|
CMD202.value72 = ByteUtils.DToUInt32(data, 351);
|
|
|
|
|
CMD202.value73 = ByteUtils.DToUInt32(data, 355);
|
|
|
|
|
CMD202.value26 = ByteUtils.DToUInt16(data, 167).ToString();
|
|
|
|
|
CMD202.value27 = ByteUtils.DToUInt16(data, 169).ToString();
|
|
|
|
|
CMD202.value28 = ByteUtils.DToUInt16(data, 171).ToString();
|
|
|
|
|
CMD202.value29 = ByteUtils.DToUInt16(data, 173).ToString();
|
|
|
|
|
CMD202.value30 = ByteUtils.DToUInt16(data, 175).ToString();
|
|
|
|
|
CMD202.value31 = ByteUtils.DToUInt16(data, 177).ToString();
|
|
|
|
|
CMD202.value32 = ByteUtils.DToUInt16(data, 179).ToString();
|
|
|
|
|
CMD202.value33 = ByteUtils.DToUInt16(data, 181).ToString();
|
|
|
|
|
CMD202.value34 = ByteUtils.DToUInt16(data, 183).ToString();
|
|
|
|
|
CMD202.value35 = ByteUtils.DToUInt16(data, 185).ToString();
|
|
|
|
|
CMD202.value36 = ByteUtils.DToUInt16(data, 187).ToString();
|
|
|
|
|
CMD202.value37 = ByteUtils.DToUInt16(data, 189).ToString();
|
|
|
|
|
CMD202.value38 = ByteUtils.DToUInt16(data, 191).ToString();
|
|
|
|
|
CMD202.value39 = ByteUtils.DToUInt16(data, 193).ToString();
|
|
|
|
|
CMD202.value40 = ByteUtils.DToUInt16(data, 195).ToString();
|
|
|
|
|
CMD202.value41 = ByteUtils.DToUInt16(data, 197).ToString();
|
|
|
|
|
CMD202.value42 = ByteUtils.DToUInt16(data, 199).ToString();
|
|
|
|
|
CMD202.value43 = ByteUtils.DToUInt16(data, 201).ToString();
|
|
|
|
|
CMD202.value44 = ByteUtils.DToUInt16(data, 203).ToString();
|
|
|
|
|
CMD202.value45 = ByteUtils.DToUInt16(data, 205).ToString();
|
|
|
|
|
CMD202.value46 = ByteUtils.DToUInt16(data, 207).ToString();
|
|
|
|
|
CMD202.value47 = ByteUtils.DToUInt16(data, 209).ToString();
|
|
|
|
|
CMD202.value48 = ByteUtils.DToUInt16(data, 211).ToString();
|
|
|
|
|
CMD202.value49 = ByteUtils.DToUInt16(data, 213).ToString();
|
|
|
|
|
CMD202.value50 = ByteUtils.DToUInt16(data, 215).ToString();
|
|
|
|
|
CMD202.value51 = ByteUtils.DToUInt16(data, 217).ToString();
|
|
|
|
|
CMD202.value52 = ByteUtils.DToUInt16(data, 219).ToString();
|
|
|
|
|
CMD202.value53 = ByteUtils.DToUInt16(data, 221).ToString();
|
|
|
|
|
CMD202.value54 = ByteUtils.DToUInt16(data, 223).ToString();
|
|
|
|
|
CMD202.value55 = ByteUtils.DToUInt16(data, 225).ToString();
|
|
|
|
|
CMD202.value56 = ByteUtils.DToUInt16(data, 227).ToString();
|
|
|
|
|
CMD202.value57 = ByteUtils.DToUInt16(data, 229).ToString();
|
|
|
|
|
CMD202.value58 = ByteUtils.DToUInt16(data, 231).ToString();
|
|
|
|
|
CMD202.value59 = ByteUtils.DToUInt16(data, 233).ToString();
|
|
|
|
|
CMD202.value60 = ByteUtils.DToUInt16(data, 235).ToString();
|
|
|
|
|
CMD202.value61 = ByteUtils.DToUInt16(data, 237).ToString();
|
|
|
|
|
CMD202.value63 = ByteUtils.DToUInt16(data, 239).ToString();
|
|
|
|
|
CMD202.value64 = ByteUtils.DToUInt16(data, 241).ToString();
|
|
|
|
|
CMD202.value64 = ByteUtils.DToUInt16(data, 243).ToString();
|
|
|
|
|
CMD202.value65 = ByteUtils.DToUInt16(data, 245).ToString();
|
|
|
|
|
CMD202.value66 = ByteUtils.DToUInt16(data, 247).ToString();
|
|
|
|
|
CMD202.value67 = ByteUtils.DToUInt16(data, 249).ToString();
|
|
|
|
|
CMD202.value68 = ByteUtils.DToUInt16(data, 251).ToString();
|
|
|
|
|
CMD202.value69 = ByteUtils.DToUInt16(data, 253).ToString();
|
|
|
|
|
CMD202.value70 = ByteUtils.DToUInt16(data, 255).ToString();
|
|
|
|
|
CMD202.value71 = ByteUtils.DToUInt16(data, 257).ToString();
|
|
|
|
|
CMD202.value72 = ByteUtils.DToUInt16(data, 259).ToString();
|
|
|
|
|
CMD202.value73 = ByteUtils.DToUInt16(data, 261).ToString();
|
|
|
|
|
|
|
|
|
|
CMD202.value74 = data[359];
|
|
|
|
|
CMD202.value75 = Encoding.ASCII.GetString(data, 360, 32);
|
|
|
|
|
CMD202.value76 = ByteUtils.DToUInt32(data, 392);
|
|
|
|
|
CMD202.value77 = data[394];
|
|
|
|
|
CMD202.value78 = data[395];
|
|
|
|
|
CMD202.value79 = data[396];
|
|
|
|
|
CMD202.value80 = data[397];
|
|
|
|
|
CMD202.value81 = Encoding.ASCII.GetString(data, 398, 6);
|
|
|
|
|
CMD202.value82 = ByteUtils.DToUInt16(data, 404);
|
|
|
|
|
CMD202.value83 = data[408];
|
|
|
|
|
CMD202.value74 = data[263];
|
|
|
|
|
CMD202.value75 = Encoding.ASCII.GetString(data, 264, 32);
|
|
|
|
|
CMD202.value76 = ByteUtils.DToUInt32(data, 296);
|
|
|
|
|
CMD202.value77 = data[300];
|
|
|
|
|
CMD202.value78 = data[301];
|
|
|
|
|
CMD202.value79 = data[302];
|
|
|
|
|
CMD202.value80 = Encoding.ASCII.GetString(data, 303, 34);
|
|
|
|
|
CMD202.value81 = Encoding.ASCII.GetString(data, 337, 6);
|
|
|
|
|
CMD202.value82 = ByteUtils.DToUInt16(data, 343);
|
|
|
|
|
CMD202.value83 = data[345];
|
|
|
|
|
}
|
|
|
|
|
else if (func == 222)
|
|
|
|
|
{
|
|
|
|
|
CMD202.value13 = ByteUtils.DToUInt32(data, 104);
|
|
|
|
|
CMD202.value14 = ByteUtils.DToUInt32(data, 108);
|
|
|
|
|
CMD202.value15 = ByteUtils.DToUInt32(data, 112);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
CMD202.value26 = ByteUtils.DToUInt32(data, 167);
|
|
|
|
|
CMD202.value27 = ByteUtils.DToUInt32(data, 171);
|
|
|
|
|
CMD202.value28 = ByteUtils.DToUInt32(data, 175);
|
|
|
|
|
CMD202.value29 = ByteUtils.DToUInt32(data, 179);
|
|
|
|
|
CMD202.value30 = ByteUtils.DToUInt32(data, 183);
|
|
|
|
|
CMD202.value31 = ByteUtils.DToUInt32(data, 187);
|
|
|
|
|
CMD202.value32 = ByteUtils.DToUInt32(data, 191);
|
|
|
|
|
CMD202.value33 = ByteUtils.DToUInt32(data, 195);
|
|
|
|
|
CMD202.value34 = ByteUtils.DToUInt32(data, 199);
|
|
|
|
|
CMD202.value35 = ByteUtils.DToUInt32(data, 203);
|
|
|
|
|
CMD202.value36 = ByteUtils.DToUInt32(data, 207);
|
|
|
|
|
CMD202.value37 = ByteUtils.DToUInt32(data, 211);
|
|
|
|
|
CMD202.value38 = ByteUtils.DToUInt32(data, 215);
|
|
|
|
|
CMD202.value39 = ByteUtils.DToUInt32(data, 219);
|
|
|
|
|
CMD202.value40 = ByteUtils.DToUInt32(data, 223);
|
|
|
|
|
CMD202.value41 = ByteUtils.DToUInt32(data, 227);
|
|
|
|
|
CMD202.value42 = ByteUtils.DToUInt32(data, 231);
|
|
|
|
|
CMD202.value43 = ByteUtils.DToUInt32(data, 235);
|
|
|
|
|
CMD202.value44 = ByteUtils.DToUInt32(data, 239);
|
|
|
|
|
CMD202.value45 = ByteUtils.DToUInt32(data, 243);
|
|
|
|
|
CMD202.value46 = ByteUtils.DToUInt32(data, 247);
|
|
|
|
|
CMD202.value47 = ByteUtils.DToUInt32(data, 251);
|
|
|
|
|
CMD202.value48 = ByteUtils.DToUInt32(data, 255);
|
|
|
|
|
CMD202.value49 = ByteUtils.DToUInt32(data, 259);
|
|
|
|
|
CMD202.value50 = ByteUtils.DToUInt32(data, 263);
|
|
|
|
|
CMD202.value51 = ByteUtils.DToUInt32(data, 267);
|
|
|
|
|
CMD202.value52 = ByteUtils.DToUInt32(data, 271);
|
|
|
|
|
CMD202.value53 = ByteUtils.DToUInt32(data, 275);
|
|
|
|
|
CMD202.value54 = ByteUtils.DToUInt32(data, 279);
|
|
|
|
|
CMD202.value55 = ByteUtils.DToUInt32(data, 283);
|
|
|
|
|
CMD202.value56 = ByteUtils.DToUInt32(data, 287);
|
|
|
|
|
CMD202.value57 = ByteUtils.DToUInt32(data, 291);
|
|
|
|
|
CMD202.value58 = ByteUtils.DToUInt32(data, 295);
|
|
|
|
|
CMD202.value59 = ByteUtils.DToUInt32(data, 299);
|
|
|
|
|
CMD202.value60 = ByteUtils.DToUInt32(data, 303);
|
|
|
|
|
CMD202.value61 = ByteUtils.DToUInt32(data, 307);
|
|
|
|
|
CMD202.value63 = ByteUtils.DToUInt32(data, 311);
|
|
|
|
|
CMD202.value64 = ByteUtils.DToUInt32(data, 315);
|
|
|
|
|
CMD202.value64 = ByteUtils.DToUInt32(data, 319);
|
|
|
|
|
CMD202.value65 = ByteUtils.DToUInt32(data, 323);
|
|
|
|
|
CMD202.value66 = ByteUtils.DToUInt32(data, 327);
|
|
|
|
|
CMD202.value67 = ByteUtils.DToUInt32(data, 331);
|
|
|
|
|
CMD202.value68 = ByteUtils.DToUInt32(data, 335);
|
|
|
|
|
CMD202.value69 = ByteUtils.DToUInt32(data, 339);
|
|
|
|
|
CMD202.value70 = ByteUtils.DToUInt32(data, 343);
|
|
|
|
|
CMD202.value71 = ByteUtils.DToUInt32(data, 347);
|
|
|
|
|
CMD202.value72 = ByteUtils.DToUInt32(data, 351);
|
|
|
|
|
CMD202.value73 = ByteUtils.DToUInt32(data, 355);
|
|
|
|
|
CMD202.value13 = (ByteUtils.DToUInt32(data, 104) * 0.001).ToString("F3");
|
|
|
|
|
CMD202.value14 = (ByteUtils.DToUInt32(data, 108) * 0.001).ToString("F3");
|
|
|
|
|
CMD202.value15 = (ByteUtils.DToUInt32(data, 112) * 0.001).ToString("F3");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
CMD202.value26 = (ByteUtils.DToUInt32(data, 167) * 0.001).ToString("F3");
|
|
|
|
|
CMD202.value27 = (ByteUtils.DToUInt32(data, 171) * 0.001).ToString("F3");
|
|
|
|
|
CMD202.value28 = (ByteUtils.DToUInt32(data, 175) * 0.001).ToString("F3");
|
|
|
|
|
CMD202.value29 = (ByteUtils.DToUInt32(data, 179) * 0.001).ToString("F3");
|
|
|
|
|
CMD202.value30 = (ByteUtils.DToUInt32(data, 183) * 0.001).ToString("F3");
|
|
|
|
|
CMD202.value31 = (ByteUtils.DToUInt32(data, 187) * 0.001).ToString("F3");
|
|
|
|
|
CMD202.value32 = (ByteUtils.DToUInt32(data, 191) * 0.001).ToString("F3");
|
|
|
|
|
CMD202.value33 = (ByteUtils.DToUInt32(data, 195) * 0.001).ToString("F3");
|
|
|
|
|
CMD202.value34 = (ByteUtils.DToUInt32(data, 199) * 0.001).ToString("F3");
|
|
|
|
|
CMD202.value35 = (ByteUtils.DToUInt32(data, 203) * 0.001).ToString("F3");
|
|
|
|
|
CMD202.value36 = (ByteUtils.DToUInt32(data, 207) * 0.001).ToString("F3");
|
|
|
|
|
CMD202.value37 = (ByteUtils.DToUInt32(data, 211) * 0.001).ToString("F3");
|
|
|
|
|
CMD202.value38 = (ByteUtils.DToUInt32(data, 215) * 0.001).ToString("F3");
|
|
|
|
|
CMD202.value39 = (ByteUtils.DToUInt32(data, 219) * 0.001).ToString("F3");
|
|
|
|
|
CMD202.value40 = (ByteUtils.DToUInt32(data, 223) * 0.001).ToString("F3");
|
|
|
|
|
CMD202.value41 = (ByteUtils.DToUInt32(data, 227) * 0.001).ToString("F3");
|
|
|
|
|
CMD202.value42 = (ByteUtils.DToUInt32(data, 231) * 0.001).ToString("F3");
|
|
|
|
|
CMD202.value43 = (ByteUtils.DToUInt32(data, 235) * 0.001).ToString("F3");
|
|
|
|
|
CMD202.value44 = (ByteUtils.DToUInt32(data, 239) * 0.001).ToString("F3");
|
|
|
|
|
CMD202.value45 = (ByteUtils.DToUInt32(data, 243) * 0.001).ToString("F3");
|
|
|
|
|
CMD202.value46 = (ByteUtils.DToUInt32(data, 247) * 0.001).ToString("F3");
|
|
|
|
|
CMD202.value47 = (ByteUtils.DToUInt32(data, 251) * 0.001).ToString("F3");
|
|
|
|
|
CMD202.value48 = (ByteUtils.DToUInt32(data, 255) * 0.001).ToString("F3");
|
|
|
|
|
CMD202.value49 = (ByteUtils.DToUInt32(data, 259) * 0.001).ToString("F3");
|
|
|
|
|
CMD202.value50 = (ByteUtils.DToUInt32(data, 263) * 0.001).ToString("F3");
|
|
|
|
|
CMD202.value51 = (ByteUtils.DToUInt32(data, 267) * 0.001).ToString("F3");
|
|
|
|
|
CMD202.value52 = (ByteUtils.DToUInt32(data, 271) * 0.001).ToString("F3");
|
|
|
|
|
CMD202.value53 = (ByteUtils.DToUInt32(data, 275) * 0.001).ToString("F3");
|
|
|
|
|
CMD202.value54 = (ByteUtils.DToUInt32(data, 279) * 0.001).ToString("F3");
|
|
|
|
|
CMD202.value55 = (ByteUtils.DToUInt32(data, 283) * 0.001).ToString("F3");
|
|
|
|
|
CMD202.value56 = (ByteUtils.DToUInt32(data, 287) * 0.001).ToString("F3");
|
|
|
|
|
CMD202.value57 = (ByteUtils.DToUInt32(data, 291) * 0.001).ToString("F3");
|
|
|
|
|
CMD202.value58 = (ByteUtils.DToUInt32(data, 295) * 0.001).ToString("F3");
|
|
|
|
|
CMD202.value59 = (ByteUtils.DToUInt32(data, 299) * 0.001).ToString("F3");
|
|
|
|
|
CMD202.value60 = (ByteUtils.DToUInt32(data, 303) * 0.001).ToString("F3");
|
|
|
|
|
CMD202.value61 = (ByteUtils.DToUInt32(data, 307) * 0.001).ToString("F3");
|
|
|
|
|
CMD202.value63 = (ByteUtils.DToUInt32(data, 311) * 0.001).ToString("F3");
|
|
|
|
|
CMD202.value64 = (ByteUtils.DToUInt32(data, 315) * 0.001).ToString("F3");
|
|
|
|
|
CMD202.value64 = (ByteUtils.DToUInt32(data, 319) * 0.001).ToString("F3");
|
|
|
|
|
CMD202.value65 = (ByteUtils.DToUInt32(data, 323) * 0.001).ToString("F3");
|
|
|
|
|
CMD202.value66 = (ByteUtils.DToUInt32(data, 327) * 0.001).ToString("F3");
|
|
|
|
|
CMD202.value67 = (ByteUtils.DToUInt32(data, 331) * 0.001).ToString("F3");
|
|
|
|
|
CMD202.value68 = (ByteUtils.DToUInt32(data, 335) * 0.001).ToString("F3");
|
|
|
|
|
CMD202.value69 = (ByteUtils.DToUInt32(data, 339) * 0.001).ToString("F3");
|
|
|
|
|
CMD202.value70 = (ByteUtils.DToUInt32(data, 343) * 0.001).ToString("F3");
|
|
|
|
|
CMD202.value71 = (ByteUtils.DToUInt32(data, 347) * 0.001).ToString("F3");
|
|
|
|
|
CMD202.value72 = (ByteUtils.DToUInt32(data, 351) * 0.001).ToString("F3");
|
|
|
|
|
CMD202.value73 = (ByteUtils.DToUInt32(data, 355) * 0.001).ToString("F3");
|
|
|
|
|
|
|
|
|
|
CMD202.value74 = data[359];
|
|
|
|
|
CMD202.value75 = Encoding.ASCII.GetString(data, 360, 32);
|
|
|
|
|
CMD202.value76 = ByteUtils.DToUInt32(data, 392);
|
|
|
|
|
CMD202.value77 = data[394];
|
|
|
|
|
CMD202.value78 = data[395];
|
|
|
|
|
CMD202.value79 = data[396];
|
|
|
|
|
CMD202.value80 = data[397];
|
|
|
|
|
CMD202.value81 = Encoding.ASCII.GetString(data, 398, 6);
|
|
|
|
|
CMD202.value82 = ByteUtils.DToUInt16(data, 404);
|
|
|
|
|
CMD202.value83 = data[408];
|
|
|
|
|
CMD202.value77 = data[396];
|
|
|
|
|
CMD202.value78 = data[397];
|
|
|
|
|
CMD202.value79 = data[398];
|
|
|
|
|
CMD202.value80 = Encoding.ASCII.GetString(data, 399, 34);
|
|
|
|
|
CMD202.value81 = Encoding.ASCII.GetString(data, 433, 6);
|
|
|
|
|
CMD202.value82 = ByteUtils.DToUInt16(data, 439);
|
|
|
|
|
CMD202.value83 = data[441];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
CMD202.value16 = ByteUtils.DToUInt32(data, 116);
|
|
|
|
@ -631,6 +632,98 @@ namespace BatCharging.Service.DataRlt
|
|
|
|
|
}
|
|
|
|
|
return CMD210;
|
|
|
|
|
}
|
|
|
|
|
public CMD222 ConCMD222(byte[] data)
|
|
|
|
|
{
|
|
|
|
|
CMD222 CMD222 = null;
|
|
|
|
|
if (data != null && data.Length > 0)
|
|
|
|
|
{
|
|
|
|
|
CMD222 = new CMD222();
|
|
|
|
|
CMD222.value01 = ByteUtils.DToUInt16(data, 8);
|
|
|
|
|
CMD222.value02 = ByteUtils.DToUInt16(data, 10);
|
|
|
|
|
CMD222.value03 = Encoding.ASCII.GetString(data, 12, 32);
|
|
|
|
|
CMD222.value04 = data[44];
|
|
|
|
|
CMD222.value05 = data[45];
|
|
|
|
|
CMD222.value06 = Encoding.ASCII.GetString(data, 46, 32);
|
|
|
|
|
CMD222.value07 = Encoding.ASCII.GetString(data, 78, 8);
|
|
|
|
|
CMD222.value08 = Encoding.ASCII.GetString(data, 86, 8);
|
|
|
|
|
CMD222.value09 = ByteUtils.DToUInt32(data, 94);
|
|
|
|
|
CMD222.value10 = data[98];
|
|
|
|
|
CMD222.value11 = data[99];
|
|
|
|
|
CMD222.value12 = ByteUtils.DToUInt32(data, 100);
|
|
|
|
|
CMD222.value13 = ByteUtils.DToUInt32(data, 104);
|
|
|
|
|
CMD222.value14 = ByteUtils.DToUInt32(data, 108);
|
|
|
|
|
CMD222.value15 = ByteUtils.DToUInt32(data, 112);
|
|
|
|
|
CMD222.value16 = ByteUtils.DToUInt32(data, 116);
|
|
|
|
|
CMD222.value17 = ByteUtils.DToUInt32(data, 120);
|
|
|
|
|
CMD222.value18 = ByteUtils.DToUInt32(data, 124);
|
|
|
|
|
CMD222.value19 = ByteUtils.DToUInt32(data, 128);
|
|
|
|
|
CMD222.value20 = ByteUtils.DToUInt32(data, 132);
|
|
|
|
|
CMD222.value21 = data[136];
|
|
|
|
|
CMD222.value22 = data[137];
|
|
|
|
|
CMD222.value23 = ByteUtils.DToUInt32(data, 138);
|
|
|
|
|
CMD222.value24 = Encoding.ASCII.GetString(data, 142, 17);
|
|
|
|
|
CMD222.value25 = Encoding.ASCII.GetString(data, 159, 8);
|
|
|
|
|
CMD222.value26 = ByteUtils.DToUInt32(data, 167);
|
|
|
|
|
CMD222.value27 = ByteUtils.DToUInt32(data, 171);
|
|
|
|
|
CMD222.value28 = ByteUtils.DToUInt32(data, 175);
|
|
|
|
|
CMD222.value29 = ByteUtils.DToUInt32(data, 179);
|
|
|
|
|
CMD222.value30 = ByteUtils.DToUInt32(data, 183);
|
|
|
|
|
CMD222.value31 = ByteUtils.DToUInt32(data, 187);
|
|
|
|
|
CMD222.value32 = ByteUtils.DToUInt32(data, 191);
|
|
|
|
|
CMD222.value33 = ByteUtils.DToUInt32(data, 195);
|
|
|
|
|
CMD222.value34 = ByteUtils.DToUInt32(data, 199);
|
|
|
|
|
CMD222.value35 = ByteUtils.DToUInt32(data, 203);
|
|
|
|
|
CMD222.value36 = ByteUtils.DToUInt32(data, 207);
|
|
|
|
|
CMD222.value37 = ByteUtils.DToUInt32(data, 211);
|
|
|
|
|
CMD222.value38 = ByteUtils.DToUInt32(data, 215);
|
|
|
|
|
CMD222.value39 = ByteUtils.DToUInt32(data, 219);
|
|
|
|
|
CMD222.value40 = ByteUtils.DToUInt32(data, 223);
|
|
|
|
|
CMD222.value41 = ByteUtils.DToUInt32(data, 227);
|
|
|
|
|
CMD222.value42 = ByteUtils.DToUInt32(data, 231);
|
|
|
|
|
CMD222.value43 = ByteUtils.DToUInt32(data, 235);
|
|
|
|
|
CMD222.value44 = ByteUtils.DToUInt32(data, 239);
|
|
|
|
|
CMD222.value45 = ByteUtils.DToUInt32(data, 243);
|
|
|
|
|
CMD222.value46 = ByteUtils.DToUInt32(data, 247);
|
|
|
|
|
CMD222.value47 = ByteUtils.DToUInt32(data, 251);
|
|
|
|
|
CMD222.value48 = ByteUtils.DToUInt32(data, 255);
|
|
|
|
|
CMD222.value49 = ByteUtils.DToUInt32(data, 259);
|
|
|
|
|
CMD222.value50 = ByteUtils.DToUInt32(data, 263);
|
|
|
|
|
CMD222.value51 = ByteUtils.DToUInt32(data, 267);
|
|
|
|
|
CMD222.value52 = ByteUtils.DToUInt32(data, 271);
|
|
|
|
|
CMD222.value53 = ByteUtils.DToUInt32(data, 275);
|
|
|
|
|
CMD222.value54 = ByteUtils.DToUInt32(data, 279);
|
|
|
|
|
CMD222.value55 = ByteUtils.DToUInt32(data, 283);
|
|
|
|
|
CMD222.value56 = ByteUtils.DToUInt32(data, 287);
|
|
|
|
|
CMD222.value57 = ByteUtils.DToUInt32(data, 291);
|
|
|
|
|
CMD222.value58 = ByteUtils.DToUInt32(data, 295);
|
|
|
|
|
CMD222.value59 = ByteUtils.DToUInt32(data, 299);
|
|
|
|
|
CMD222.value60 = ByteUtils.DToUInt32(data, 303);
|
|
|
|
|
CMD222.value61 = ByteUtils.DToUInt32(data, 307);
|
|
|
|
|
CMD222.value63 = ByteUtils.DToUInt32(data, 311);
|
|
|
|
|
CMD222.value64 = ByteUtils.DToUInt32(data, 315);
|
|
|
|
|
CMD222.value64 = ByteUtils.DToUInt32(data, 319);
|
|
|
|
|
CMD222.value65 = ByteUtils.DToUInt32(data, 323);
|
|
|
|
|
CMD222.value66 = ByteUtils.DToUInt32(data, 327);
|
|
|
|
|
CMD222.value67 = ByteUtils.DToUInt32(data, 331);
|
|
|
|
|
CMD222.value68 = ByteUtils.DToUInt32(data, 335);
|
|
|
|
|
CMD222.value69 = ByteUtils.DToUInt32(data, 339);
|
|
|
|
|
CMD222.value70 = ByteUtils.DToUInt32(data, 343);
|
|
|
|
|
CMD222.value71 = ByteUtils.DToUInt32(data, 347);
|
|
|
|
|
CMD222.value72 = ByteUtils.DToUInt32(data, 351);
|
|
|
|
|
CMD222.value73 = ByteUtils.DToUInt32(data, 355);
|
|
|
|
|
CMD222.value74 = data[359];
|
|
|
|
|
CMD222.value75 = Encoding.ASCII.GetString(data, 360, 32);
|
|
|
|
|
CMD222.value76 = ByteUtils.DToUInt32(data, 392);
|
|
|
|
|
CMD222.value77 = data[394];
|
|
|
|
|
CMD222.value78 = data[395];
|
|
|
|
|
CMD222.value79 = data[396];
|
|
|
|
|
CMD222.value80 = data[397];
|
|
|
|
|
CMD222.value81 = Encoding.ASCII.GetString(data, 398, 6);
|
|
|
|
|
CMD222.value82 = ByteUtils.DToUInt16(data, 404);
|
|
|
|
|
CMD222.value83 = data[408];
|
|
|
|
|
}
|
|
|
|
|
return CMD222;
|
|
|
|
|
}
|
|
|
|
|
public CMD302 ConCMD302(byte[] data)
|
|
|
|
|
{
|
|
|
|
|
CMD302 CMD302 = null;
|
|
|
|
@ -741,7 +834,7 @@ namespace BatCharging.Service.DataRlt
|
|
|
|
|
}
|
|
|
|
|
return CMD304;
|
|
|
|
|
}
|
|
|
|
|
public CMD402 ConCMD402(byte[] data)
|
|
|
|
|
public CMD402 ConCMD402(uint func, byte[] data)
|
|
|
|
|
{
|
|
|
|
|
CMD402 CMD402 = null;
|
|
|
|
|
if (data != null && data.Length > 0)
|
|
|
|
@ -759,7 +852,126 @@ namespace BatCharging.Service.DataRlt
|
|
|
|
|
CMD402.startSoc = data[98];
|
|
|
|
|
CMD402.endSoc = data[99];
|
|
|
|
|
CMD402.chargingEndReason = Encoding.ASCII.GetString(data, 100, 4);
|
|
|
|
|
CMD402.currentChargingLevel = (float)ByteUtils.ToUInt32(data, 104);
|
|
|
|
|
if (func == 402)
|
|
|
|
|
{
|
|
|
|
|
CMD402.currentChargingLevel = (ByteUtils.ToUInt32(data, 104) * 0.01).ToString("F2");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
CMD402.timeUInt32erval1ChargingElectLevel = ((ByteUtils.DToUInt16(data, 167)) * 0.01).ToString("F2");
|
|
|
|
|
CMD402.timeUInt32erval2ChargingElectLevel = ((ByteUtils.DToUInt16(data, 169)) * 0.01).ToString("F2");
|
|
|
|
|
CMD402.timeUInt32erval3ChargingElectLevel = ((ByteUtils.DToUInt16(data, 171)) * 0.01).ToString("F2");
|
|
|
|
|
CMD402.timeUInt32erval4ChargingElectLevel = ((ByteUtils.DToUInt16(data, 173)) * 0.01).ToString("F2");
|
|
|
|
|
CMD402.timeUInt32erval5ChargingElectLevel = ((ByteUtils.DToUInt16(data, 175)) * 0.01).ToString("F2");
|
|
|
|
|
CMD402.timeUInt32erval6ChargingElectLevel = ((ByteUtils.DToUInt16(data, 177)) * 0.01).ToString("F2");
|
|
|
|
|
CMD402.timeUInt32erval7ChargingElectLevel = ((ByteUtils.DToUInt16(data, 179)) * 0.01).ToString("F2");
|
|
|
|
|
CMD402.timeUInt32erval8ChargingElectLevel = ((ByteUtils.DToUInt16(data, 181)) * 0.01).ToString("F2");
|
|
|
|
|
CMD402.timeUInt32erval9ChargingElectLevel = ((ByteUtils.DToUInt16(data, 183)) * 0.01).ToString("F2");
|
|
|
|
|
CMD402.timeUInt32erval10ChargingElectLevel = ((ByteUtils.DToUInt16(data, 183)) * 0.01).ToString("F2");
|
|
|
|
|
CMD402.timeUInt32erval11ChargingElectLevel = ((ByteUtils.DToUInt16(data, 185)) * 0.01).ToString("F2");
|
|
|
|
|
CMD402.timeUInt32erval12ChargingElectLevel = ((ByteUtils.DToUInt16(data, 187)) * 0.01).ToString("F2");
|
|
|
|
|
CMD402.timeUInt32erval13ChargingElectLevel = ((ByteUtils.DToUInt16(data, 189)) * 0.01).ToString("F2");
|
|
|
|
|
CMD402.timeUInt32erval14ChargingElectLevel = ((ByteUtils.DToUInt16(data, 191)) * 0.01).ToString("F2");
|
|
|
|
|
CMD402.timeUInt32erval15ChargingElectLevel = ((ByteUtils.DToUInt16(data, 193)) * 0.01).ToString("F2");
|
|
|
|
|
CMD402.timeUInt32erval16ChargingElectLevel = ((ByteUtils.DToUInt16(data, 195)) * 0.01).ToString("F2");
|
|
|
|
|
CMD402.timeUInt32erval17ChargingElectLevel = ((ByteUtils.DToUInt16(data, 197)) * 0.01).ToString("F2");
|
|
|
|
|
CMD402.timeUInt32erval18ChargingElectLevel = ((ByteUtils.DToUInt16(data, 199)) * 0.01).ToString("F2");
|
|
|
|
|
CMD402.timeUInt32erval19ChargingElectLevel = ((ByteUtils.DToUInt16(data, 201)) * 0.01).ToString("F2");
|
|
|
|
|
CMD402.timeUInt32erval20ChargingElectLevel = ((ByteUtils.DToUInt16(data, 203)) * 0.01).ToString("F2");
|
|
|
|
|
CMD402.timeUInt32erval21ChargingElectLevel = ((ByteUtils.DToUInt16(data, 205)) * 0.01).ToString("F2");
|
|
|
|
|
CMD402.timeUInt32erval22ChargingElectLevel = ((ByteUtils.DToUInt16(data, 207)) * 0.01).ToString("F2");
|
|
|
|
|
CMD402.timeUInt32erval23ChargingElectLevel = ((ByteUtils.DToUInt16(data, 209)) * 0.01).ToString("F2");
|
|
|
|
|
CMD402.timeUInt32erval24ChargingElectLevel = ((ByteUtils.DToUInt16(data, 211)) * 0.01).ToString("F2");
|
|
|
|
|
CMD402.timeUInt32erval25ChargingElectLevel = ((ByteUtils.DToUInt16(data, 213)) * 0.01).ToString("F2");
|
|
|
|
|
CMD402.timeUInt32erval26ChargingElectLevel = ((ByteUtils.DToUInt16(data, 215)) * 0.01).ToString("F2");
|
|
|
|
|
CMD402.timeUInt32erval27ChargingElectLevel = ((ByteUtils.DToUInt16(data, 217)) * 0.01).ToString("F2");
|
|
|
|
|
CMD402.timeUInt32erval28ChargingElectLevel = ((ByteUtils.DToUInt16(data, 219)) * 0.01).ToString("F2");
|
|
|
|
|
CMD402.timeUInt32erval29ChargingElectLevel = ((ByteUtils.DToUInt16(data, 221)) * 0.01).ToString("F2");
|
|
|
|
|
CMD402.timeUInt32erval30ChargingElectLevel = ((ByteUtils.DToUInt16(data, 223)) * 0.01).ToString("F2");
|
|
|
|
|
CMD402.timeUInt32erval31ChargingElectLevel = ((ByteUtils.DToUInt16(data, 225)) * 0.01).ToString("F2");
|
|
|
|
|
CMD402.timeUInt32erval32ChargingElectLevel = ((ByteUtils.DToUInt16(data, 227)) * 0.01).ToString("F2");
|
|
|
|
|
CMD402.timeUInt32erval33ChargingElectLevel = ((ByteUtils.DToUInt16(data, 229)) * 0.01).ToString("F2");
|
|
|
|
|
CMD402.timeUInt32erval34ChargingElectLevel = ((ByteUtils.DToUInt16(data, 231)) * 0.01).ToString("F2");
|
|
|
|
|
CMD402.timeUInt32erval35ChargingElectLevel = ((ByteUtils.DToUInt16(data, 233)) * 0.01).ToString("F2");
|
|
|
|
|
CMD402.timeUInt32erval36ChargingElectLevel = ((ByteUtils.DToUInt16(data, 235)) * 0.01).ToString("F2");
|
|
|
|
|
CMD402.timeUInt32erval37ChargingElectLevel = ((ByteUtils.DToUInt16(data, 237)) * 0.01).ToString("F2");
|
|
|
|
|
CMD402.timeUInt32erval38ChargingElectLevel = ((ByteUtils.DToUInt16(data, 239)) * 0.01).ToString("F2");
|
|
|
|
|
CMD402.timeUInt32erval39ChargingElectLevel = ((ByteUtils.DToUInt16(data, 241)) * 0.01).ToString("F2");
|
|
|
|
|
CMD402.timeUInt32erval40ChargingElectLevel = ((ByteUtils.DToUInt16(data, 243)) * 0.01).ToString("F2");
|
|
|
|
|
CMD402.timeUInt32erval41ChargingElectLevel = ((ByteUtils.DToUInt16(data, 245)) * 0.01).ToString("F2");
|
|
|
|
|
CMD402.timeUInt32erval42ChargingElectLevel = ((ByteUtils.DToUInt16(data, 247)) * 0.01).ToString("F2");
|
|
|
|
|
CMD402.timeUInt32erval43ChargingElectLevel = ((ByteUtils.DToUInt16(data, 249)) * 0.01).ToString("F2");
|
|
|
|
|
CMD402.timeUInt32erval44ChargingElectLevel = ((ByteUtils.DToUInt16(data, 251)) * 0.01).ToString("F2");
|
|
|
|
|
CMD402.timeUInt32erval45ChargingElectLevel = ((ByteUtils.DToUInt16(data, 253)) * 0.01).ToString("F2");
|
|
|
|
|
CMD402.timeUInt32erval46ChargingElectLevel = ((ByteUtils.DToUInt16(data, 255)) * 0.01).ToString("F2");
|
|
|
|
|
CMD402.timeUInt32erval47ChargingElectLevel = ((ByteUtils.DToUInt16(data, 257)) * 0.01).ToString("F2");
|
|
|
|
|
CMD402.timeUInt32erval48ChargingElectLevel = ((ByteUtils.DToUInt16(data, 259)) * 0.01).ToString("F2");
|
|
|
|
|
|
|
|
|
|
CMD402.startWay = data[261];
|
|
|
|
|
CMD402.chargingSerialNum = Encoding.ASCII.GetString(data, 262, 32);
|
|
|
|
|
CMD402.chargingServiceCharge = ByteUtils.DToUInt32(data, 294);
|
|
|
|
|
CMD402.millennialpowerConsumption = (data[298]*0.001).ToString("F4");
|
|
|
|
|
CMD402.parallelChargingMark = data[299];
|
|
|
|
|
}
|
|
|
|
|
else if (func == 422)
|
|
|
|
|
{
|
|
|
|
|
CMD402.currentChargingLevel = (ByteUtils.ToUInt32(data, 104) * 0.001).ToString("F3");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
CMD402.timeUInt32erval1ChargingElectLevel = ((ByteUtils.DToUInt32(data, 167)*0.001)).ToString("F3");
|
|
|
|
|
CMD402.timeUInt32erval2ChargingElectLevel = ((ByteUtils.DToUInt32(data, 171)*0.001)).ToString("F3");
|
|
|
|
|
CMD402.timeUInt32erval3ChargingElectLevel = ((ByteUtils.DToUInt32(data, 175)*0.001)).ToString("F3");
|
|
|
|
|
CMD402.timeUInt32erval4ChargingElectLevel = ((ByteUtils.DToUInt32(data, 179)*0.001)).ToString("F3");
|
|
|
|
|
CMD402.timeUInt32erval5ChargingElectLevel = ((ByteUtils.DToUInt32(data, 183)*0.001)).ToString("F3");
|
|
|
|
|
CMD402.timeUInt32erval6ChargingElectLevel = ((ByteUtils.DToUInt32(data, 187)*0.001)).ToString("F3");
|
|
|
|
|
CMD402.timeUInt32erval7ChargingElectLevel = ((ByteUtils.DToUInt32(data, 191)*0.001)).ToString("F3");
|
|
|
|
|
CMD402.timeUInt32erval8ChargingElectLevel = ((ByteUtils.DToUInt32(data, 195)*0.001)).ToString("F3");
|
|
|
|
|
CMD402.timeUInt32erval9ChargingElectLevel = ((ByteUtils.DToUInt32(data, 199)*0.001)).ToString("F3");
|
|
|
|
|
CMD402.timeUInt32erval10ChargingElectLevel = ((ByteUtils.DToUInt32(data, 203)*0.001)).ToString("F3");
|
|
|
|
|
CMD402.timeUInt32erval11ChargingElectLevel = ((ByteUtils.DToUInt32(data, 207)*0.001)).ToString("F3");
|
|
|
|
|
CMD402.timeUInt32erval12ChargingElectLevel = ((ByteUtils.DToUInt32(data, 211)*0.001)).ToString("F3");
|
|
|
|
|
CMD402.timeUInt32erval13ChargingElectLevel = ((ByteUtils.DToUInt32(data, 215)*0.001)).ToString("F3");
|
|
|
|
|
CMD402.timeUInt32erval14ChargingElectLevel = ((ByteUtils.DToUInt32(data, 219)*0.001)).ToString("F3");
|
|
|
|
|
CMD402.timeUInt32erval15ChargingElectLevel = ((ByteUtils.DToUInt32(data, 223)*0.001)).ToString("F3");
|
|
|
|
|
CMD402.timeUInt32erval16ChargingElectLevel = ((ByteUtils.DToUInt32(data, 227)*0.001)).ToString("F3");
|
|
|
|
|
CMD402.timeUInt32erval17ChargingElectLevel = ((ByteUtils.DToUInt32(data, 231)*0.001)).ToString("F3");
|
|
|
|
|
CMD402.timeUInt32erval18ChargingElectLevel = ((ByteUtils.DToUInt32(data, 235)*0.001)).ToString("F3");
|
|
|
|
|
CMD402.timeUInt32erval19ChargingElectLevel = ((ByteUtils.DToUInt32(data, 239)*0.001)).ToString("F3");
|
|
|
|
|
CMD402.timeUInt32erval20ChargingElectLevel = ((ByteUtils.DToUInt32(data, 243)*0.001)).ToString("F3");
|
|
|
|
|
CMD402.timeUInt32erval21ChargingElectLevel = ((ByteUtils.DToUInt32(data, 247)*0.001)).ToString("F3");
|
|
|
|
|
CMD402.timeUInt32erval22ChargingElectLevel = ((ByteUtils.DToUInt32(data, 251)*0.001)).ToString("F3");
|
|
|
|
|
CMD402.timeUInt32erval23ChargingElectLevel = ((ByteUtils.DToUInt32(data, 255)*0.001)).ToString("F3");
|
|
|
|
|
CMD402.timeUInt32erval24ChargingElectLevel = ((ByteUtils.DToUInt32(data, 259)*0.001)).ToString("F3");
|
|
|
|
|
CMD402.timeUInt32erval25ChargingElectLevel = ((ByteUtils.DToUInt32(data, 263)*0.001)).ToString("F3");
|
|
|
|
|
CMD402.timeUInt32erval26ChargingElectLevel = ((ByteUtils.DToUInt32(data, 267)*0.001)).ToString("F3");
|
|
|
|
|
CMD402.timeUInt32erval27ChargingElectLevel = ((ByteUtils.DToUInt32(data, 271)*0.001)).ToString("F3");
|
|
|
|
|
CMD402.timeUInt32erval28ChargingElectLevel = ((ByteUtils.DToUInt32(data, 275)*0.001)).ToString("F3");
|
|
|
|
|
CMD402.timeUInt32erval29ChargingElectLevel = ((ByteUtils.DToUInt32(data, 279)*0.001)).ToString("F3");
|
|
|
|
|
CMD402.timeUInt32erval30ChargingElectLevel = ((ByteUtils.DToUInt32(data, 283)*0.001)).ToString("F3");
|
|
|
|
|
CMD402.timeUInt32erval31ChargingElectLevel = ((ByteUtils.DToUInt32(data, 287)*0.001)).ToString("F3");
|
|
|
|
|
CMD402.timeUInt32erval32ChargingElectLevel = ((ByteUtils.DToUInt32(data, 291)*0.001)).ToString("F3");
|
|
|
|
|
CMD402.timeUInt32erval33ChargingElectLevel = ((ByteUtils.DToUInt32(data, 295)*0.001)).ToString("F3");
|
|
|
|
|
CMD402.timeUInt32erval34ChargingElectLevel = ((ByteUtils.DToUInt32(data, 299)*0.001)).ToString("F3");
|
|
|
|
|
CMD402.timeUInt32erval35ChargingElectLevel = ((ByteUtils.DToUInt32(data, 301)*0.001)).ToString("F3");
|
|
|
|
|
CMD402.timeUInt32erval36ChargingElectLevel = ((ByteUtils.DToUInt32(data, 305)*0.001)).ToString("F3");
|
|
|
|
|
CMD402.timeUInt32erval37ChargingElectLevel = ((ByteUtils.DToUInt32(data, 309)*0.001)).ToString("F3");
|
|
|
|
|
CMD402.timeUInt32erval38ChargingElectLevel = ((ByteUtils.DToUInt32(data, 313)*0.001)).ToString("F3");
|
|
|
|
|
CMD402.timeUInt32erval39ChargingElectLevel = ((ByteUtils.DToUInt32(data, 317)*0.001)).ToString("F3");
|
|
|
|
|
CMD402.timeUInt32erval40ChargingElectLevel = ((ByteUtils.DToUInt32(data, 321)*0.001)).ToString("F3");
|
|
|
|
|
CMD402.timeUInt32erval41ChargingElectLevel = ((ByteUtils.DToUInt32(data, 325)*0.001)).ToString("F3");
|
|
|
|
|
CMD402.timeUInt32erval42ChargingElectLevel = ((ByteUtils.DToUInt32(data, 329)*0.001)).ToString("F3");
|
|
|
|
|
CMD402.timeUInt32erval43ChargingElectLevel = ((ByteUtils.DToUInt32(data, 333)*0.001)).ToString("F3");
|
|
|
|
|
CMD402.timeUInt32erval44ChargingElectLevel = ((ByteUtils.DToUInt32(data, 337)*0.001)).ToString("F3");
|
|
|
|
|
CMD402.timeUInt32erval45ChargingElectLevel = ((ByteUtils.DToUInt32(data, 341)*0.001)).ToString("F3");
|
|
|
|
|
CMD402.timeUInt32erval46ChargingElectLevel = ((ByteUtils.DToUInt32(data, 345)*0.001)).ToString("F3");
|
|
|
|
|
CMD402.timeUInt32erval47ChargingElectLevel = ((ByteUtils.DToUInt32(data, 349)*0.001)).ToString("F3");
|
|
|
|
|
CMD402.timeUInt32erval48ChargingElectLevel = ((ByteUtils.DToUInt32(data, 353)*0.001)).ToString("F3");
|
|
|
|
|
CMD402.startWay = data[357];
|
|
|
|
|
CMD402.chargingSerialNum = Encoding.ASCII.GetString(data, 358, 32);
|
|
|
|
|
CMD402.chargingServiceCharge = ByteUtils.DToUInt32(data, 390);
|
|
|
|
|
CMD402.millennialpowerConsumption = (data[394] * 0.001).ToString("F4");
|
|
|
|
|
CMD402.parallelChargingMark = data[395];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
CMD402.beforeChargingElectMeter = ByteUtils.DToUInt32(data, 108);
|
|
|
|
|
CMD402.behindChargingElectMeter = ByteUtils.DToUInt32(data, 112);
|
|
|
|
|
CMD402.currentChargingMoney = ByteUtils.DToUInt32(data, 116);
|
|
|
|
@ -769,62 +981,23 @@ namespace BatCharging.Service.DataRlt
|
|
|
|
|
CMD402.allCharingRecordEntry = ByteUtils.DToUInt32(data, 132);
|
|
|
|
|
CMD402.reserved3 = data[136];
|
|
|
|
|
CMD402.chargingStrategy = data[137];
|
|
|
|
|
CMD402.chargingStrategyPara = (float)ByteUtils.ToUInt32(data, 138);
|
|
|
|
|
switch (data[137])
|
|
|
|
|
{
|
|
|
|
|
case 1:
|
|
|
|
|
CMD402.chargingStrategyPara = (ByteUtils.ToUInt32(data, 138)).ToString();
|
|
|
|
|
break;
|
|
|
|
|
case 2:
|
|
|
|
|
CMD402.chargingStrategyPara = ((float)ByteUtils.ToUInt32(data, 138) * 0.01).ToString("F2");
|
|
|
|
|
break;
|
|
|
|
|
case 3:
|
|
|
|
|
CMD402.chargingStrategyPara = ((float)ByteUtils.ToUInt32(data, 138) * 0.01).ToString("F3");
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
CMD402.carVin = Encoding.ASCII.GetString(data, 142, 17);
|
|
|
|
|
CMD402.carNum = Encoding.ASCII.GetString(data, 159, 8);
|
|
|
|
|
CMD402.timeUInt32erval1ChargingElectLevel = Encoding.ASCII.GetString(data, 167, 2);
|
|
|
|
|
CMD402.timeUInt32erval2ChargingElectLevel = Encoding.ASCII.GetString(data, 169, 2);
|
|
|
|
|
CMD402.timeUInt32erval3ChargingElectLevel = Encoding.ASCII.GetString(data, 171, 2);
|
|
|
|
|
CMD402.timeUInt32erval4ChargingElectLevel = Encoding.ASCII.GetString(data, 173, 2);
|
|
|
|
|
CMD402.timeUInt32erval5ChargingElectLevel = Encoding.ASCII.GetString(data, 175, 2);
|
|
|
|
|
CMD402.timeUInt32erval6ChargingElectLevel = Encoding.ASCII.GetString(data, 177, 2);
|
|
|
|
|
CMD402.timeUInt32erval7ChargingElectLevel = Encoding.ASCII.GetString(data, 179, 2);
|
|
|
|
|
CMD402.timeUInt32erval8ChargingElectLevel = Encoding.ASCII.GetString(data, 181, 2);
|
|
|
|
|
CMD402.timeUInt32erval9ChargingElectLevel = Encoding.ASCII.GetString(data, 183, 2);
|
|
|
|
|
CMD402.timeUInt32erval10ChargingElectLevel = Encoding.ASCII.GetString(data, 183, 2);
|
|
|
|
|
CMD402.timeUInt32erval11ChargingElectLevel = Encoding.ASCII.GetString(data, 185, 2);
|
|
|
|
|
CMD402.timeUInt32erval12ChargingElectLevel = Encoding.ASCII.GetString(data, 187, 2);
|
|
|
|
|
CMD402.timeUInt32erval13ChargingElectLevel = Encoding.ASCII.GetString(data, 189, 2);
|
|
|
|
|
CMD402.timeUInt32erval14ChargingElectLevel = Encoding.ASCII.GetString(data, 191, 2);
|
|
|
|
|
CMD402.timeUInt32erval15ChargingElectLevel = Encoding.ASCII.GetString(data, 193, 2);
|
|
|
|
|
CMD402.timeUInt32erval16ChargingElectLevel = Encoding.ASCII.GetString(data, 195, 2);
|
|
|
|
|
CMD402.timeUInt32erval17ChargingElectLevel = Encoding.ASCII.GetString(data, 197, 2);
|
|
|
|
|
CMD402.timeUInt32erval18ChargingElectLevel = Encoding.ASCII.GetString(data, 199, 2);
|
|
|
|
|
CMD402.timeUInt32erval19ChargingElectLevel = Encoding.ASCII.GetString(data, 201, 2);
|
|
|
|
|
CMD402.timeUInt32erval20ChargingElectLevel = Encoding.ASCII.GetString(data, 203, 2);
|
|
|
|
|
CMD402.timeUInt32erval21ChargingElectLevel = Encoding.ASCII.GetString(data, 205, 2);
|
|
|
|
|
CMD402.timeUInt32erval22ChargingElectLevel = Encoding.ASCII.GetString(data, 207, 2);
|
|
|
|
|
CMD402.timeUInt32erval23ChargingElectLevel = Encoding.ASCII.GetString(data, 209, 2);
|
|
|
|
|
CMD402.timeUInt32erval24ChargingElectLevel = Encoding.ASCII.GetString(data, 211, 2);
|
|
|
|
|
CMD402.timeUInt32erval25ChargingElectLevel = Encoding.ASCII.GetString(data, 213, 2);
|
|
|
|
|
CMD402.timeUInt32erval26ChargingElectLevel = Encoding.ASCII.GetString(data, 215, 2);
|
|
|
|
|
CMD402.timeUInt32erval27ChargingElectLevel = Encoding.ASCII.GetString(data, 217, 2);
|
|
|
|
|
CMD402.timeUInt32erval28ChargingElectLevel = Encoding.ASCII.GetString(data, 219, 2);
|
|
|
|
|
CMD402.timeUInt32erval29ChargingElectLevel = Encoding.ASCII.GetString(data, 221, 2);
|
|
|
|
|
CMD402.timeUInt32erval30ChargingElectLevel = Encoding.ASCII.GetString(data, 223, 2);
|
|
|
|
|
CMD402.timeUInt32erval31ChargingElectLevel = Encoding.ASCII.GetString(data, 225, 2);
|
|
|
|
|
CMD402.timeUInt32erval32ChargingElectLevel = Encoding.ASCII.GetString(data, 227, 2);
|
|
|
|
|
CMD402.timeUInt32erval33ChargingElectLevel = Encoding.ASCII.GetString(data, 229, 2);
|
|
|
|
|
CMD402.timeUInt32erval34ChargingElectLevel = Encoding.ASCII.GetString(data, 231, 2);
|
|
|
|
|
CMD402.timeUInt32erval35ChargingElectLevel = Encoding.ASCII.GetString(data, 233, 2);
|
|
|
|
|
CMD402.timeUInt32erval36ChargingElectLevel = Encoding.ASCII.GetString(data, 235, 2);
|
|
|
|
|
CMD402.timeUInt32erval37ChargingElectLevel = Encoding.ASCII.GetString(data, 237, 2);
|
|
|
|
|
CMD402.timeUInt32erval38ChargingElectLevel = Encoding.ASCII.GetString(data, 239, 2);
|
|
|
|
|
CMD402.timeUInt32erval39ChargingElectLevel = Encoding.ASCII.GetString(data, 241, 2);
|
|
|
|
|
CMD402.timeUInt32erval40ChargingElectLevel = Encoding.ASCII.GetString(data, 243, 2);
|
|
|
|
|
CMD402.timeUInt32erval41ChargingElectLevel = Encoding.ASCII.GetString(data, 245, 2);
|
|
|
|
|
CMD402.timeUInt32erval42ChargingElectLevel = Encoding.ASCII.GetString(data, 247, 2);
|
|
|
|
|
CMD402.timeUInt32erval43ChargingElectLevel = Encoding.ASCII.GetString(data, 249, 2);
|
|
|
|
|
CMD402.timeUInt32erval44ChargingElectLevel = Encoding.ASCII.GetString(data, 251, 2);
|
|
|
|
|
CMD402.timeUInt32erval45ChargingElectLevel = Encoding.ASCII.GetString(data, 253, 2);
|
|
|
|
|
CMD402.timeUInt32erval46ChargingElectLevel = Encoding.ASCII.GetString(data, 255, 2);
|
|
|
|
|
CMD402.timeUInt32erval47ChargingElectLevel = Encoding.ASCII.GetString(data, 257, 2);
|
|
|
|
|
CMD402.timeUInt32erval48ChargingElectLevel = Encoding.ASCII.GetString(data, 259, 2);
|
|
|
|
|
CMD402.startWay = data[261];
|
|
|
|
|
CMD402.chargingSerialNum = Encoding.ASCII.GetString(data, 262, 32);
|
|
|
|
|
CMD402.chargingServiceCharge = ByteUtils.DToUInt32(data, 294);
|
|
|
|
|
CMD402.millennialpowerConsumption = data[298];
|
|
|
|
|
CMD402.parallelChargingMark = data[299];
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
return CMD402;
|
|
|
|
|
}
|
|
|
|
|