From 29806b7bb23020922a209cf616eb45d848ba7aaa Mon Sep 17 00:00:00 2001 From: Lemon Date: Thu, 10 Aug 2023 09:40:20 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9C=B0=E9=94=81=E8=BF=94=E5=9B=9E=E6=8E=A7?= =?UTF-8?q?=E5=88=B6=E6=8C=87=E4=BB=A4=20=E8=A7=A3=E6=9E=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../handler/RemoteControlGroundLockResponseHandler.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/jsowell-netty/src/main/java/com/jsowell/netty/handler/RemoteControlGroundLockResponseHandler.java b/jsowell-netty/src/main/java/com/jsowell/netty/handler/RemoteControlGroundLockResponseHandler.java index 93ad4518e..d45d65125 100644 --- a/jsowell-netty/src/main/java/com/jsowell/netty/handler/RemoteControlGroundLockResponseHandler.java +++ b/jsowell-netty/src/main/java/com/jsowell/netty/handler/RemoteControlGroundLockResponseHandler.java @@ -34,24 +34,29 @@ public class RemoteControlGroundLockResponseHandler extends AbstractHandler{ int startIndex = 0; int length = 7; - // 桩编号 byte[] pileSnByteArr = BytesUtil.copyBytes(msgBody, startIndex, length); + String pileSn = BytesUtil.bcd2Str(pileSnByteArr); // 枪号 startIndex += length; length = 1; byte[] connectorCodeByteArr = BytesUtil.copyBytes(msgBody, startIndex, length); + String connectorCode = BytesUtil.bcd2Str(connectorCodeByteArr); // 地锁控制返回标志 布尔型( 1, 鉴权成功; 0, 鉴权失败) startIndex += length; byte[] controlResultByteArr = BytesUtil.copyBytes(msgBody, startIndex, length); + String controlResult = BytesUtil.bcd2Str(controlResultByteArr); // 预留位 startIndex += length; length = 4; byte[] waitingUseByteArr = BytesUtil.copyBytes(msgBody, startIndex, length); + log.info("===充电桩返回遥控地锁升锁与降锁数据(上行)=== result: 桩编号:{}, 枪号:{}, 地锁控制返回标志:( 1, 鉴权成功; 0, 鉴权失败){}", + pileSn, connectorCode, controlResult); + return null; } }