frm窗体更新Merge branch 'master' of http://180.76.133.253:16300/cz/CDJ3.19

master
CZ 10 months ago committed by lch
commit b3260281dd

@ -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;
@ -1206,29 +1201,27 @@ namespace BatCharging.Service
case 202:
{
CMD202 CMD202 = new MsgReceiveCMDCom().ConCMD202(data);
string result = "(CMD=10)充电桩上传命令请求(预留) - 接收字节内容:" + ByteUtils.BytesToHexStr(data) + "";
result += "\r\n" + "(CMD=10)充电桩上传命令请求(预留)对象:" + JsonConvert.SerializeObject(CMD202);
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 +1229,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 +1243,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 +1257,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 +1276,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 +1291,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 +1309,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 +1325,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 +1339,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 +1424,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 +1451,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 +1465,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 +1481,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 +1498,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;

@ -28,61 +28,91 @@
/// </summary>
private void InitializeComponent()
{
groupBox3 = new System.Windows.Forms.GroupBox();
label3 = new System.Windows.Forms.Label();
groupBox1 = new System.Windows.Forms.GroupBox();
lstBoxConnect = new System.Windows.Forms.ListBox();
txtDestAddr = new System.Windows.Forms.TextBox();
label2 = new System.Windows.Forms.Label();
txtChargePort = new System.Windows.Forms.TextBox();
label1 = new System.Windows.Forms.Label();
txtChargeIp = new System.Windows.Forms.TextBox();
BtnCloseConnect = new System.Windows.Forms.Button();
BtnChrg01Connect = new System.Windows.Forms.Button();
groupBox5 = new System.Windows.Forms.GroupBox();
lstSendFrameInfo = new System.Windows.Forms.ListBox();
groupBox9 = new System.Windows.Forms.GroupBox();
groupBox11 = new System.Windows.Forms.GroupBox();
button26 = new System.Windows.Forms.Button();
button20 = new System.Windows.Forms.Button();
button21 = new System.Windows.Forms.Button();
button24 = new System.Windows.Forms.Button();
button19 = new System.Windows.Forms.Button();
button23 = new System.Windows.Forms.Button();
button22 = new System.Windows.Forms.Button();
groupBox8 = new System.Windows.Forms.GroupBox();
groupBox12 = new System.Windows.Forms.GroupBox();
button12 = new System.Windows.Forms.Button();
button27 = new System.Windows.Forms.Button();
button28 = new System.Windows.Forms.Button();
button29 = new System.Windows.Forms.Button();
button30 = new System.Windows.Forms.Button();
button15 = new System.Windows.Forms.Button();
button14 = new System.Windows.Forms.Button();
button16 = new System.Windows.Forms.Button();
button17 = new System.Windows.Forms.Button();
button18 = new System.Windows.Forms.Button();
lstRecvFrameInfo = new System.Windows.Forms.ListBox();
groupBox2 = new System.Windows.Forms.GroupBox();
button1 = new System.Windows.Forms.Button();
button2 = new System.Windows.Forms.Button();
button3 = new System.Windows.Forms.Button();
button4 = new System.Windows.Forms.Button();
button5 = new System.Windows.Forms.Button();
button6 = new System.Windows.Forms.Button();
button7 = new System.Windows.Forms.Button();
button8 = new System.Windows.Forms.Button();
button9 = new System.Windows.Forms.Button();
button10 = new System.Windows.Forms.Button();
groupBox3.SuspendLayout();
groupBox1.SuspendLayout();
groupBox5.SuspendLayout();
groupBox9.SuspendLayout();
groupBox11.SuspendLayout();
groupBox8.SuspendLayout();
groupBox12.SuspendLayout();
groupBox2.SuspendLayout();
SuspendLayout();
this.groupBox3 = new System.Windows.Forms.GroupBox();
this.label3 = new System.Windows.Forms.Label();
this.groupBox1 = new System.Windows.Forms.GroupBox();
this.lstBoxConnect = new System.Windows.Forms.ListBox();
this.txtDestAddr = new System.Windows.Forms.TextBox();
this.label2 = new System.Windows.Forms.Label();
this.txtChargePort = new System.Windows.Forms.TextBox();
this.label1 = new System.Windows.Forms.Label();
this.txtChargeIp = new System.Windows.Forms.TextBox();
this.BtnCloseConnect = new System.Windows.Forms.Button();
this.BtnChrg01Connect = new System.Windows.Forms.Button();
this.groupBox5 = new System.Windows.Forms.GroupBox();
this.lstSendFrameInfo = new System.Windows.Forms.ListBox();
this.groupBox9 = new System.Windows.Forms.GroupBox();
this.groupBox11 = new System.Windows.Forms.GroupBox();
this.button26 = new System.Windows.Forms.Button();
this.button20 = new System.Windows.Forms.Button();
this.button21 = new System.Windows.Forms.Button();
this.button24 = new System.Windows.Forms.Button();
this.button19 = new System.Windows.Forms.Button();
this.button23 = new System.Windows.Forms.Button();
this.button22 = new System.Windows.Forms.Button();
this.groupBox8 = new System.Windows.Forms.GroupBox();
this.groupBox12 = new System.Windows.Forms.GroupBox();
this.button12 = new System.Windows.Forms.Button();
this.button27 = new System.Windows.Forms.Button();
this.button28 = new System.Windows.Forms.Button();
this.button29 = new System.Windows.Forms.Button();
this.button30 = new System.Windows.Forms.Button();
this.button15 = new System.Windows.Forms.Button();
this.button14 = new System.Windows.Forms.Button();
this.button16 = new System.Windows.Forms.Button();
this.button17 = new System.Windows.Forms.Button();
this.button18 = new System.Windows.Forms.Button();
this.lstRecvFrameInfo = new System.Windows.Forms.ListBox();
this.groupBox2 = new System.Windows.Forms.GroupBox();
this.button1 = new System.Windows.Forms.Button();
this.button2 = new System.Windows.Forms.Button();
this.button3 = new System.Windows.Forms.Button();
this.button4 = new System.Windows.Forms.Button();
this.button5 = new System.Windows.Forms.Button();
this.button6 = new System.Windows.Forms.Button();
this.button7 = new System.Windows.Forms.Button();
this.button8 = new System.Windows.Forms.Button();
this.button9 = new System.Windows.Forms.Button();
this.button10 = new System.Windows.Forms.Button();
this.groupBox4 = new System.Windows.Forms.GroupBox();
this.groupBox6 = new System.Windows.Forms.GroupBox();
this.groupBox7 = new System.Windows.Forms.GroupBox();
this.groupBox10 = new System.Windows.Forms.GroupBox();
this.groupBox13 = new System.Windows.Forms.GroupBox();
this.button11 = new System.Windows.Forms.Button();
this.button13 = new System.Windows.Forms.Button();
this.button25 = new System.Windows.Forms.Button();
this.button31 = new System.Windows.Forms.Button();
this.groupBox14 = new System.Windows.Forms.GroupBox();
this.button33 = new System.Windows.Forms.Button();
this.button34 = new System.Windows.Forms.Button();
this.groupBox15 = new System.Windows.Forms.GroupBox();
this.button36 = new System.Windows.Forms.Button();
this.groupBox16 = new System.Windows.Forms.GroupBox();
this.button37 = new System.Windows.Forms.Button();
this.button38 = new System.Windows.Forms.Button();
this.button39 = new System.Windows.Forms.Button();
this.button40 = new System.Windows.Forms.Button();
this.button32 = new System.Windows.Forms.Button();
this.button35 = new System.Windows.Forms.Button();
this.button41 = new System.Windows.Forms.Button();
this.button42 = new System.Windows.Forms.Button();
this.groupBox3.SuspendLayout();
this.groupBox1.SuspendLayout();
this.groupBox5.SuspendLayout();
this.groupBox9.SuspendLayout();
this.groupBox11.SuspendLayout();
this.groupBox8.SuspendLayout();
this.groupBox12.SuspendLayout();
this.groupBox4.SuspendLayout();
this.groupBox6.SuspendLayout();
this.groupBox7.SuspendLayout();
this.groupBox10.SuspendLayout();
this.groupBox13.SuspendLayout();
this.groupBox14.SuspendLayout();
this.groupBox15.SuspendLayout();
this.groupBox16.SuspendLayout();
this.SuspendLayout();
//
// groupBox3
//
@ -108,12 +138,12 @@
//
// label3
//
label3.AutoSize = true;
label3.Location = new System.Drawing.Point(343, 38);
label3.Name = "label3";
label3.Size = new System.Drawing.Size(94, 20);
label3.TabIndex = 20;
label3.Text = "DestAddr";
this.label3.AutoSize = true;
this.label3.Location = new System.Drawing.Point(343, 33);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(94, 20);
this.label3.TabIndex = 20;
this.label3.Text = "DestAddr";
//
// groupBox1
//
@ -204,16 +234,16 @@
//
// groupBox5
//
groupBox5.Controls.Add(lstSendFrameInfo);
groupBox5.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
groupBox5.Location = new System.Drawing.Point(6, 571);
groupBox5.Margin = new System.Windows.Forms.Padding(5);
groupBox5.Name = "groupBox5";
groupBox5.Padding = new System.Windows.Forms.Padding(5);
groupBox5.Size = new System.Drawing.Size(1538, 172);
groupBox5.TabIndex = 82;
groupBox5.TabStop = false;
groupBox5.Text = "发送数据帧信息";
this.groupBox5.Controls.Add(this.lstSendFrameInfo);
this.groupBox5.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
this.groupBox5.Location = new System.Drawing.Point(6, 477);
this.groupBox5.Margin = new System.Windows.Forms.Padding(5);
this.groupBox5.Name = "groupBox5";
this.groupBox5.Padding = new System.Windows.Forms.Padding(5);
this.groupBox5.Size = new System.Drawing.Size(1538, 172);
this.groupBox5.TabIndex = 82;
this.groupBox5.TabStop = false;
this.groupBox5.Text = "发送数据帧信息";
//
// lstSendFrameInfo
//
@ -482,153 +512,417 @@
//
// lstRecvFrameInfo
//
lstRecvFrameInfo.Anchor = System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right;
lstRecvFrameInfo.FormattingEnabled = true;
lstRecvFrameInfo.ItemHeight = 20;
lstRecvFrameInfo.Location = new System.Drawing.Point(10, 20);
lstRecvFrameInfo.Margin = new System.Windows.Forms.Padding(5);
lstRecvFrameInfo.Name = "lstRecvFrameInfo";
lstRecvFrameInfo.Size = new System.Drawing.Size(1528, 224);
lstRecvFrameInfo.TabIndex = 72;
this.lstRecvFrameInfo.Anchor = System.Windows.Forms.AnchorStyles.None;
this.lstRecvFrameInfo.FormattingEnabled = true;
this.lstRecvFrameInfo.ItemHeight = 20;
this.lstRecvFrameInfo.Location = new System.Drawing.Point(8, 659);
this.lstRecvFrameInfo.Margin = new System.Windows.Forms.Padding(5);
this.lstRecvFrameInfo.Name = "lstRecvFrameInfo";
this.lstRecvFrameInfo.Size = new System.Drawing.Size(1536, 124);
this.lstRecvFrameInfo.TabIndex = 72;
//
// groupBox2
//
groupBox2.Anchor = System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left;
groupBox2.Controls.Add(lstRecvFrameInfo);
groupBox2.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
groupBox2.Location = new System.Drawing.Point(6, 753);
groupBox2.Margin = new System.Windows.Forms.Padding(5);
groupBox2.Name = "groupBox2";
groupBox2.Padding = new System.Windows.Forms.Padding(5);
groupBox2.Size = new System.Drawing.Size(1545, 288);
groupBox2.TabIndex = 81;
groupBox2.TabStop = false;
groupBox2.Text = "接收数据帧信息";
this.groupBox2.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)));
this.groupBox2.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
this.groupBox2.Location = new System.Drawing.Point(6, 753);
this.groupBox2.Margin = new System.Windows.Forms.Padding(5);
this.groupBox2.Name = "groupBox2";
this.groupBox2.Padding = new System.Windows.Forms.Padding(5);
this.groupBox2.Size = new System.Drawing.Size(1545, 0);
this.groupBox2.TabIndex = 81;
this.groupBox2.TabStop = false;
this.groupBox2.Text = "接收数据帧信息";
//
// button1
//
button1.Location = new System.Drawing.Point(19, 212);
button1.Name = "button1";
button1.Size = new System.Drawing.Size(115, 37);
button1.TabIndex = 118;
button1.Text = "1101";
button1.UseVisualStyleBackColor = true;
this.button1.Location = new System.Drawing.Point(6, 26);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(115, 37);
this.button1.TabIndex = 118;
this.button1.Text = "1101";
this.button1.UseVisualStyleBackColor = true;
this.button1.Click += new System.EventHandler(this.button1_Click);
//
// button2
//
button2.Location = new System.Drawing.Point(164, 212);
button2.Name = "button2";
button2.Size = new System.Drawing.Size(115, 37);
button2.TabIndex = 119;
button2.Text = "1103";
button2.UseVisualStyleBackColor = true;
this.button2.Location = new System.Drawing.Point(149, 26);
this.button2.Name = "button2";
this.button2.Size = new System.Drawing.Size(115, 37);
this.button2.TabIndex = 119;
this.button2.Text = "1103";
this.button2.UseVisualStyleBackColor = true;
this.button2.Click += new System.EventHandler(this.button2_Click);
//
// button3
//
button3.Location = new System.Drawing.Point(309, 212);
button3.Name = "button3";
button3.Size = new System.Drawing.Size(115, 37);
button3.TabIndex = 120;
button3.Text = "1105";
button3.UseVisualStyleBackColor = true;
this.button3.Location = new System.Drawing.Point(294, 26);
this.button3.Name = "button3";
this.button3.Size = new System.Drawing.Size(115, 37);
this.button3.TabIndex = 120;
this.button3.Text = "1105";
this.button3.UseVisualStyleBackColor = true;
this.button3.Click += new System.EventHandler(this.button3_Click);
//
// button4
//
button4.Location = new System.Drawing.Point(454, 212);
button4.Name = "button4";
button4.Size = new System.Drawing.Size(115, 37);
button4.TabIndex = 121;
button4.Text = "1107";
button4.UseVisualStyleBackColor = true;
this.button4.Location = new System.Drawing.Point(439, 26);
this.button4.Name = "button4";
this.button4.Size = new System.Drawing.Size(115, 37);
this.button4.TabIndex = 121;
this.button4.Text = "1107";
this.button4.UseVisualStyleBackColor = true;
this.button4.Click += new System.EventHandler(this.button4_Click);
//
// button5
//
button5.Location = new System.Drawing.Point(599, 212);
button5.Name = "button5";
button5.Size = new System.Drawing.Size(115, 37);
button5.TabIndex = 122;
button5.Text = "1301";
button5.UseVisualStyleBackColor = true;
this.button5.Location = new System.Drawing.Point(6, 26);
this.button5.Name = "button5";
this.button5.Size = new System.Drawing.Size(115, 37);
this.button5.TabIndex = 122;
this.button5.Text = "1301";
this.button5.UseVisualStyleBackColor = true;
this.button5.Click += new System.EventHandler(this.button5_Click);
//
// button6
//
button6.Location = new System.Drawing.Point(744, 212);
button6.Name = "button6";
button6.Size = new System.Drawing.Size(115, 37);
button6.TabIndex = 123;
button6.Text = "1401";
button6.UseVisualStyleBackColor = true;
this.button6.Location = new System.Drawing.Point(6, 26);
this.button6.Name = "button6";
this.button6.Size = new System.Drawing.Size(115, 37);
this.button6.TabIndex = 123;
this.button6.Text = "1401";
this.button6.UseVisualStyleBackColor = true;
this.button6.Click += new System.EventHandler(this.button6_Click);
//
// button7
//
button7.Location = new System.Drawing.Point(889, 212);
button7.Name = "button7";
button7.Size = new System.Drawing.Size(115, 37);
button7.TabIndex = 124;
button7.Text = "1406";
button7.UseVisualStyleBackColor = true;
this.button7.Location = new System.Drawing.Point(127, 26);
this.button7.Name = "button7";
this.button7.Size = new System.Drawing.Size(115, 37);
this.button7.TabIndex = 124;
this.button7.Text = "1406";
this.button7.UseVisualStyleBackColor = true;
this.button7.Click += new System.EventHandler(this.button7_Click);
//
// button8
//
button8.Location = new System.Drawing.Point(1034, 212);
button8.Name = "button8";
button8.Size = new System.Drawing.Size(115, 37);
button8.TabIndex = 125;
button8.Text = "1502";
button8.UseVisualStyleBackColor = true;
this.button8.Location = new System.Drawing.Point(5, 26);
this.button8.Name = "button8";
this.button8.Size = new System.Drawing.Size(115, 37);
this.button8.TabIndex = 125;
this.button8.Text = "1502";
this.button8.UseVisualStyleBackColor = true;
this.button8.Click += new System.EventHandler(this.button8_Click);
//
// button9
//
button9.Location = new System.Drawing.Point(1179, 212);
button9.Name = "button9";
button9.Size = new System.Drawing.Size(115, 37);
button9.TabIndex = 126;
button9.Text = "1504";
button9.UseVisualStyleBackColor = true;
this.button9.Location = new System.Drawing.Point(147, 26);
this.button9.Name = "button9";
this.button9.Size = new System.Drawing.Size(115, 37);
this.button9.TabIndex = 126;
this.button9.Text = "1504";
this.button9.UseVisualStyleBackColor = true;
this.button9.Click += new System.EventHandler(this.button9_Click);
//
// button10
//
button10.Location = new System.Drawing.Point(1324, 212);
button10.Name = "button10";
button10.Size = new System.Drawing.Size(115, 37);
button10.TabIndex = 127;
button10.Text = "1506";
button10.UseVisualStyleBackColor = true;
this.button10.Location = new System.Drawing.Point(289, 26);
this.button10.Name = "button10";
this.button10.Size = new System.Drawing.Size(115, 37);
this.button10.TabIndex = 127;
this.button10.Text = "1506";
this.button10.UseVisualStyleBackColor = true;
this.button10.Click += new System.EventHandler(this.button10_Click);
//
// groupBox4
//
this.groupBox4.Controls.Add(this.button3);
this.groupBox4.Controls.Add(this.button1);
this.groupBox4.Controls.Add(this.button2);
this.groupBox4.Controls.Add(this.button4);
this.groupBox4.Location = new System.Drawing.Point(9, 381);
this.groupBox4.Name = "groupBox4";
this.groupBox4.Size = new System.Drawing.Size(562, 75);
this.groupBox4.TabIndex = 128;
this.groupBox4.TabStop = false;
this.groupBox4.Text = "与计费策略相关的指令";
//
// groupBox6
//
this.groupBox6.Controls.Add(this.button5);
this.groupBox6.Location = new System.Drawing.Point(602, 381);
this.groupBox6.Name = "groupBox6";
this.groupBox6.Size = new System.Drawing.Size(130, 75);
this.groupBox6.TabIndex = 129;
this.groupBox6.TabStop = false;
this.groupBox6.Text = "白名单报文";
//
// groupBox7
//
this.groupBox7.Controls.Add(this.button6);
this.groupBox7.Controls.Add(this.button7);
this.groupBox7.Location = new System.Drawing.Point(758, 381);
this.groupBox7.Name = "groupBox7";
this.groupBox7.Size = new System.Drawing.Size(250, 75);
this.groupBox7.TabIndex = 129;
this.groupBox7.TabStop = false;
this.groupBox7.Text = "FTP远程升级、FTP日志上传";
//
// groupBox10
//
this.groupBox10.Controls.Add(this.button9);
this.groupBox10.Controls.Add(this.button8);
this.groupBox10.Controls.Add(this.button10);
this.groupBox10.Location = new System.Drawing.Point(1034, 381);
this.groupBox10.Name = "groupBox10";
this.groupBox10.Size = new System.Drawing.Size(410, 75);
this.groupBox10.TabIndex = 130;
this.groupBox10.TabStop = false;
this.groupBox10.Text = "协议方式日志上传";
//
// groupBox13
//
this.groupBox13.Controls.Add(this.button32);
this.groupBox13.Controls.Add(this.button11);
this.groupBox13.Controls.Add(this.button13);
this.groupBox13.Controls.Add(this.button25);
this.groupBox13.Controls.Add(this.button31);
this.groupBox13.Location = new System.Drawing.Point(11, 212);
this.groupBox13.Name = "groupBox13";
this.groupBox13.Size = new System.Drawing.Size(712, 75);
this.groupBox13.TabIndex = 129;
this.groupBox13.TabStop = false;
this.groupBox13.Text = "充电信息数据";
//
// button11
//
this.button11.Location = new System.Drawing.Point(294, 26);
this.button11.Name = "button11";
this.button11.Size = new System.Drawing.Size(115, 37);
this.button11.TabIndex = 120;
this.button11.Text = "205";
this.button11.UseVisualStyleBackColor = true;
this.button11.Click += new System.EventHandler(this.button11_Click);
//
// button13
//
this.button13.Location = new System.Drawing.Point(6, 26);
this.button13.Name = "button13";
this.button13.Size = new System.Drawing.Size(115, 37);
this.button13.TabIndex = 118;
this.button13.Text = "201/221";
this.button13.UseVisualStyleBackColor = true;
this.button13.Click += new System.EventHandler(this.button13_Click);
//
// button25
//
this.button25.Location = new System.Drawing.Point(149, 26);
this.button25.Name = "button25";
this.button25.Size = new System.Drawing.Size(115, 37);
this.button25.TabIndex = 119;
this.button25.Text = "203";
this.button25.UseVisualStyleBackColor = true;
this.button25.Click += new System.EventHandler(this.button25_Click);
//
// button31
//
this.button31.Location = new System.Drawing.Point(439, 26);
this.button31.Name = "button31";
this.button31.Size = new System.Drawing.Size(115, 37);
this.button31.TabIndex = 121;
this.button31.Text = "207";
this.button31.UseVisualStyleBackColor = true;
this.button31.Click += new System.EventHandler(this.button31_Click);
//
// groupBox14
//
this.groupBox14.Controls.Add(this.button33);
this.groupBox14.Controls.Add(this.button34);
this.groupBox14.Location = new System.Drawing.Point(740, 212);
this.groupBox14.Name = "groupBox14";
this.groupBox14.Size = new System.Drawing.Size(273, 75);
this.groupBox14.TabIndex = 130;
this.groupBox14.TabStop = false;
this.groupBox14.Text = "直流充电桩BMS信息数据预留";
//
// button33
//
this.button33.Location = new System.Drawing.Point(6, 26);
this.button33.Name = "button33";
this.button33.Size = new System.Drawing.Size(115, 37);
this.button33.TabIndex = 118;
this.button33.Text = "301";
this.button33.UseVisualStyleBackColor = true;
this.button33.Click += new System.EventHandler(this.button33_Click);
//
// button34
//
this.button34.Location = new System.Drawing.Point(140, 26);
this.button34.Name = "button34";
this.button34.Size = new System.Drawing.Size(115, 37);
this.button34.TabIndex = 119;
this.button34.Text = "303";
this.button34.UseVisualStyleBackColor = true;
this.button34.Click += new System.EventHandler(this.button34_Click);
//
// groupBox15
//
this.groupBox15.Controls.Add(this.button36);
this.groupBox15.Location = new System.Drawing.Point(1039, 212);
this.groupBox15.Name = "groupBox15";
this.groupBox15.Size = new System.Drawing.Size(130, 75);
this.groupBox15.TabIndex = 130;
this.groupBox15.TabStop = false;
this.groupBox15.Text = "历史数据";
//
// button36
//
this.button36.Location = new System.Drawing.Point(6, 26);
this.button36.Name = "button36";
this.button36.Size = new System.Drawing.Size(115, 37);
this.button36.TabIndex = 122;
this.button36.Text = "401";
this.button36.UseVisualStyleBackColor = true;
this.button36.Click += new System.EventHandler(this.button36_Click);
//
// groupBox16
//
this.groupBox16.Controls.Add(this.button42);
this.groupBox16.Controls.Add(this.button41);
this.groupBox16.Controls.Add(this.button35);
this.groupBox16.Controls.Add(this.button37);
this.groupBox16.Controls.Add(this.button38);
this.groupBox16.Controls.Add(this.button39);
this.groupBox16.Controls.Add(this.button40);
this.groupBox16.Location = new System.Drawing.Point(6, 293);
this.groupBox16.Name = "groupBox16";
this.groupBox16.Size = new System.Drawing.Size(1007, 75);
this.groupBox16.TabIndex = 130;
this.groupBox16.TabStop = false;
this.groupBox16.Text = "升级命令";
//
// button37
//
this.button37.Location = new System.Drawing.Point(294, 26);
this.button37.Name = "button37";
this.button37.Size = new System.Drawing.Size(115, 37);
this.button37.TabIndex = 120;
this.button37.Text = "1005";
this.button37.UseVisualStyleBackColor = true;
this.button37.Click += new System.EventHandler(this.button37_Click);
//
// button38
//
this.button38.Location = new System.Drawing.Point(6, 26);
this.button38.Name = "button38";
this.button38.Size = new System.Drawing.Size(115, 37);
this.button38.TabIndex = 118;
this.button38.Text = "1001";
this.button38.UseVisualStyleBackColor = true;
this.button38.Click += new System.EventHandler(this.button38_Click);
//
// button39
//
this.button39.Location = new System.Drawing.Point(150, 26);
this.button39.Name = "button39";
this.button39.Size = new System.Drawing.Size(115, 37);
this.button39.TabIndex = 119;
this.button39.Text = "1003";
this.button39.UseVisualStyleBackColor = true;
this.button39.Click += new System.EventHandler(this.button39_Click);
//
// button40
//
this.button40.Location = new System.Drawing.Point(438, 26);
this.button40.Name = "button40";
this.button40.Size = new System.Drawing.Size(115, 37);
this.button40.TabIndex = 121;
this.button40.Text = "1007";
this.button40.UseVisualStyleBackColor = true;
this.button40.Click += new System.EventHandler(this.button40_Click);
//
// button32
//
this.button32.Location = new System.Drawing.Point(576, 26);
this.button32.Name = "button32";
this.button32.Size = new System.Drawing.Size(115, 37);
this.button32.TabIndex = 122;
this.button32.Text = "209";
this.button32.UseVisualStyleBackColor = true;
this.button32.Click += new System.EventHandler(this.button32_Click);
//
// button35
//
this.button35.Location = new System.Drawing.Point(582, 26);
this.button35.Name = "button35";
this.button35.Size = new System.Drawing.Size(115, 37);
this.button35.TabIndex = 122;
this.button35.Text = "1009";
this.button35.UseVisualStyleBackColor = true;
this.button35.Click += new System.EventHandler(this.button35_Click);
//
// button41
//
this.button41.Location = new System.Drawing.Point(726, 26);
this.button41.Name = "button41";
this.button41.Size = new System.Drawing.Size(115, 37);
this.button41.TabIndex = 123;
this.button41.Text = "1011";
this.button41.UseVisualStyleBackColor = true;
this.button41.Click += new System.EventHandler(this.button41_Click);
//
// button42
//
this.button42.Location = new System.Drawing.Point(870, 26);
this.button42.Name = "button42";
this.button42.Size = new System.Drawing.Size(115, 37);
this.button42.TabIndex = 124;
this.button42.Text = "1021";
this.button42.UseVisualStyleBackColor = true;
this.button42.Click += new System.EventHandler(this.button42_Click);
//
// FrmChargeResult
//
AutoScaleDimensions = new System.Drawing.SizeF(9F, 20F);
AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
ClientSize = new System.Drawing.Size(1563, 1055);
Controls.Add(button10);
Controls.Add(button9);
Controls.Add(button8);
Controls.Add(button7);
Controls.Add(button6);
Controls.Add(button5);
Controls.Add(button4);
Controls.Add(button3);
Controls.Add(button2);
Controls.Add(button1);
Controls.Add(groupBox9);
Controls.Add(groupBox11);
Controls.Add(groupBox5);
Controls.Add(groupBox8);
Controls.Add(groupBox2);
FormBorderStyle = System.Windows.Forms.FormBorderStyle.SizableToolWindow;
Margin = new System.Windows.Forms.Padding(5);
Name = "FrmChargeResult";
Text = "充电机对接";
groupBox3.ResumeLayout(false);
groupBox3.PerformLayout();
groupBox1.ResumeLayout(false);
groupBox5.ResumeLayout(false);
groupBox9.ResumeLayout(false);
groupBox11.ResumeLayout(false);
groupBox8.ResumeLayout(false);
groupBox12.ResumeLayout(false);
groupBox2.ResumeLayout(false);
ResumeLayout(false);
this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 20F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(1563, 900);
this.Controls.Add(this.lstRecvFrameInfo);
this.Controls.Add(this.groupBox16);
this.Controls.Add(this.groupBox15);
this.Controls.Add(this.groupBox14);
this.Controls.Add(this.groupBox13);
this.Controls.Add(this.groupBox10);
this.Controls.Add(this.groupBox7);
this.Controls.Add(this.groupBox6);
this.Controls.Add(this.groupBox4);
this.Controls.Add(this.groupBox9);
this.Controls.Add(this.groupBox11);
this.Controls.Add(this.groupBox5);
this.Controls.Add(this.groupBox8);
this.Controls.Add(this.groupBox2);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.SizableToolWindow;
this.Margin = new System.Windows.Forms.Padding(5);
this.Name = "FrmChargeResult";
this.Text = "充电机对接";
this.groupBox3.ResumeLayout(false);
this.groupBox3.PerformLayout();
this.groupBox1.ResumeLayout(false);
this.groupBox5.ResumeLayout(false);
this.groupBox9.ResumeLayout(false);
this.groupBox11.ResumeLayout(false);
this.groupBox8.ResumeLayout(false);
this.groupBox12.ResumeLayout(false);
this.groupBox4.ResumeLayout(false);
this.groupBox6.ResumeLayout(false);
this.groupBox7.ResumeLayout(false);
this.groupBox10.ResumeLayout(false);
this.groupBox13.ResumeLayout(false);
this.groupBox14.ResumeLayout(false);
this.groupBox15.ResumeLayout(false);
this.groupBox16.ResumeLayout(false);
this.ResumeLayout(false);
}
#endregion
@ -679,5 +973,28 @@
private System.Windows.Forms.Button button8;
private System.Windows.Forms.Button button9;
private System.Windows.Forms.Button button10;
private System.Windows.Forms.GroupBox groupBox4;
private System.Windows.Forms.GroupBox groupBox6;
private System.Windows.Forms.GroupBox groupBox7;
private System.Windows.Forms.GroupBox groupBox10;
private System.Windows.Forms.GroupBox groupBox13;
private System.Windows.Forms.Button button11;
private System.Windows.Forms.Button button13;
private System.Windows.Forms.Button button25;
private System.Windows.Forms.Button button31;
private System.Windows.Forms.Button button32;
private System.Windows.Forms.GroupBox groupBox14;
private System.Windows.Forms.Button button33;
private System.Windows.Forms.Button button34;
private System.Windows.Forms.GroupBox groupBox15;
private System.Windows.Forms.Button button36;
private System.Windows.Forms.GroupBox groupBox16;
private System.Windows.Forms.Button button42;
private System.Windows.Forms.Button button41;
private System.Windows.Forms.Button button35;
private System.Windows.Forms.Button button37;
private System.Windows.Forms.Button button38;
private System.Windows.Forms.Button button39;
private System.Windows.Forms.Button button40;
}
}

