Commit 9791bd7f by zhouhaibao

[+]新增协议

1 parent cb3aa568
...@@ -84,6 +84,11 @@ public final class TcpMapper { ...@@ -84,6 +84,11 @@ public final class TcpMapper {
public static TcpMapper CMD_RSP_TIME_CHECK = regist(0x55, "对时设置应答", TimeSettingRspHandler.class); public static TcpMapper CMD_RSP_TIME_CHECK = regist(0x55, "对时设置应答", TimeSettingRspHandler.class);
public static TcpMapper CMD_REQ_MODEL_SET = regist(0x58, "计费模型设置", null);
public static TcpMapper CMD_RSP_MODEL_SET = regist(0x57, "对时设置应答", null);
public static TcpMapper fromType(byte type) { public static TcpMapper fromType(byte type) {
TcpMapper c = mappers.get(type); TcpMapper c = mappers.get(type);
if (c == null) { if (c == null) {
......
...@@ -2,6 +2,7 @@ package cn.com.glsx.charging.modules.gbt.ocpp16.tcp.protocol; ...@@ -2,6 +2,7 @@ package cn.com.glsx.charging.modules.gbt.ocpp16.tcp.protocol;
import cn.com.glsx.charging.modules.gbt.ocpp16.tcp.base.TcpMapper; import cn.com.glsx.charging.modules.gbt.ocpp16.tcp.base.TcpMapper;
import cn.com.glsx.charging.modules.gbt.ocpp16.tcp.base.TcpReq; import cn.com.glsx.charging.modules.gbt.ocpp16.tcp.base.TcpReq;
import cn.com.glsx.charging.modules.gbt.ocpp16.tcp.data.ModelSetReqData;
import cn.com.glsx.charging.modules.gbt.ocpp16.tcp.data.ModelValReqData; import cn.com.glsx.charging.modules.gbt.ocpp16.tcp.data.ModelValReqData;
/** /**
...@@ -10,9 +11,9 @@ import cn.com.glsx.charging.modules.gbt.ocpp16.tcp.data.ModelValReqData; ...@@ -10,9 +11,9 @@ import cn.com.glsx.charging.modules.gbt.ocpp16.tcp.data.ModelValReqData;
* @author zhouhb * @author zhouhb
* @date 2023年11月6日 * @date 2023年11月6日
*/ */
public class ModelSetReq extends TcpReq<ModelValReqData> { public class ModelSetReq extends TcpReq<ModelSetReqData> {
public ModelSetReq() { public ModelSetReq() {
super(TcpMapper.CMD_REQ_MODEL_CHECK.getType()); super(TcpMapper.CMD_REQ_MODEL_SET.getType());
} }
} }
...@@ -2,6 +2,7 @@ package cn.com.glsx.charging.modules.gbt.ocpp16.tcp.protocol; ...@@ -2,6 +2,7 @@ package cn.com.glsx.charging.modules.gbt.ocpp16.tcp.protocol;
import cn.com.glsx.charging.modules.gbt.ocpp16.tcp.base.TcpMapper; import cn.com.glsx.charging.modules.gbt.ocpp16.tcp.base.TcpMapper;
import cn.com.glsx.charging.modules.gbt.ocpp16.tcp.base.TcpRsp; import cn.com.glsx.charging.modules.gbt.ocpp16.tcp.base.TcpRsp;
import cn.com.glsx.charging.modules.gbt.ocpp16.tcp.data.ModelSetRspData;
import cn.com.glsx.charging.modules.gbt.ocpp16.tcp.data.ModelValRspData; import cn.com.glsx.charging.modules.gbt.ocpp16.tcp.data.ModelValRspData;
/** /**
...@@ -10,9 +11,9 @@ import cn.com.glsx.charging.modules.gbt.ocpp16.tcp.data.ModelValRspData; ...@@ -10,9 +11,9 @@ import cn.com.glsx.charging.modules.gbt.ocpp16.tcp.data.ModelValRspData;
* @author zhouhb * @author zhouhb
* @date 2023年11月6日 * @date 2023年11月6日
*/ */
public class ModelSetRsp extends TcpRsp<ModelValRspData> { public class ModelSetRsp extends TcpRsp<ModelSetRspData> {
public ModelSetRsp() { public ModelSetRsp() {
super(TcpMapper.CMD_RSP_MODEL_CHECK.getType()); super(TcpMapper.CMD_RSP_MODEL_SET.getType());
} }
} }
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!