master
CZ 8 months ago committed by lch
commit ac8d4ad3ee

@ -61,15 +61,15 @@ namespace BatCharging.Model
/// <summary>
/// 本次充电电量
/// </summary>
public UInt32 value13 { get; set; }
public string value13 { get; set; }
/// <summary>
/// 充电前电表读数
/// </summary>
public UInt32 value14 { get; set; }
public string value14 { get; set; }
/// <summary>
/// 充电后电表读数
/// </summary>
public UInt32 value15 { get; set; }
public string value15 { get; set; }
/// <summary>
/// 本次充电金额
/// </summary>
@ -77,7 +77,7 @@ namespace BatCharging.Model
/// <summary>
/// 内部索引号
/// </summary>
public UInt32 value17 { get; set; }
public int value17 { get; set; }
/// <summary>
/// 充电前卡余额
/// </summary>
@ -109,7 +109,7 @@ namespace BatCharging.Model
/// 金额单位为 0.01 元
/// 电量时单位为 0.01kw
/// </summary>
public UInt32 value23 { get; set; }
public string value23 { get; set; }
/// <summary>
/// 车辆 VIN 17
/// </summary>

@ -1086,8 +1086,8 @@ namespace BatCharging.Service
case 102:
{
CMD102 CMD102 = new MsgReceiveCMDCom().ConCMD102(data);
string result = "(CMD=10)充电桩上传命令请求(预留) - 接收字节内容:" + ByteUtils.BytesToHexStr(data) + "";
result += "\r\n" + "(CMD=10)充电桩上传命令请求(预留)对象:" + JsonConvert.SerializeObject(CMD102);
string result = "(CMD=10)充电桩上传心跳包信息 - 接收字节内容:" + ByteUtils.BytesToHexStr(data) + "";
result += "\r\n" + "(CMD=10)充电桩上传心跳包信息对象:" + JsonConvert.SerializeObject(CMD102);
Log.LogInstance.WriteLog(result, LogType.Information, "Charger" + "充电机编码");
if (CMD102 != null)
@ -1102,8 +1102,8 @@ namespace BatCharging.Service
case 104:
{
CMD104 CMD104 = new MsgReceiveCMDCom().ConCMD104(data);
string result = "(CMD=10)充电桩上传命令请求(预留) - 接收字节内容:" + ByteUtils.BytesToHexStr(data) + "";
result += "\r\n" + "(CMD=10)充电桩上传命令请求(预留)对象:" + JsonConvert.SerializeObject(CMD104);
string result = "(CMD=10)充电桩状态信息包上报 - 接收字节内容:" + ByteUtils.BytesToHexStr(data) + "";
result += "\r\n" + "(CMD=10)充电桩状态信息包上报对象:" + JsonConvert.SerializeObject(CMD104);
Log.LogInstance.WriteLog(result, LogType.Information, "Charger" + "充电机编码");
if (CMD104 != null)
@ -1122,8 +1122,8 @@ namespace BatCharging.Service
case 106:
{
CMD106 CMD106 = new MsgReceiveCMDCom().ConCMD106(data);
string result = "(CMD=10)充电桩上传命令请求(预留) - 接收字节内容:" + ByteUtils.BytesToHexStr(data) + "";
result += "\r\n" + "(CMD=10)充电桩上传命令请求(预留)对象:" + JsonConvert.SerializeObject(CMD106);
string result = "(CMD=10)充电桩签到信息上报 - 接收字节内容:" + ByteUtils.BytesToHexStr(data) + "";
result += "\r\n" + "(CMD=10)充电桩签到信息上报对象:" + JsonConvert.SerializeObject(CMD106);
Log.LogInstance.WriteLog(result, LogType.Information, "Charger" + "充电机编码");
if (CMD106 != null)
@ -1138,8 +1138,8 @@ namespace BatCharging.Service
case 108:
{
CMD108 CMD108 = new MsgReceiveCMDCom().ConCMD108(data);
string result = "(CMD=10)充电桩上传命令请求(预留) - 接收字节内容:" + ByteUtils.BytesToHexStr(data) + "";
result += "\r\n" + "(CMD=10)充电桩上传命令请求(预留)对象:" + JsonConvert.SerializeObject(CMD108);
string result = "(CMD=10)充电桩告警信息上报(预留) - 接收字节内容:" + ByteUtils.BytesToHexStr(data) + "";
result += "\r\n" + "(CMD=10)充电桩告警信息上报(预留)对象:" + JsonConvert.SerializeObject(CMD108);
Log.LogInstance.WriteLog(result, LogType.Information, "Charger" + "充电机编码");
if (CMD108 != null)
@ -1153,8 +1153,8 @@ namespace BatCharging.Service
case 110:
{
CMD110 CMD110 = new MsgReceiveCMDCom().ConCMD110(data);
string result = "(CMD=10)充电桩上传命令请求(预留) - 接收字节内容:" + ByteUtils.BytesToHexStr(data) + "";
result += "\r\n" + "(CMD=10)充电桩上传命令请求(预留)对象:" + JsonConvert.SerializeObject(CMD110);
string result = "(CMD=10)充电桩上报充电启动完成命令(预留) - 接收字节内容:" + ByteUtils.BytesToHexStr(data) + "";
result += "\r\n" + "(CMD=10)充电桩上报充电启动完成命令(预留)对象:" + JsonConvert.SerializeObject(CMD110);
Log.LogInstance.WriteLog(result, LogType.Information, "Charger" + "充电机编码");
if (CMD110 != null)
@ -1168,8 +1168,8 @@ namespace BatCharging.Service
case 112:
{
CMD112 CMD112 = new MsgReceiveCMDCom().ConCMD112(data);
string result = "(CMD=10)充电桩上传命令请求(预留) - 接收字节内容:" + ByteUtils.BytesToHexStr(data) + "";
result += "\r\n" + "(CMD=10)充电桩上传命令请求(预留)对象:" + JsonConvert.SerializeObject(CMD112);
string result = "(CMD=10)充电桩模块信息上报(预留) - 接收字节内容:" + ByteUtils.BytesToHexStr(data) + "";
result += "\r\n" + "(CMD=10)充电桩模块信息上报对象:" + JsonConvert.SerializeObject(CMD112);
Log.LogInstance.WriteLog(result, LogType.Information, "Charger" + "充电机编码");
if (CMD112 != null)
@ -1184,18 +1184,13 @@ namespace BatCharging.Service
case 114:
{
CMD114 CMD114 = new MsgReceiveCMDCom().ConCMD114(data);
string result = "(CMD=10)充电桩上传命令请求(预留) - 接收字节内容:" + ByteUtils.BytesToHexStr(data) + "";
result += "\r\n" + "(CMD=10)充电桩上传命令请求(预留)对象:" + JsonConvert.SerializeObject(CMD114);
string result = "(CMD=10)充电桩应答服务器查询最近一次充电各时段信息 - 接收字节内容:" + ByteUtils.BytesToHexStr(data) + "";
result += "\r\n" + "(CMD=10)充电桩应答服务器查询最近一次充电各时段信息对象:" + JsonConvert.SerializeObject(CMD114);
Log.LogInstance.WriteLog(result, LogType.Information, "Charger" + "充电机编码");
if (CMD114 != null)
{
byte chargeNum = 0;
byte sign = 0;
//(CMD=9)后台服务器应答桩上传命令请求(预留)
CmnChargerParam._CHR00TCPCLIENT.Send113(chargeNum, sign);
//todo
}
}
break;
@ -1204,31 +1199,30 @@ namespace BatCharging.Service
#region 充电信息数据
case 202:
case 222:
{
CMD202 CMD202 = new MsgReceiveCMDCom().ConCMD202(data);
string result = "(CMD=10)充电桩上传命令请求(预留) - 接收字节内容:" + ByteUtils.BytesToHexStr(data) + "";
result += "\r\n" + "(CMD=10)充电桩上传命令请求(预留)对象:" + JsonConvert.SerializeObject(CMD202);
CMD202 CMD202 = new MsgReceiveCMDCom().ConCMD202(func,data);
string result = "充电桩上报充电记录信息 - 接收字节内容:" + ByteUtils.BytesToHexStr(data) + "";
result += "\r\n" + "上报充电记录信息对象:" + JsonConvert.SerializeObject(CMD202);
Log.LogInstance.WriteLog(result, LogType.Information, "Charger" + "充电机编码");
if (CMD202 != null)
{
//(CMD=9)后台服务器应答桩上传命令请求(预留)
//CmnChargerParam._CHR00TCPCLIENT.Send201();
//todo
CmnChargerParam._CHR00TCPCLIENT.Send201(CMD202,);
}
}
break;
case 204:
{
CMD204 CMD204 = new MsgReceiveCMDCom().ConCMD204(data);
string result = "(CMD=10)充电桩上传命令请求(预留) - 接收字节内容:" + ByteUtils.BytesToHexStr(data) + "";
result += "\r\n" + "(CMD=10)充电桩上传命令请求(预留)对象:" + JsonConvert.SerializeObject(CMD204);
string result = "充电桩充电上传用户账户查询报文 - 接收字节内容:" + ByteUtils.BytesToHexStr(data) + "";
result += "\r\n" + "充电桩充电上传用户账户查询报文对象:" + JsonConvert.SerializeObject(CMD204);
Log.LogInstance.WriteLog(result, LogType.Information, "Charger" + "充电机编码");
if (CMD204 != null)
{
//(CMD=9)后台服务器应答桩上传命令请求(预留)
//CmnChargerParam._CHR00TCPCLIENT.Send203();
CmnChargerParam._CHR00TCPCLIENT.Send203();
}
}
@ -1236,14 +1230,13 @@ namespace BatCharging.Service
case 206:
{
CMD206 CMD206 = new MsgReceiveCMDCom().ConCMD206(data);
string result = "(CMD=10)充电桩上传命令请求(预留) - 接收字节内容:" + ByteUtils.BytesToHexStr(data) + "";
result += "\r\n" + "(CMD=10)充电桩上传命令请求(预留)对象:" + JsonConvert.SerializeObject(CMD206);
string result = "充电桩充电上传用户密码验证报文 - 接收字节内容:" + ByteUtils.BytesToHexStr(data) + "";
result += "\r\n" + "充电桩充电上传用户密码验证报文对象:" + JsonConvert.SerializeObject(CMD206);
Log.LogInstance.WriteLog(result, LogType.Information, "Charger" + "充电机编码");
if (CMD206 != null)
{
//(CMD=9)后台服务器应答桩上传命令请求(预留)
//CmnChargerParam._CHR00TCPCLIENT.Send205();
CmnChargerParam._CHR00TCPCLIENT.Send205();
}
}
@ -1251,14 +1244,12 @@ namespace BatCharging.Service
case 208:
{
CMD208 CMD208 = new MsgReceiveCMDCom().ConCMD208(data);
string result = "(CMD=10)充电桩上传命令请求(预留) - 接收字节内容:" + ByteUtils.BytesToHexStr(data) + "";
result += "\r\n" + "(CMD=10)充电桩上传命令请求(预留)对象:" + JsonConvert.SerializeObject(CMD208);
string result = "充电桩上报“即插即充”启动充电请求 - 接收字节内容:" + ByteUtils.BytesToHexStr(data) + "";
result += "\r\n" + "充电桩上报“即插即充”启动充电请求对象:" + JsonConvert.SerializeObject(CMD208);
Log.LogInstance.WriteLog(result, LogType.Information, "Charger" + "充电机编码");
if (CMD208 != null)
{
//(CMD=9)后台服务器应答桩上传命令请求(预留)
CmnChargerParam._CHR00TCPCLIENT.Send207(CMD208, "", "", 0, 0, 0, 0);
}
@ -1267,8 +1258,8 @@ namespace BatCharging.Service
case 210:
{
CMD210 CMD210 = new MsgReceiveCMDCom().ConCMD210(data);
string result = "(CMD=10)充电桩上传命令请求(预留) - 接收字节内容:" + ByteUtils.BytesToHexStr(data) + "";
result += "\r\n" + "(CMD=10)充电桩上传命令请求(预留)对象" + JsonConvert.SerializeObject(CMD210);
string result = "充电桩上报“即插即充”启动充电结果 - 接收字节内容:" + ByteUtils.BytesToHexStr(data) + "";
result += "\r\n" + "充电桩上报“即插即充”启动充电结果" + JsonConvert.SerializeObject(CMD210);
Log.LogInstance.WriteLog(result, LogType.Information, "Charger" + "充电机编码");
if (CMD210 != null)
@ -1286,8 +1277,8 @@ namespace BatCharging.Service
case 302:
{
CMD302 CMD302 = new MsgReceiveCMDCom().ConCMD302(data);
string result = "(CMD=10)充电桩上传命令请求(预留) - 接收字节内容:" + ByteUtils.BytesToHexStr(data) + "";
result += "\r\n" + "(CMD=10)充电桩上传命令请求(预留)对象:" + JsonConvert.SerializeObject(CMD302);
string result = "充电桩上报BMS信息 - 接收字节内容:" + ByteUtils.BytesToHexStr(data) + "";
result += "\r\n" + "充电桩上报BMS信息对象:" + JsonConvert.SerializeObject(CMD302);
Log.LogInstance.WriteLog(result, LogType.Information, "Charger" + "充电机编码");
if (CMD302 != null)
@ -1301,8 +1292,8 @@ namespace BatCharging.Service
case 304:
{
CMD304 CMD304 = new MsgReceiveCMDCom().ConCMD304(data);
string result = "(CMD=10)充电桩上传命令请求(预留) - 接收字节内容:" + ByteUtils.BytesToHexStr(data) + "";
result += "\r\n" + "(CMD=10)充电桩上传命令请求(预留)对象:" + JsonConvert.SerializeObject(CMD304);
string result = "充电桩上报BMS信息(预留-暂时不用) - 接收字节内容:" + ByteUtils.BytesToHexStr(data) + "";
result += "\r\n" + "充电桩上报BMS信息(预留-暂时不用)对象:" + JsonConvert.SerializeObject(CMD304);
Log.LogInstance.WriteLog(result, LogType.Information, "Charger" + "充电机编码");
if (CMD304 != null)
@ -1319,17 +1310,13 @@ namespace BatCharging.Service
case 402:
{
CMD402 CMD402 = new MsgReceiveCMDCom().ConCMD402(data);
string result = "(CMD=10)充电桩上传命令请求(预留) - 接收字节内容:" + ByteUtils.BytesToHexStr(data) + "";
result += "\r\n" + "(CMD=10)充电桩上传命令请求(预留)对象" + JsonConvert.SerializeObject(CMD402);
string result = "充电桩上报历史的充电记录 - 接收字节内容:" + ByteUtils.BytesToHexStr(data) + "";
result += "\r\n" + "充电桩上报历史的充电记录" + JsonConvert.SerializeObject(CMD402);
Log.LogInstance.WriteLog(result, LogType.Information, "Charger" + "充电机编码");
if (CMD402 != null)
{
//(CMD=9)后台服务器应答桩上传命令请求(预留)
uint startIndex = 0;
string chargingSerialNum = "";
CmnChargerParam._CHR00TCPCLIENT.Send401(chargingSerialNum, startIndex);
//todo
}
}
break;
@ -1339,14 +1326,13 @@ namespace BatCharging.Service
case 1002:
{
CMD1002 CMD1002 = new MsgReceiveCMDCom().ConCMD1002(data);
string result = "(CMD=10)充电桩上传命令请求(预留) - 接收字节内容:" + ByteUtils.BytesToHexStr(data) + "";
result += "\r\n" + "(CMD=10)充电桩上传命令请求(预留)对象:" + JsonConvert.SerializeObject(CMD1002);
string result = "充电桩回复服务器下发擦除指令 - 接收字节内容:" + ByteUtils.BytesToHexStr(data) + "";
result += "\r\n" + "充电桩回复服务器下发擦除指令对象:" + JsonConvert.SerializeObject(CMD1002);
Log.LogInstance.WriteLog(result, LogType.Information, "Charger" + "充电机编码");
if (CMD1002 != null)
{
//(CMD=9)后台服务器应答桩上传命令请求(预留)
//CmnChargerParam._CHR00TCPCLIENT.Send1001();
//todo
}
}
@ -1354,89 +1340,81 @@ namespace BatCharging.Service
case 1004:
{
CMD1004 CMD1004 = new MsgReceiveCMDCom().ConCMD1004(data);
string result = "(CMD=10)充电桩上传命令请求(预留) - 接收字节内容:" + ByteUtils.BytesToHexStr(data) + "";
result += "\r\n" + "(CMD=10)充电桩上传命令请求(预留)对象:" + JsonConvert.SerializeObject(CMD1004);
string result = "充电桩应答服务器下发升级文件名指令 - 接收字节内容:" + ByteUtils.BytesToHexStr(data) + "";
result += "\r\n" + "充电桩应答服务器下发升级文件名指令对象:" + JsonConvert.SerializeObject(CMD1004);
Log.LogInstance.WriteLog(result, LogType.Information, "Charger" + "充电机编码");
if (CMD1004 != null)
{
//(CMD=9)后台服务器应答桩上传命令请求(预留)
//CmnChargerParam._CHR00TCPCLIENT.Send1003();
//todo
}
}
break;
case 1006:
{
CMD1006 CMD1006 = new MsgReceiveCMDCom().ConCMD1006(data);
string result = "(CMD=10)充电桩上传命令请求(预留) - 接收字节内容:" + ByteUtils.BytesToHexStr(data) + "";
result += "\r\n" + "(CMD=10)充电桩上传命令请求(预留)对象:" + JsonConvert.SerializeObject(CMD1006);
string result = "充电桩应答服务器下发升级文件大小指令 - 接收字节内容:" + ByteUtils.BytesToHexStr(data) + "";
result += "\r\n" + "充电桩应答服务器下发升级文件大小指令对象:" + JsonConvert.SerializeObject(CMD1006);
Log.LogInstance.WriteLog(result, LogType.Information, "Charger" + "充电机编码");
if (CMD1006 != null)
{
//(CMD=9)后台服务器应答桩上传命令请求(预留)
//CmnChargerParam._CHR00TCPCLIENT.Send1005();
//todo
}
}
break;
case 1008:
{
CMD1008 CMD1008 = new MsgReceiveCMDCom().ConCMD1008(data);
string result = "(CMD=10)充电桩上传命令请求(预留) - 接收字节内容:" + ByteUtils.BytesToHexStr(data) + "";
result += "\r\n" + "(CMD=10)充电桩上传命令请求(预留)对象:" + JsonConvert.SerializeObject(CMD1008);
string result = "充电桩应答服务器下发升级文件数据指令 - 接收字节内容:" + ByteUtils.BytesToHexStr(data) + "";
result += "\r\n" + "充电桩应答服务器下发升级文件数据指令对象:" + JsonConvert.SerializeObject(CMD1008);
Log.LogInstance.WriteLog(result, LogType.Information, "Charger" + "充电机编码");
if (CMD1008 != null)
{
//(CMD=9)后台服务器应答桩上传命令请求(预留)
//CmnChargerParam._CHR00TCPCLIENT.Send1007();
//todo
}
}
break;
case 1010:
{
CMD1010 CMD1010 = new MsgReceiveCMDCom().ConCMD1010(data);
string result = "(CMD=10)充电桩上传命令请求(预留) - 接收字节内容:" + ByteUtils.BytesToHexStr(data) + "";
result += "\r\n" + "(CMD=10)充电桩上传命令请求(预留)对象:" + JsonConvert.SerializeObject(CMD1010);
string result = "充电桩应答服务器下发升级文件数据结束指令 - 接收字节内容:" + ByteUtils.BytesToHexStr(data) + "";
result += "\r\n" + "充电桩应答服务器下发升级文件数据结束指令对象:" + JsonConvert.SerializeObject(CMD1010);
Log.LogInstance.WriteLog(result, LogType.Information, "Charger" + "充电机编码");
if (CMD1010 != null)
{
//(CMD=9)后台服务器应答桩上传命令请求(预留)
CmnChargerParam._CHR00TCPCLIENT.Send1009();
//todo
}
}
break;
case 1012:
{
CMD1012 CMD1012 = new MsgReceiveCMDCom().ConCMD1012(data);
string result = "(CMD=10)充电桩上传命令请求(预留) - 接收字节内容:" + ByteUtils.BytesToHexStr(data) + "";
result += "\r\n" + "(CMD=10)充电桩上传命令请求(预留)对象:" + JsonConvert.SerializeObject(CMD1012);
string result = "充电桩应答服务器下发重启指令- 接收字节内容:" + ByteUtils.BytesToHexStr(data) + "";
result += "\r\n" + "充电桩应答服务器下发重启指令对象:" + JsonConvert.SerializeObject(CMD1012);
Log.LogInstance.WriteLog(result, LogType.Information, "Charger" + "充电机编码");
if (CMD1012 != null)
{
//(CMD=9)后台服务器应答桩上传命令请求(预留)
CmnChargerParam._CHR00TCPCLIENT.Send1011();
//todo
}
}
break;
case 1022:
{
CMD1022 CMD1022 = new MsgReceiveCMDCom().ConCMD1022(data);
string result = "(CMD=10)充电桩上传命令请求(预留) - 接收字节内容:" + ByteUtils.BytesToHexStr(data) + "";
result += "\r\n" + "(CMD=10)充电桩上传命令请求(预留)对象:" + JsonConvert.SerializeObject(CMD1022);
string result = "充电桩主动请求升级命令 - 接收字节内容:" + ByteUtils.BytesToHexStr(data) + "";
result += "\r\n" + "充电桩主动请求升级命令对象:" + JsonConvert.SerializeObject(CMD1022);
Log.LogInstance.WriteLog(result, LogType.Information, "Charger" + "充电机编码");
if (CMD1022 != null)
{
//(CMD=9)后台服务器应答桩上传命令请求(预留)
//CmnChargerParam._CHR00TCPCLIENT.Send1021();
uint results = 0;
string description = "";
//服务器回复充电桩主动请求升级命令
CmnChargerParam._CHR00TCPCLIENT.Send1021( results, description);
}
}
@ -1447,102 +1425,26 @@ namespace BatCharging.Service
case 1102:
{
CMD1102 CMD1102 = new MsgReceiveCMDCom().ConCMD1102(data);
string result = "(CMD=10)充电桩上传命令请求(预留) - 接收字节内容:" + ByteUtils.BytesToHexStr(data) + "";
result += "\r\n" + "(CMD=10)充电桩上传命令请求(预留)对象:" + JsonConvert.SerializeObject(CMD1102);
string result = "充电桩应答后台服务器查询24时电费计价策略信息- 接收字节内容:" + ByteUtils.BytesToHexStr(data) + "";
result += "\r\n" + "充电桩应答后台服务器查询24时电费计价策略信息对象:" + JsonConvert.SerializeObject(CMD1102);
Log.LogInstance.WriteLog(result, LogType.Information, "Charger" + "充电机编码");
if (CMD1102 != null)
{
//(CMD=9)后台服务器应答桩上传命令请求(预留)
//todo
}
}
break;
case 1104:
{
CMD1104 CMD1104 = new MsgReceiveCMDCom().ConCMD1104(data);
string result = "(CMD=10)充电桩上传命令请求(预留) - 接收字节内容:" + ByteUtils.BytesToHexStr(data) + "";
result += "\r\n" + "(CMD=10)充电桩上传命令请求(预留)对象:" + JsonConvert.SerializeObject(CMD1104);
string result = "充电桩应答后台服务器设置24时电费计价策略信息 - 接收字节内容:" + ByteUtils.BytesToHexStr(data) + "";
result += "\r\n" + "充电桩应答后台服务器设置24时电费计价策略信息对象:" + JsonConvert.SerializeObject(CMD1104);
Log.LogInstance.WriteLog(result, LogType.Information, "Charger" + "充电机编码");
if (CMD1104 != null)
{
CMD1103 CMD = new CMD1103();
CMD.startHour1 = 0;
CMD.startMinute1 = 0;
CMD.endHour1 = 0;
CMD.endMinute1 = 0;
CMD.rate1 = 0;
CMD.startHour2 = 0;
CMD.startMinute2 = 0;
CMD.endHour2 = 0;
CMD.endMinute2 = 0;
CMD.rate2 = 0;
CMD.startHour3 = 0;
CMD.startMinute3 = 0;
CMD.endHour3 = 0;
CMD.endMinute3 = 0;
CMD.rate3 = 0;
CMD.startHour4 = 0;
CMD.startMinute4 = 0;
CMD.endHour4 = 0;
CMD.endMinute4 = 0;
CMD.rate4 = 0;
CMD.startHour5 = 0;
CMD.startMinute5 = 0;
CMD.endHour5 = 0;
CMD.endMinute5 = 0;
CMD.rate5 = 0;
CMD.startHour6 = 0;
CMD.startMinute6 = 0;
CMD.endHour6 = 0;
CMD.endMinute6 = 0;
CMD.rate6 = 0;
CMD.startHour7 = 0;
CMD.startMinute7 = 0;
CMD.endHour7 = 0;
CMD.endMinute7 = 0;
CMD.rate7 = 0;
CMD.startHour8 = 0;
CMD.startMinute8 = 0;
CMD.endHour8 = 0;
CMD.endMinute8 = 0;
CMD.rate8 = 0;
CMD.startHour9 = 0;
CMD.startMinute9 = 0;
CMD.endHour9 = 0;
CMD.endMinute9 = 0;
CMD.rate9 = 0;
CMD.startHour10 = 0;
CMD.startMinute10 = 0;
CMD.endHour10 = 0;
CMD.endMinute10 = 0;
CMD.rate10 = 0;
CMD.startHour11 = 0;
CMD.startMinute11 = 0;
CMD.endHour11 = 0;
CMD.endMinute11 = 0;
CMD.rate11 = 0;
CMD.startHour12 = 0;
CMD.startMinute12 = 0;
CMD.endHour12 = 0;
CMD.endMinute12 = 0;
CMD.rate12 = 0;
//(CMD=9)后台服务器应答桩上传命令请求(预留)
CmnChargerParam._CHR00TCPCLIENT.Send1103(CMD);
//todo
}
}
@ -1550,99 +1452,13 @@ namespace BatCharging.Service
case 1106:
{
CMD1106 CMD1106 = new MsgReceiveCMDCom().ConCMD1106(data);
string result = "(CMD=10)充电桩上传命令请求(预留) - 接收字节内容:" + ByteUtils.BytesToHexStr(data) + "";
result += "\r\n" + "(CMD=10)充电桩上传命令请求(预留)对象:" + JsonConvert.SerializeObject(CMD1106);
string result = "充电桩应答后台服务器设置分时段计价策略信息 - 接收字节内容:" + ByteUtils.BytesToHexStr(data) + "";
result += "\r\n" + "充电桩应答后台服务器设置分时段计价策略信息对象:" + JsonConvert.SerializeObject(CMD1106);
Log.LogInstance.WriteLog(result, LogType.Information, "Charger" + "充电机编码");
if (CMD1106 != null)
{
CMD1105 CMD = new CMD1105();
CMD.startHour1 = 0;
CMD.startMinute1 = 0;
CMD.endHour1 = 0;
CMD.endMinute1 = 0;
CMD.rate1 = 0;
CMD.reserveRate1 = 0;
CMD.startHour2 = 0;
CMD.startMinute2 = 0;
CMD.endHour2 = 0;
CMD.endMinute2 = 0;
CMD.rate2 = 0;
CMD.reserveRate2 = 0;
CMD.startHour3 = 0;
CMD.startMinute3 = 0;
CMD.endHour3 = 0;
CMD.endMinute3 = 0;
CMD.rate3 = 0;
CMD.reserveRate3 = 0;
CMD.startHour4 = 0;
CMD.startMinute4 = 0;
CMD.endHour4 = 0;
CMD.endMinute4 = 0;
CMD.rate4 = 0;
CMD.reserveRate4 = 0;
CMD.startHour5 = 0;
CMD.startMinute5 = 0;
CMD.endHour5 = 0;
CMD.endMinute5 = 0;
CMD.rate5 = 0;
CMD.reserveRate5 = 0;
CMD.startHour6 = 0;
CMD.startMinute6 = 0;
CMD.endHour6 = 0;
CMD.endMinute6 = 0;
CMD.rate6 = 0;
CMD.reserveRate6 = 0;
CMD.startHour7 = 0;
CMD.startMinute7 = 0;
CMD.endHour7 = 0;
CMD.endMinute7 = 0;
CMD.rate7 = 0;
CMD.reserveRate7 = 0;
CMD.startHour8 = 0;
CMD.startMinute8 = 0;
CMD.endHour8 = 0;
CMD.endMinute8 = 0;
CMD.rate8 = 0;
CMD.reserveRate8 = 0;
CMD.startHour9 = 0;
CMD.startMinute9 = 0;
CMD.endHour9 = 0;
CMD.endMinute9 = 0;
CMD.rate9 = 0;
CMD.reserveRate9 = 0;
CMD.startHour10 = 0;
CMD.startMinute10 = 0;
CMD.endHour10 = 0;
CMD.endMinute10 = 0;
CMD.rate10 = 0;
CMD.reserveRate10 = 0;
CMD.startHour11 = 0;
CMD.startMinute11 = 0;
CMD.endHour11 = 0;
CMD.endMinute11 = 0;
CMD.rate11 = 0;
CMD.reserveRate11 = 0;
CMD.startHour12 = 0;
CMD.startMinute12 = 0;
CMD.endHour12 = 0;
CMD.endMinute12 = 0;
CMD.rate12 = 0;
CMD.reserveRate12 = 0;
//(CMD=9)后台服务器应答桩上传命令请求(预留)
CmnChargerParam._CHR00TCPCLIENT.Send1105(CMD);
//todo
}
}
@ -1650,15 +1466,13 @@ namespace BatCharging.Service
case 1108:
{
CMD1108 CMD1108 = new MsgReceiveCMDCom().ConCMD1108(data);
string result = "(CMD=10)充电桩上传命令请求(预留) - 接收字节内容:" + ByteUtils.BytesToHexStr(data) + "";
result += "\r\n" + "(CMD=10)充电桩上传命令请求(预留)对象:" + JsonConvert.SerializeObject(CMD1108);
string result = "充电桩回复分时电费计价策略信息 - 接收字节内容:" + ByteUtils.BytesToHexStr(data) + "";
result += "\r\n" + "充电桩回复分时电费计价策略信息对象:" + JsonConvert.SerializeObject(CMD1108);
Log.LogInstance.WriteLog(result, LogType.Information, "Charger" + "充电机编码");
if (CMD1108 != null)
{
//(CMD=9)后台服务器应答桩上传命令请求(预留)
CmnChargerParam._CHR00TCPCLIENT.Send1107();
//todo
}
}
break;
@ -1668,34 +1482,13 @@ namespace BatCharging.Service
case 1302:
{
CMD1302 CMD1302 = new MsgReceiveCMDCom().ConCMD1302(data);
string result = "(CMD=10)充电桩上传命令请求(预留) - 接收字节内容:" + ByteUtils.BytesToHexStr(data) + "";
result += "\r\n" + "(CMD=10)充电桩上传命令请求(预留)对象:" + JsonConvert.SerializeObject(CMD1302);
string result = "充电桩应答白名单操作日志数据包 - 接收字节内容:" + ByteUtils.BytesToHexStr(data) + "";
result += "\r\n" + "充电桩应答白名单操作日志数据包对象:" + JsonConvert.SerializeObject(CMD1302);
Log.LogInstance.WriteLog(result, LogType.Information, "Charger" + "充电机编码");
if (CMD1302 != null)
{
CMD1301 CMD = new CMD1301();
CMD.reserved1 = 0;
CMD.reserved2 = 0;
//CMD.chargingStationCode = chargingStationCode;
//CMD.whitelistType = whitelistType;
//CMD.operation = operation;
//CMD.whitelistVersionNum = whitelistVersionNum;
//CMD.DistributeWhitelistNum = DistributeWhitelistNum;
//CMD.carVinOrChargCardNum01 = carVinOrChargCardNum01;
//CMD.carVinOrChargCardNum02 = carVinOrChargCardNum02;
//CMD.carVinOrChargCardNum03 = carVinOrChargCardNum03;
//CMD.carVinOrChargCardNum04 = carVinOrChargCardNum04;
//CMD.carVinOrChargCardNum05 = carVinOrChargCardNum05;
//CMD.carVinOrChargCardNum06 = carVinOrChargCardNum06;
//CMD.carVinOrChargCardNum07 = carVinOrChargCardNum07;
//CMD.carVinOrChargCardNum08 = carVinOrChargCardNum08;
//CMD.carVinOrChargCardNum09 = carVinOrChargCardNum09;
//CMD.carVinOrChargCardNum10 = carVinOrChargCardNum10;
//(CMD=9)后台服务器应答桩上传命令请求(预留)
CmnChargerParam._CHR00TCPCLIENT.Send1301(CMD);
//todo
}
}
@ -1706,45 +1499,39 @@ namespace BatCharging.Service
case 1402:
{
CMD1402 CMD1402 = new MsgReceiveCMDCom().ConCMD1402(data);
string result = "(CMD=10)充电桩上传命令请求(预留) - 接收字节内容:" + ByteUtils.BytesToHexStr(data) + "";
result += "\r\n" + "(CMD=10)充电桩上传命令请求(预留)对象:" + JsonConvert.SerializeObject(CMD1402);
string result = "充电桩应答服务器下发FTP远程升级命令- 接收字节内容:" + ByteUtils.BytesToHexStr(data) + "";
result += "\r\n" + "充电桩应答服务器下发FTP远程升级命令对象:" + JsonConvert.SerializeObject(CMD1402);
Log.LogInstance.WriteLog(result, LogType.Information, "Charger" + "充电机编码");
if (CMD1402 != null)
{
//(CMD=9)后台服务器应答桩上传命令请求(预留)
//CmnChargerParam._CHR00TCPCLIENT.Send1401();
//todo
}
}
break;
case 1403:
{
CMD1403 CMD1403 = new MsgReceiveCMDCom().ConCMD1403(data);
string result = "(CMD=10)充电桩上传命令请求(预留) - 接收字节内容:" + ByteUtils.BytesToHexStr(data) + "";
result += "\r\n" + "(CMD=10)充电桩上传命令请求(预留)对象:" + JsonConvert.SerializeObject(CMD1403);
string result = "充电桩应答FTP升级包下载进度 - 接收字节内容:" + ByteUtils.BytesToHexStr(data) + "";
result += "\r\n" + "充电桩应答FTP升级包下载进度对象:" + JsonConvert.SerializeObject(CMD1403);
Log.LogInstance.WriteLog(result, LogType.Information, "Charger" + "充电机编码");
if (CMD1403 != null)
{
//(CMD=9)后台服务器应答桩上传命令请求(预留)
//CmnChargerParam._CHR00TCPCLIENT.Send9();
//todo
}
}
break;
case 1407:
{
CMD1407 CMD1407 = new MsgReceiveCMDCom().ConCMD1407(data);
string result = "(CMD=10)充电桩上传命令请求(预留) - 接收字节内容:" + ByteUtils.BytesToHexStr(data) + "";
result += "\r\n" + "(CMD=10)充电桩上传命令请求(预留)对象:" + JsonConvert.SerializeObject(CMD1407);
string result = "充电桩应答服务器下发获取充电桩日志命令 - 接收字节内容:" + ByteUtils.BytesToHexStr(data) + "";
result += "\r\n" + "充电桩应答服务器下发获取充电桩日志命令对象:" + JsonConvert.SerializeObject(CMD1407);
Log.LogInstance.WriteLog(result, LogType.Information, "Charger" + "充电机编码");
if (CMD1407 != null)
{
//(CMD=9)后台服务器应答桩上传命令请求(预留)
//CmnChargerParam._CHR00TCPCLIENT.Send9();
//todo
}
}
break;

@ -604,8 +604,6 @@ namespace BatCharging.Service
internal void Send201(TcpClientChargerTool tcp_client, CMD202 CMD202, byte value06, uint value07, uint value08, uint value09, uint value10, uint value11, uint value12)
{
CMD201 CMD = new CMD201();
CMD.value01 = 0;
CMD.value02 = 0;
CMD.value03 = CMD202.value05;
CMD.value04 = CMD202.value06;
CMD.value05 = CMD202.value17;

@ -98,6 +98,7 @@ namespace BatCharging.Service
return (UInt32)(height << 16 | low);
}
/// <summary>
/// 16进制数高地位对调
/// </summary>

@ -383,7 +383,7 @@ namespace BatCharging.Service.DataRlt
}
return CMD114;
}
public CMD202 ConCMD202(byte[] data)
public CMD202 ConCMD202(uint func, byte[] data)
{
CMD202 CMD202 = null;
if (data != null && data.Length > 0)
@ -401,77 +401,168 @@ namespace BatCharging.Service.DataRlt
CMD202.value10 = data[98];
CMD202.value11 = data[99];
CMD202.value12 = ByteUtils.DToUInt32(data, 100);
CMD202.value13 = ByteUtils.DToUInt32(data, 104);
CMD202.value14 = ByteUtils.DToUInt32(data, 108);
CMD202.value15 = ByteUtils.DToUInt32(data, 112);
if (func == 202)
{
CMD202.value13 = (ByteUtils.DToUInt32(data, 104) * 0.01).ToString("F2");
CMD202.value14 = (ByteUtils.DToUInt32(data, 108) * 0.01).ToString("F2");
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.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];
}
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.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.value16 = ByteUtils.DToUInt32(data, 116);
CMD202.value17 = ByteUtils.DToUInt32(data, 120);
CMD202.value17 = BitConverter.ToInt32(data, 120);
CMD202.value18 = ByteUtils.DToUInt32(data, 124);
CMD202.value19 = ByteUtils.DToUInt32(data, 128);
CMD202.value20 = ByteUtils.DToUInt32(data, 132);
CMD202.value21 = data[136];
CMD202.value22 = data[137];
CMD202.value23 = ByteUtils.DToUInt32(data, 138);
switch (data[137])
{
case 1:
CMD202.value23 = ByteUtils.DToUInt32(data, 138).ToString();
break;
case 2:
CMD202.value23 = (ByteUtils.DToUInt32(data, 138) * 0.01).ToString("F2");
break;
case 3:
CMD202.value23 = (ByteUtils.DToUInt32(data, 138) * 0.01).ToString("F2");
break;
}
CMD202.value24 = Encoding.ASCII.GetString(data, 142, 17);
CMD202.value25 = Encoding.ASCII.GetString(data, 159, 8);
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.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];
}
return CMD202;
}

@ -433,6 +433,9 @@ namespace Monitor.ChargeTest
/// <param name="e"></param>
private void button1_Click(object sender, EventArgs e)
{
CmnChargerParam._CHR00TCPCLIENT.Send1101();
}
/// <summary>

Loading…
Cancel
Save