From db88628e7bb03f334fa65826bd655c27859a9973 Mon Sep 17 00:00:00 2001
From: liurunyu <lry9898@163.com>
Date: 星期日, 03 十一月 2024 16:52:04 +0800
Subject: [PATCH] 1、协议版本号增加到协议解析与命令构造中; 2、增加RTU状态记录功能,为RTU远程升级做准备。

---
 pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/mw/protocol/p206V202404/DriverV202404.java |   11 +++++++----
 1 files changed, 7 insertions(+), 4 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 6f95d48..8069bf4 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
@@ -14,7 +14,6 @@
 	private ParseParamsForDownV202404 downCpParams ;
 	
 	private Boolean reportOrResponse_trueOrFalse = null ;
-	private String rtuAddrInData = null ;
 
 	public DriverV202404(){
 		upCpParams = new ParseParamsForUpV202404() ;
@@ -33,7 +32,6 @@
 			this.downCpParams.clear();
 		}
 		this.reportOrResponse_trueOrFalse = null ;
-		this.rtuAddrInData = null ;
 	}
 
 	/**
@@ -88,6 +86,7 @@
 			upData.setSubData(dV201) ;
 			
 			this.upCpParams.setValue(ProtocolConstantV206V202404.protocolName,
+					ProtocolConstantV206V202404.protocolVer,
 					rtuAddr, 
 					upCode,
 					upHex, 
@@ -101,7 +100,10 @@
 					@Override
 					public void callback(Boolean flag) {
 						reportOrResponse_trueOrFalse = flag ;
-						rtuAddrInData = dV201.getRtuAddr() ;
+						//rtuAddrInData = dV201.getRtuAddr() ;
+					}
+					@Override
+					public void notify(NotifyInfo ...infos) {
 					}
 				});
 			}
@@ -136,7 +138,8 @@
 			
 			this.downCpParams.setValue(
 					RtuResultSendWebUrl,
-					ProtocolConstantV206V202404.protocolName, 
+					ProtocolConstantV206V202404.protocolName,
+					command.protocolVersion==null?ProtocolConstantV206V202404.protocolVer:command.protocolVersion,
 					rtuAddr, 
 					command.getId(),
 					commandCode, 

--
Gitblit v1.8.0