| | |
| | | this.clear(); |
| | | boolean isFail = false ; |
| | | String upCode = null ; |
| | | Object[] codeDataGrp = {null}; |
| | | try{ |
| | | CommonV202404 cp = new CommonV202404() ; |
| | | Boolean p202404TrueUgFalse = cp.protocolType_p206TrueUgFalse(upBuffer) ; |
| | |
| | | }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) { |
| | |
| | | isFail = true ; |
| | | return new MidResult[]{(new MidResultError(ProtocolConstantV206V202404.protocolName, rtuAddr, "严重错误,分析Rtu数据出错!数据为:" + 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]); |
| | | } |
| | | } |
| | | |