@ -171,21 +171,7 @@ namespace Monitor.ChargeTest
CmnChargerParam._CHR00TCPCLIENT.DataSended += ChargerMgrTool_DataSended;
CmnChargerParam._CHR00TCPCLIENT.DataReceived += ChargerMgrTool_DataReceived;
}
/// <summary>
/// 充电机断开连接
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void BtnCloseConnect_Click(object sender, EventArgs e)
{
if (CmnChargerParam._CHR00TCPCLIENT != null)
{
if (CmnChargerParam._CHR00TCPCLIENT.F_NetConnected)
{
CmnChargerParam._CHR00TCPCLIENT.ChargerDisConnect();
}
}
}
/// <summary>
/// 数据接收解析
@ -229,423 +215,419 @@ namespace Monitor.ChargeTest
lstBoxConnect.Invoke(MsgConnectLogCallBack, e.IsContent);
}
private void FrmChargeResult_Load(object sender, EventArgs e)
{
}
#region 协议格式
/// <summary>
/// 获取充电机尖峰平谷对象值
/// (CMD=1)后台服务器下发充电桩整形工作参数
/// </summary>
/// <returns></returns>
private SharpPeakTimeRangeIde GetSharpPeakTimeRange()
/// <param name="sender"></param>
/// <param name="e"></param>
private void button14_Click(object sender, EventArgs e)
{
SharpPeakTimeRangeIde timeRng = new SharpPeakTimeRangeIde();
timeRng.RecordType = 47;
timeRng.NumTimePeriods = 24;
timeRng.StartTimePeriod1 = "00:00";
timeRng.TimePeriodPeakIden1 = 4;
timeRng.StartTimePeriod2 = "08:00";
timeRng.TimePeriodPeakIden2 = 3;
timeRng.StartTimePeriod3 = "15:00";
timeRng.TimePeriodPeakIden3 = 2;
timeRng.StartTimePeriod4 = "19:00";
timeRng.TimePeriodPeakIden4 = 1;
timeRng.StartTimePeriod5 = "22:00";
timeRng.TimePeriodPeakIden5 = 2;
timeRng.StartTimePeriod6 = "23:00";
timeRng.TimePeriodPeakIden6 = 3;
timeRng.StartTimePeriod7 = "00:00";
timeRng.TimePeriodPeakIden7 = 4;
timeRng.StartTimePeriod8 = "00:00";
timeRng.TimePeriodPeakIden8 = 3;
timeRng.StartTimePeriod9 = "00:00";
timeRng.TimePeriodPeakIden9 = 2;
timeRng.StartTimePeriod10 = "00:00";
timeRng.TimePeriodPeakIden10 = 1;
timeRng.StartTimePeriod11 = "00:00";
timeRng.TimePeriodPeakIden11 = 2;
timeRng.StartTimePeriod12 = "00:00";
timeRng.TimePeriodPeakIden12 = 3;
timeRng.StartTimePeriod13 = "00:00";
timeRng.TimePeriodPeakIden13 = 4;
timeRng.StartTimePeriod14 = "00:00";
timeRng.TimePeriodPeakIden14 = 3;
timeRng.StartTimePeriod15 = "00:00";
timeRng.TimePeriodPeakIden15 = 2;
timeRng.StartTimePeriod16 = "00:00";
timeRng.TimePeriodPeakIden16 = 1;
timeRng.StartTimePeriod17 = "00:00";
timeRng.TimePeriodPeakIden17 = 2;
timeRng.StartTimePeriod18 = "00:00";
timeRng.TimePeriodPeakIden18 = 3;
timeRng.StartTimePeriod19 = "00:00";
timeRng.TimePeriodPeakIden19 = 4;
timeRng.StartTimePeriod20 = "00:00";
timeRng.TimePeriodPeakIden20 = 3;
timeRng.StartTimePeriod21 = "00:00";
timeRng.TimePeriodPeakIden21 = 2;
timeRng.StartTimePeriod22 = "00:00";
timeRng.TimePeriodPeakIden22 = 1;
timeRng.StartTimePeriod23 = "00:00";
timeRng.TimePeriodPeakIden23 = 2;
timeRng.StartTimePeriod24 = "00:00";
timeRng.TimePeriodPeakIden24 = 3;
return timeRng;
//CmnChargerParam._CHR00TCPCLIENT.Send1();
}
/// <summary>
/// 设置充电机尖峰平谷
/// (CMD=3)后台服务器下发充电桩字符型参数
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void BtnChrg01SharpPeak_Click(object sender, EventArgs e)
private void button15_Click(object sender, EventArgs e)
{
SharpPeakTimeRangeIde timeRng = GetSharpPeakTimeRange();
CmnChargerParam._CHR00TCPCLIENT.SendPeakTimePeriod(timeRng);
//CmnChargerParam._CHR00TCPCLIENT.Send3();
}
/// <summary>
/// 开启充电
/// (CMD=5)后台服务器下发充电桩控制命令
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void BtnChrg01Start_Click(object sender, EventArgs e)
private void button16_Click(object sender, EventArgs e)
{
CmnChargerParam._CHR00TCPCLIENT.SendRemoteStartCharing(100, 1, 3600, 0);
//CmnChargerParam._CHR00TCPCLIENT.Send5();
}
/// <summary>
/// 充电机停止充电
/// (CMD=7)后台服务器下发充电桩开启充电控制命令
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void BtnChrg01Stop_Click(object sender, EventArgs e)
private void button17_Click(object sender, EventArgs e)
{
CmnChargerParam._CHR00TCPCLIENT.F_StopReason = 0;
CmnChargerParam._CHR00TCPCLIENT.F_IsCanSendStopCmd = true;
CmnChargerParam._CHR00TCPCLIENT.SendRemoteStopCmdThread();
//CmnChargerParam._CHR00TCPCLIENT.Send7();
}
/// <summary>
/// 充电机鉴权
/// (CMD=9)后台服务器应答桩上传命令请求(预留)
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void BtnChrg01SignIn_Click(object sender, EventArgs e)
private void button18_Click(object sender, EventArgs e)
{
CmnChargerParam._CHR00TCPCLIENT.SendCharingSignIn();
//CmnChargerParam._CHR00TCPCLIENT.Send9();
}
#endregion
#region 充电桩主动上传数据
/// <summary>
/// 监控平台应答充电启动完成帧
/// (CMD=101)服务器应答心跳包信息
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void button1_Click(object sender, EventArgs e)
private void button20_Click(object sender, EventArgs e)
{
CmnChargerParam._CHR00TCPCLIENT.SendStartChargingFinishedRes(0, 0);
//CmnChargerParam._CHR00TCPCLIENT.Send101();
}
/// <summary>
/// 监控平台应答充电停止完成帧
///
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void button2_Click(object sender, EventArgs e)
private void button21_Click(object sender, EventArgs e)
{
CmnChargerParam._CHR00TCPCLIENT.SendStopChargingFinishedRes(0);
//CmnChargerParam._CHR00TCPCLIENT.Send103();
}
/// <summary>
/// 监控平台应答充电设备登录签到报文
///
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void button3_Click(object sender, EventArgs e)
private void button19_Click(object sender, EventArgs e)
{
CmnChargerParam._CHR00TCPCLIENT.SendCharingLoginRes();
//CmnChargerParam._CHR00TCPCLIENT.Send105();
}
/// <summary>
/// 发送功率调节指令
///
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void button6_Click(object sender, EventArgs e)
private void button22_Click(object sender, EventArgs e)
{
CmnChargerParam._CHR00TCPCLIENT.SendPowerRegulate(30);
CmnChargerParam._CHR00TCPCLIENT.Send107();
}
/// <summary>
/// 下发辅源控制指令
///
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void button7_Click(object sender, EventArgs e)
private void button23_Click(object sender, EventArgs e)
{
CmnChargerParam._CHR00TCPCLIENT.SendAuxiliaryPowerControl(0);
CmnChargerParam._CHR00TCPCLIENT.Send109();
}
/// <summary>
/// 下发掉线停止充电
///
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void button8_Click(object sender, EventArgs e)
private void button24_Click(object sender, EventArgs e)
{
CmnChargerParam._CHR00TCPCLIENT.SendDisconnectStopCharge(1, 0);
//CmnChargerParam._CHR00TCPCLIENT.Send111();
}
/// <summary>
/// 下发站外允许充电SOC
///
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void button9_Click(object sender, EventArgs e)
private void button26_Click(object sender, EventArgs e)
{
CmnChargerParam._CHR00TCPCLIENT.SendOutsideAllowChargeSOC(1);
//CmnChargerParam._CHR00TCPCLIENT.Send113();
}
#endregion
#region 充电信息数据
/// <summary>
/// 监控平台下发版本号查询
/// 201/221
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void button5_Click(object sender, EventArgs e)
private void button13_Click(object sender, EventArgs e)
{
CmnChargerParam._CHR00TCPCLIENT.SendVersionNumber();
//CmnChargerParam._CHR00TCPCLIENT.Send201();
}
/// <summary>
/// 主动上送充电记录响应
/// 203
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void button10_Click(object sender, EventArgs e)
private void button25_Click(object sender, EventArgs e)
{
CmnChargerParam._CHR00TCPCLIENT.SendRecordChargResp(0, 0);
//CmnChargerParam._CHR00TCPCLIENT.Send203();
}
/// <summary>
/// 监控平台心跳应答
/// 205
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void button11_Click(object sender, EventArgs e)
{
CmnChargerParam._CHR00TCPCLIENT.SendCharingHeartRes();
uint value03 = 0; uint value04 = 0;
CmnChargerParam._CHR00TCPCLIENT.Send205( value03, value04);
}
/// <summary>
/// 站控查询监控网关尖峰平谷设置
/// 207
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void button13_Click(object sender, EventArgs e)
private void button31_Click(object sender, EventArgs e)
{
CmnChargerParam._CHR00TCPCLIENT.SendQueryPeakTime(0);
// CmnChargerParam._CHR00TCPCLIENT.Send207();
}
/// <summary>
/// 站控响应充放电机上报模块状态
/// 209
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void button4_Click(object sender, EventArgs e)
private void button32_Click(object sender, EventArgs e)
{
CmnChargerParam._CHR00TCPCLIENT.SendUpModelStationResp(0);
CMD210 CMD210=new CMD210();
string value05 = ";";
CmnChargerParam._CHR00TCPCLIENT.Send209( CMD210, value05);
}
#endregion
#region 协议格式
#region 直流充电桩 BMS 信息数据(预留)
/// <summary>
/// (CMD=1)后台服务器下发充电桩整形工作参数
/// 301
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void button14_Click(object sender, EventArgs e)
private void button33_Click(object sender, EventArgs e)
{
//CmnChargerParam._CHR00TCPCLIENT.Send1();
CmnChargerParam._CHR00TCPCLIENT.Send301();
}
/// <summary>
/// (CMD=3)后台服务器下发充电桩字符型参数
/// 303
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void button15_Click(object sender, EventArgs e)
private void button34_Click(object sender, EventArgs e)
{
//CmnChargerParam._CHR00TCPCLIENT.Send3();
CmnChargerParam._CHR00TCPCLIENT.Send303();
}
#endregion
#region 历史记录
/// <summary>
/// (CMD=5)后台服务器下发充电桩控制命令
/// 401
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void button16_Click(object sender, EventArgs e)
private void button36_Click(object sender, EventArgs e)
{
//CmnChargerParam._CHR00TCPCLIENT.Send5();
string chargingSerialNum= ""; uint startIndex = 0;
CmnChargerParam._CHR00TCPCLIENT.Send401( chargingSerialNum, startIndex);
}
#endregion
#region 升级命令
/// <summary>
/// (CMD=7)后台服务器下发充电桩开启充电控制命令
/// 1001
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void button17_Click(object sender, EventArgs e)
private void button38_Click(object sender, EventArgs e)
{
//CmnChargerParam._CHR00TCPCLIENT.Send7();
int instruct = 0;
CmnChargerParam._CHR00TCPCLIENT.Send1001(instruct);
}
/// <summary>
/// (CMD=9)后台服务器应答桩上传命令请求(预留)
/// 1003
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void button18_Click(object sender, EventArgs e)
private void button39_Click(object sender, EventArgs e)
{
//CmnChargerParam._CHR00TCPCLIENT.Send9();
}
#endregion
string fileName = "";
#region 充电桩主动上传数据
CmnChargerParam._CHR00TCPCLIENT.Send1003(fileName);
}
/// <summary>
/// (CMD=101)服务器应答心跳包信息
/// 1005
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void button20_Click(object sender, EventArgs e)
private void button37_Click(object sender, EventArgs e)
{
//CmnChargerParam._CHR00TCPCLIENT.Send101();
uint fileLen = 0;
CmnChargerParam._CHR00TCPCLIENT.Send1005(fileLen);
}
/// <summary>
///
/// 1007
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void button21_Click(object sender, EventArgs e)
private void button40_Click(object sender, EventArgs e)
{
//CmnChargerParam._CHR00TCPCLIENT.Send103();
}
string updata = "";
CmnChargerParam._CHR00TCPCLIENT.Send1007(updata);
}
/// <summary>
///
/// 1009
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void button19_Click(object sender, EventArgs e)
private void button35_Click(object sender, EventArgs e)
{
//CmnChargerParam._CHR00TCPCLIENT.Send105();
CmnChargerParam._CHR00TCPCLIENT.Send1009();
}
/// <summary>
///
/// 1011
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void button22_Click(object sender, EventArgs e)
private void button41_Click(object sender, EventArgs e)
{
CmnChargerParam._CHR00TCPCLIENT.Send107();
CmnChargerParam._CHR00TCPCLIENT.Send1011();
}
/// <summary>
///
/// 1021
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void button23_Click(object sender, EventArgs e)
private void button42_Click(object sender, EventArgs e)
{
CmnChargerParam._CHR00TCPCLIENT.Send109();
uint results = 0; string description="";
CmnChargerParam._CHR00TCPCLIENT.Send1021( results, description);
}
#endregion
#region 与计费策略相关的指令
/// <summary>
///
/// 1101
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void button24_Click(object sender, EventArgs e)
private void button1_Click(object sender, EventArgs e)
{
//CmnChargerParam._CHR00TCPCLIENT.Send111();
}
CmnChargerParam._CHR00TCPCLIENT.Send1101();
}
/// <summary>
///
/// 1103
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void button26_Click(object sender, EventArgs e)
private void button2_Click(object sender, EventArgs e)
{
//CmnChargerParam._CHR00TCPCLIENT.Send113();
}
#endregion
CMD1103 cMD1103 = new CMD1103();
#region 充电信息数据
private void button27_Click(object sender, EventArgs e)
{
//CmnChargerParam._CHR00TCPCLIENT.Send201();
}
private void button12_Click(object sender, EventArgs e)
{
//CmnChargerParam._CHR00TCPCLIENT.Send203();
CmnChargerParam._CHR00TCPCLIENT.Send1103(cMD1103);
}
private void button28_Click(object sender, EventArgs e)
/// <summary>
/// 1105
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void button3_Click(object sender, EventArgs e)
{
//CmnChargerParam._CHR00TCPCLIENT.Send205();
}
CMD1105 cMD1105 = new CMD1105();
private void button29_Click(object sender, EventArgs e)
{
//CmnChargerParam._CHR00TCPCLIENT.Send207();
CmnChargerParam._CHR00TCPCLIENT.Send1105(cMD1105);
}
private void button30_Click(object sender, EventArgs e)
/// <summary>
/// 1107
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void button4_Click(object sender, EventArgs e)
{
//CmnChargerParam._CHR00TCPCLIENT.Send209();
CmnChargerParam._CHR00TCPCLIENT.Send1107();
}
#endregion
#region 直流充电桩 BMS 信息数据(预留)
#endregion
#region 历史记录
#region 白名单报文
/// <summary>
/// 1301
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void button5_Click(object sender, EventArgs e)
{
CMD1301 cMD1301 = new CMD1301();
CmnChargerParam._CHR00TCPCLIENT.Send1301(cMD1301);
}
#endregion
#region 升级命令
#endregion
#region FTP 远程升级和 FTP 方式日志上传
/// <summary>
/// 1401
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void button6_Click(object sender, EventArgs e)
{
CMD1401 cMD1401 = new CMD1401();
#region 与计费策略相关的指令
CmnChargerParam._CHR00TCPCLIENT.Send1401(cMD1401);
}
/// <summary>
/// 1406
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void button7_Click(object sender, EventArgs e)
{
CMD1406 cMD1406 = new CMD1406();
CmnChargerParam._CHR00TCPCLIENT.Send1406(cMD1406);
}
#endregion
#region 白名单报文
#endregion
#region 协议方式日志上传
/// <summary>
/// 1502
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void button8_Click(object sender, EventArgs e)
{
ushort responseCode = 0;
#region FTP 远程升级和 FTP 方式日志上传
#endregion
CmnChargerParam._CHR00TCPCLIENT.Send1502(responseCode);
}
/// <summary>
/// 1504
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void button9_Click(object sender, EventArgs e)
{
uint logo = 0;
uint successReservedMessageNum = 0;
#region 协议方式日志上传
CmnChargerParam._CHR00TCPCLIENT.Send1504(logo, successReservedMessageNum);
}
/// <summary>
/// 1506
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void button10_Click(object sender, EventArgs e)
{
CmnChargerParam._CHR00TCPCLIENT.Send1506();
}
#endregion
}

Loading…
Cancel
Save