| | |
| | | @Override |
| | | public void process(String productKey, String deviceName, CommonFrame frame) { |
| | | String functionCode = frame.getPayload().substring(2, 4); |
| | | //TODO |
| | | if (!frame.getPayload().contains("0000048E")) { |
| | | log.info("不要处理0000048E之外的充电桩!"); |
| | | return; |
| | | } |
| | | |
| | | |
| | | if (C3ChargingEnum.NETWORK_REQUEST.getCode().equals(functionCode)) { |
| | | A5C3CommonReportInnerFrame netRequestFrame = new A5C3CommonReportInnerFrame().transformFrame(frame.getPayload()); |
| | | log.info("C3充电桩上报处理_netRequestFrame"); |
| | |
| | | LogUtils.error("{ 充电桩(" + completeRequestFrame.getDestinationAddress() + ")充电结束上报读取心跳包失败,请检查充电桩是否出现故障! }"); |
| | | return; |
| | | } |
| | | orderService.orderProcess(aPackage); |
| | | orderService.stopCharingOrder(aPackage); |
| | | |
| | | } else if (C3ChargingEnum.CHARGE_STOP.getCode().equals(functionCode)) { |
| | | log.info("心跳响应——充电中断"); |