From b1c77065389922bbdefb9f9869779ef99b6d6791 Mon Sep 17 00:00:00 2001 From: liurunyu <lry9898@163.com> Date: 星期五, 22 十一月 2024 09:54:38 +0800 Subject: [PATCH] 升级演示程序bug修改,增加失败重次逻辑 --- pipIrr-platform/pipIrr-mw/pipIrr-mw-simulate-rtu/src/main/java/com/dy/simRtu/tcpClient/upData/UpData.java | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pipIrr-platform/pipIrr-mw/pipIrr-mw-simulate-rtu/src/main/java/com/dy/simRtu/tcpClient/upData/UpData.java b/pipIrr-platform/pipIrr-mw/pipIrr-mw-simulate-rtu/src/main/java/com/dy/simRtu/tcpClient/upData/UpData.java index f85a2fa..3db4a2a 100644 --- a/pipIrr-platform/pipIrr-mw/pipIrr-mw-simulate-rtu/src/main/java/com/dy/simRtu/tcpClient/upData/UpData.java +++ b/pipIrr-platform/pipIrr-mw/pipIrr-mw-simulate-rtu/src/main/java/com/dy/simRtu/tcpClient/upData/UpData.java @@ -52,7 +52,7 @@ protected static byte[] creatHead4Upgrade(String rtuAddr, String preCode, String sufCode)throws Exception { byte[] bsHead = new byte[12] ; byte index = 0 ; - bsHead[index] = ProtocolConstantV206V1.P_Head_Byte ; + bsHead[index] = ProtocolConstantV206V1.UG_P_Head_Byte ; index++ ; bsHead[index] = 0 ;//甯ч暱搴� @@ -60,7 +60,7 @@ bsHead[index] = 0 ;//甯ч暱搴� index++ ; - bsHead[index] = ProtocolConstantV206V1.P_Head_Byte ; + bsHead[index] = ProtocolConstantV206V1.UG_P_Head_Byte ; index++ ; bsHead[index] = ByteUtil.hex2Bytes(preCode)[0]; //鍔熻兘鐮佸煙 -- Gitblit v1.8.0