From 6cf345bc8fe98d393320b89182f9293171aa19ff Mon Sep 17 00:00:00 2001 From: liurunyu <lry9898@163.com> Date: 星期二, 22 四月 2025 16:39:55 +0800 Subject: [PATCH] 1、根据江海协议中开阀类型变化,修改相应代码; 2、江海协议RTU模拟器启动参数注释。 --- pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/mw/protocol/p206V202404/DriverV202404.java | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/mw/protocol/p206V202404/DriverV202404.java b/pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/mw/protocol/p206V202404/DriverV202404.java index c504d5c..9e09ff8 100644 --- a/pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/mw/protocol/p206V202404/DriverV202404.java +++ b/pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/mw/protocol/p206V202404/DriverV202404.java @@ -59,6 +59,7 @@ this.clear(); boolean isFail = false ; String upCode = null ; + Object[] codeDataGrp = {null}; try{ CommonV202404 cp = new CommonV202404() ; Boolean p202404TrueUgFalse = cp.protocolType_p206TrueUgFalse(upBuffer) ; @@ -100,9 +101,10 @@ }else{ return codeParse.parse(isLowPower, this.upCpParams, new CodeParseCallback(){ @Override - public void callback(Boolean flag) { + public void callback(Boolean flag, Object codeData) { reportOrResponse_trueOrFalse = flag ; //rtuAddrInData = dV201.getRtuAddr() ; + codeDataGrp[0] = codeData ; } @Override public void notify(NotifyInfo ...infos) { @@ -115,7 +117,7 @@ isFail = true ; return new MidResult[]{(new MidResultError(ProtocolConstantV206V202404.protocolName, rtuAddr, "涓ラ噸閿欒锛屽垎鏋怰tu鏁版嵁鍑洪敊锛佹暟鎹负锛�" + upHex + (e.getMessage() == null?"":("锛屽嚭閿欎俊鎭細" + e.getMessage())), e))} ; } finally{ - callback.callback(rtuAddr, upCode, CodeV202404.getCodeName(upCode), upHex, reportOrResponse_trueOrFalse, isFail, rtuAddr); + callback.callback(rtuAddr, upCode, CodeV202404.getCodeName(upCode), upHex, reportOrResponse_trueOrFalse, isFail, rtuAddr, codeDataGrp[0]); } } -- Gitblit v1.8.0