Commit 384640ac by zhouhaibao

[+]初始化异常处理

1 parent e2755a38
...@@ -22,8 +22,7 @@ public class ModelChargingReqHandler implements TcpHandler<ModelChargingReq, Mod ...@@ -22,8 +22,7 @@ public class ModelChargingReqHandler implements TcpHandler<ModelChargingReq, Mod
// 查业务系统 // 查业务系统
log.info("请求验证的桩号{}", Ocpp16Helper.bcdToStr(req.getData().getPileId())); log.info("请求验证的桩号{}", Ocpp16Helper.bcdToStr(req.getData().getPileId()));
data.setPileId(req.getData().getPileId()); data.setPileId(req.getData().getPileId());
byte[] modelcodeByte = new byte[]{(byte) 0x00, 0x01}; data.setModelCode(Ocpp16Helper.strToBcd("256", data.getModelCode()));
data.setModelCode(modelcodeByte);
byte[] byteArray = new byte[]{(byte) 0x9C, 0x40, 0x01, 0x00}; byte[] byteArray = new byte[]{(byte) 0x9C, 0x40, 0x01, 0x00};
data.setValleyDreRate(byteArray); data.setValleyDreRate(byteArray);
data.setValleyEleRate(byteArray); data.setValleyEleRate(byteArray);
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!