|
|
|
@ -609,9 +609,23 @@ namespace BatCharging.Service
|
|
|
|
|
/// <param name="tcp_client"></param>
|
|
|
|
|
/// <param name="dest_addr"></param>
|
|
|
|
|
/// <param name="respResult"></param>
|
|
|
|
|
internal void Send201(TcpClientChargerTool tcp_client)
|
|
|
|
|
internal void Send201(TcpClientChargerTool tcp_client, CMD202 CMD202, byte value06, uint value07, uint value08, uint value09, uint value10, uint value11, uint value12)
|
|
|
|
|
{
|
|
|
|
|
byte[] bytes = new ChargerSendCMD().SendRCMD201(out APDUModel APDUModel);
|
|
|
|
|
CMD201 CMD = new CMD201();
|
|
|
|
|
CMD.value01 = 0;
|
|
|
|
|
CMD.value02 = 0;
|
|
|
|
|
CMD.value03 = CMD202.value05;
|
|
|
|
|
CMD.value04 = CMD202.value06;
|
|
|
|
|
CMD.value05 = CMD202.value17;
|
|
|
|
|
CMD.value06 = value06;
|
|
|
|
|
CMD.value07 = value07;
|
|
|
|
|
CMD.value08 = value08;
|
|
|
|
|
CMD.value09 = value09;
|
|
|
|
|
CMD.value10 = value10;
|
|
|
|
|
CMD.value11 = value11;
|
|
|
|
|
CMD.value12 = value12;
|
|
|
|
|
|
|
|
|
|
byte[] bytes = new ChargerSendCMD().SendRCMD201(out APDUModel APDUModel, CMD);
|
|
|
|
|
string result = "站控响应充放电机上报模块状态-发送字节内容:" + ByteUtils.BytesToHexStr(bytes) + ";";
|
|
|
|
|
|
|
|
|
|
Log.LogInstance.WriteLog(result, LogType.Information, "SendLog");
|
|
|
|
@ -625,9 +639,24 @@ namespace BatCharging.Service
|
|
|
|
|
/// <param name="tcp_client"></param>
|
|
|
|
|
/// <param name="dest_addr"></param>
|
|
|
|
|
/// <param name="respResult"></param>
|
|
|
|
|
internal void Send203(TcpClientChargerTool tcp_client)
|
|
|
|
|
internal void Send203(TcpClientChargerTool tcp_client, CMD204 CMD204, uint value03, uint value04, ushort value05, ushort value06, byte value07, byte value08, byte value09, byte value10, string value11, string value12)
|
|
|
|
|
{
|
|
|
|
|
byte[] bytes = new ChargerSendCMD().SendRCMD203(out APDUModel APDUModel);
|
|
|
|
|
CMD203 CMD = new CMD203();
|
|
|
|
|
CMD.value01 = 0;
|
|
|
|
|
CMD.value02 = 0;
|
|
|
|
|
CMD.value03 = value03;
|
|
|
|
|
CMD.value04 = value04;
|
|
|
|
|
CMD.value05 = value05;
|
|
|
|
|
CMD.value06 = value06;
|
|
|
|
|
CMD.value07 = value07;
|
|
|
|
|
CMD.value08 = value08;
|
|
|
|
|
CMD.value09 = value09;
|
|
|
|
|
CMD.value10 = value10;
|
|
|
|
|
CMD.value11 = value11;
|
|
|
|
|
CMD.value12 = value12;
|
|
|
|
|
CMD.value13 = CMD204.value11;
|
|
|
|
|
|
|
|
|
|
byte[] bytes = new ChargerSendCMD().SendRCMD203(out APDUModel APDUModel, CMD);
|
|
|
|
|
string result = "站控响应充放电机上报模块状态-发送字节内容:" + ByteUtils.BytesToHexStr(bytes) + ";";
|
|
|
|
|
|
|
|
|
|
Log.LogInstance.WriteLog(result, LogType.Information, "SendLog");
|
|
|
|
@ -641,9 +670,22 @@ namespace BatCharging.Service
|
|
|
|
|
/// <param name="tcp_client"></param>
|
|
|
|
|
/// <param name="dest_addr"></param>
|
|
|
|
|
/// <param name="respResult"></param>
|
|
|
|
|
internal void Send205(TcpClientChargerTool tcp_client)
|
|
|
|
|
internal void Send205(TcpClientChargerTool tcp_client, uint value03, uint value04)
|
|
|
|
|
{
|
|
|
|
|
byte[] bytes = new ChargerSendCMD().SendRCMD205(out APDUModel APDUModel);
|
|
|
|
|
CMD205 CMD = new CMD205();
|
|
|
|
|
CMD.value01 = 0;
|
|
|
|
|
CMD.value02 = 0;
|
|
|
|
|
CMD.value03 = value03;
|
|
|
|
|
if (CMD.value03 == 0)
|
|
|
|
|
{
|
|
|
|
|
CMD.value04 = value04;
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
CMD.value04 = 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
byte[] bytes = new ChargerSendCMD().SendRCMD205(out APDUModel APDUModel, CMD);
|
|
|
|
|
string result = "站控响应充放电机上报模块状态-发送字节内容:" + ByteUtils.BytesToHexStr(bytes) + ";";
|
|
|
|
|
|
|
|
|
|
Log.LogInstance.WriteLog(result, LogType.Information, "SendLog");
|
|
|
|
@ -657,9 +699,21 @@ namespace BatCharging.Service
|
|
|
|
|
/// <param name="tcp_client"></param>
|
|
|
|
|
/// <param name="dest_addr"></param>
|
|
|
|
|
/// <param name="respResult"></param>
|
|
|
|
|
internal void Send207(TcpClientChargerTool tcp_client)
|
|
|
|
|
internal void Send207(TcpClientChargerTool tcp_client, CMD208 CMD208, string value06, string value07, byte value08, byte value09, uint value10, ulong value11)
|
|
|
|
|
{
|
|
|
|
|
byte[] bytes = new ChargerSendCMD().SendRCMD207(out APDUModel APDUModel);
|
|
|
|
|
CMD207 CMD = new CMD207();
|
|
|
|
|
CMD.value01 = 0;
|
|
|
|
|
CMD.value02 = 0;
|
|
|
|
|
CMD.value03 = CMD208.value03;
|
|
|
|
|
CMD.value04 = CMD208.value04;
|
|
|
|
|
CMD.value05 = CMD208.value05;
|
|
|
|
|
CMD.value06 = value06;
|
|
|
|
|
CMD.value07 = value07;
|
|
|
|
|
CMD.value08 = value08;
|
|
|
|
|
CMD.value09 = value09;
|
|
|
|
|
CMD.value10 = value10;
|
|
|
|
|
CMD.value11 = value11;
|
|
|
|
|
byte[] bytes = new ChargerSendCMD().SendRCMD207(out APDUModel APDUModel, CMD);
|
|
|
|
|
string result = "站控响应充放电机上报模块状态-发送字节内容:" + ByteUtils.BytesToHexStr(bytes) + ";";
|
|
|
|
|
|
|
|
|
|
Log.LogInstance.WriteLog(result, LogType.Information, "SendLog");
|
|
|
|
@ -673,9 +727,15 @@ namespace BatCharging.Service
|
|
|
|
|
/// <param name="tcp_client"></param>
|
|
|
|
|
/// <param name="dest_addr"></param>
|
|
|
|
|
/// <param name="respResult"></param>
|
|
|
|
|
internal void Send209(TcpClientChargerTool tcp_client)
|
|
|
|
|
internal void Send209(TcpClientChargerTool tcp_client, CMD210 CMD210, string value05)
|
|
|
|
|
{
|
|
|
|
|
byte[] bytes = new ChargerSendCMD().SendRCMD209(out APDUModel APDUModel);
|
|
|
|
|
CMD209 CMD = new CMD209();
|
|
|
|
|
CMD.value01 = CMD210.value01;
|
|
|
|
|
CMD.value02 = CMD210.value02;
|
|
|
|
|
CMD.value03 = CMD210.value03;
|
|
|
|
|
CMD.value04 = CMD210.value04;
|
|
|
|
|
CMD.value05 = value05;
|
|
|
|
|
byte[] bytes = new ChargerSendCMD().SendRCMD209(out APDUModel APDUModel, CMD);
|
|
|
|
|
string result = "站控响应充放电机上报模块状态-发送字节内容:" + ByteUtils.BytesToHexStr(bytes) + ";";
|
|
|
|
|
|
|
|
|
|
Log.LogInstance.WriteLog(result, LogType.Information, "SendLog");
|
|
|
|
@ -694,7 +754,10 @@ namespace BatCharging.Service
|
|
|
|
|
/// <param name="respResult"></param>
|
|
|
|
|
internal void Send301(TcpClientChargerTool tcp_client)
|
|
|
|
|
{
|
|
|
|
|
byte[] bytes = new ChargerSendCMD().SendRCMD301(out APDUModel APDUModel);
|
|
|
|
|
CMD301 CMD = new CMD301();
|
|
|
|
|
CMD.reserved1 = 0;
|
|
|
|
|
CMD.reserved2 = 0;
|
|
|
|
|
byte[] bytes = new ChargerSendCMD().SendRCMD301(out APDUModel APDUModel, CMD);
|
|
|
|
|
string result = "站控响应充放电机上报模块状态-发送字节内容:" + ByteUtils.BytesToHexStr(bytes) + ";";
|
|
|
|
|
|
|
|
|
|
Log.LogInstance.WriteLog(result, LogType.Information, "SendLog");
|
|
|
|
@ -709,7 +772,10 @@ namespace BatCharging.Service
|
|
|
|
|
/// <param name="respResult"></param>
|
|
|
|
|
internal void Send303(TcpClientChargerTool tcp_client)
|
|
|
|
|
{
|
|
|
|
|
byte[] bytes = new ChargerSendCMD().SendRCMD303(out APDUModel APDUModel);
|
|
|
|
|
CMD303 CMD = new CMD303();
|
|
|
|
|
CMD.reserved1 = 0;
|
|
|
|
|
CMD.reserved2 = 0;
|
|
|
|
|
byte[] bytes = new ChargerSendCMD().SendRCMD303(out APDUModel APDUModel, CMD);
|
|
|
|
|
string result = "站控响应充放电机上报模块状态-发送字节内容:" + ByteUtils.BytesToHexStr(bytes) + ";";
|
|
|
|
|
|
|
|
|
|
Log.LogInstance.WriteLog(result, LogType.Information, "SendLog");
|
|
|
|
@ -724,9 +790,14 @@ namespace BatCharging.Service
|
|
|
|
|
/// <param name="tcp_client"></param>
|
|
|
|
|
/// <param name="dest_addr"></param>
|
|
|
|
|
/// <param name="respResult"></param>
|
|
|
|
|
internal void Send401(TcpClientChargerTool tcp_client)
|
|
|
|
|
internal void Send401(TcpClientChargerTool tcp_client, string chargingSerialNum, uint startIndex)
|
|
|
|
|
{
|
|
|
|
|
byte[] bytes = new ChargerSendCMD().SendRCMD401(out APDUModel APDUModel);
|
|
|
|
|
CMD401 CMD = new CMD401();
|
|
|
|
|
CMD.reserved1 = 0;
|
|
|
|
|
CMD.reserved2 = 0;
|
|
|
|
|
CMD.startingIndexOfQueryRecord = startIndex;
|
|
|
|
|
CMD.chargingSerialNumber = chargingSerialNum;
|
|
|
|
|
byte[] bytes = new ChargerSendCMD().SendRCMD401(out APDUModel APDUModel, CMD);
|
|
|
|
|
string result = "站控响应充放电机上报模块状态-发送字节内容:" + ByteUtils.BytesToHexStr(bytes) + ";";
|
|
|
|
|
|
|
|
|
|
Log.LogInstance.WriteLog(result, LogType.Information, "SendLog");
|
|
|
|
@ -741,9 +812,11 @@ namespace BatCharging.Service
|
|
|
|
|
/// <param name="tcp_client"></param>
|
|
|
|
|
/// <param name="dest_addr"></param>
|
|
|
|
|
/// <param name="respResult"></param>
|
|
|
|
|
internal void Send1001(TcpClientChargerTool tcp_client)
|
|
|
|
|
internal void Send1001(TcpClientChargerTool tcp_client, int instruct)
|
|
|
|
|
{
|
|
|
|
|
byte[] bytes = new ChargerSendCMD().SendRCMD1001(out APDUModel APDUModel);
|
|
|
|
|
CMD1001 CMD = new CMD1001();
|
|
|
|
|
CMD.eraseOrQueryInstructions = instruct;
|
|
|
|
|
byte[] bytes = new ChargerSendCMD().SendRCMD1001(out APDUModel APDUModel, CMD);
|
|
|
|
|
string result = "站控响应充放电机上报模块状态-发送字节内容:" + ByteUtils.BytesToHexStr(bytes) + ";";
|
|
|
|
|
|
|
|
|
|
Log.LogInstance.WriteLog(result, LogType.Information, "SendLog");
|
|
|
|
@ -755,9 +828,11 @@ namespace BatCharging.Service
|
|
|
|
|
/// <param name="tcp_client"></param>
|
|
|
|
|
/// <param name="dest_addr"></param>
|
|
|
|
|
/// <param name="respResult"></param>
|
|
|
|
|
internal void Send1003(TcpClientChargerTool tcp_client)
|
|
|
|
|
internal void Send1003(TcpClientChargerTool tcp_client, string fileName)
|
|
|
|
|
{
|
|
|
|
|
byte[] bytes = new ChargerSendCMD().SendRCMD1003(out APDUModel APDUModel);
|
|
|
|
|
CMD1003 CMD = new CMD1003();
|
|
|
|
|
CMD.fileName = fileName;
|
|
|
|
|
byte[] bytes = new ChargerSendCMD().SendRCMD1003(out APDUModel APDUModel, CMD);
|
|
|
|
|
string result = "站控响应充放电机上报模块状态-发送字节内容:" + ByteUtils.BytesToHexStr(bytes) + ";";
|
|
|
|
|
|
|
|
|
|
Log.LogInstance.WriteLog(result, LogType.Information, "SendLog");
|
|
|
|
@ -769,9 +844,11 @@ namespace BatCharging.Service
|
|
|
|
|
/// <param name="tcp_client"></param>
|
|
|
|
|
/// <param name="dest_addr"></param>
|
|
|
|
|
/// <param name="respResult"></param>
|
|
|
|
|
internal void Send1005(TcpClientChargerTool tcp_client)
|
|
|
|
|
internal void Send1005(TcpClientChargerTool tcp_client, uint fileLength)
|
|
|
|
|
{
|
|
|
|
|
byte[] bytes = new ChargerSendCMD().SendRCMD1005(out APDUModel APDUModel);
|
|
|
|
|
CMD1005 CMD = new CMD1005();
|
|
|
|
|
CMD.fileLength = fileLength;
|
|
|
|
|
byte[] bytes = new ChargerSendCMD().SendRCMD1005(out APDUModel APDUModel, CMD);
|
|
|
|
|
string result = "站控响应充放电机上报模块状态-发送字节内容:" + ByteUtils.BytesToHexStr(bytes) + ";";
|
|
|
|
|
|
|
|
|
|
Log.LogInstance.WriteLog(result, LogType.Information, "SendLog");
|
|
|
|
@ -783,9 +860,11 @@ namespace BatCharging.Service
|
|
|
|
|
/// <param name="tcp_client"></param>
|
|
|
|
|
/// <param name="dest_addr"></param>
|
|
|
|
|
/// <param name="respResult"></param>
|
|
|
|
|
internal void Send1007(TcpClientChargerTool tcp_client)
|
|
|
|
|
internal void Send1007(TcpClientChargerTool tcp_client, string updata)
|
|
|
|
|
{
|
|
|
|
|
byte[] bytes = new ChargerSendCMD().SendRCMD1007(out APDUModel APDUModel);
|
|
|
|
|
CMD1007 CMD = new CMD1007();
|
|
|
|
|
CMD.upgradeFileData = updata;
|
|
|
|
|
byte[] bytes = new ChargerSendCMD().SendRCMD1007(out APDUModel APDUModel, CMD);
|
|
|
|
|
string result = "站控响应充放电机上报模块状态-发送字节内容:" + ByteUtils.BytesToHexStr(bytes) + ";";
|
|
|
|
|
|
|
|
|
|
Log.LogInstance.WriteLog(result, LogType.Information, "SendLog");
|
|
|
|
@ -799,7 +878,9 @@ namespace BatCharging.Service
|
|
|
|
|
/// <param name="respResult"></param>
|
|
|
|
|
internal void Send1009(TcpClientChargerTool tcp_client)
|
|
|
|
|
{
|
|
|
|
|
byte[] bytes = new ChargerSendCMD().SendRCMD1009(out APDUModel APDUModel);
|
|
|
|
|
CMD1009 CMD = new CMD1009();
|
|
|
|
|
CMD.Value01 = 0;
|
|
|
|
|
byte[] bytes = new ChargerSendCMD().SendRCMD1009(out APDUModel APDUModel, CMD);
|
|
|
|
|
string result = "站控响应充放电机上报模块状态-发送字节内容:" + ByteUtils.BytesToHexStr(bytes) + ";";
|
|
|
|
|
|
|
|
|
|
Log.LogInstance.WriteLog(result, LogType.Information, "SendLog");
|
|
|
|
@ -813,7 +894,9 @@ namespace BatCharging.Service
|
|
|
|
|
/// <param name="respResult"></param>
|
|
|
|
|
internal void Send1011(TcpClientChargerTool tcp_client)
|
|
|
|
|
{
|
|
|
|
|
byte[] bytes = new ChargerSendCMD().SendRCMD1011(out APDUModel APDUModel);
|
|
|
|
|
CMD1011 CMD = new CMD1011();
|
|
|
|
|
CMD.reserved1 = 0;
|
|
|
|
|
byte[] bytes = new ChargerSendCMD().SendRCMD1011(out APDUModel APDUModel, CMD);
|
|
|
|
|
string result = "站控响应充放电机上报模块状态-发送字节内容:" + ByteUtils.BytesToHexStr(bytes) + ";";
|
|
|
|
|
|
|
|
|
|
Log.LogInstance.WriteLog(result, LogType.Information, "SendLog");
|
|
|
|
@ -825,9 +908,12 @@ namespace BatCharging.Service
|
|
|
|
|
/// <param name="tcp_client"></param>
|
|
|
|
|
/// <param name="dest_addr"></param>
|
|
|
|
|
/// <param name="respResult"></param>
|
|
|
|
|
internal void Send1021(TcpClientChargerTool tcp_client)
|
|
|
|
|
internal void Send1021(TcpClientChargerTool tcp_client, uint results, string description)
|
|
|
|
|
{
|
|
|
|
|
byte[] bytes = new ChargerSendCMD().SendRCMD201(out APDUModel APDUModel);
|
|
|
|
|
CMD1021 CMD = new CMD1021();
|
|
|
|
|
CMD.responseResults = results;
|
|
|
|
|
CMD.responseDescription = description;
|
|
|
|
|
byte[] bytes = new ChargerSendCMD().SendRCMD1021(out APDUModel APDUModel, CMD);
|
|
|
|
|
string result = "站控响应充放电机上报模块状态-发送字节内容:" + ByteUtils.BytesToHexStr(bytes) + ";";
|
|
|
|
|
|
|
|
|
|
Log.LogInstance.WriteLog(result, LogType.Information, "SendLog");
|
|
|
|
|