From 62c9bcfe313d190ee6e99de443066b3b08b5b764 Mon Sep 17 00:00:00 2001
From: liurunyu <lry9898@163.com>
Date: 星期三, 15 五月 2024 14:01:55 +0800
Subject: [PATCH] 通信中间件测试模块,向通信中间件发送设备的各种命令,以完成测试
---
pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/mw/protocol/p206V202404/parse/global/GlCreate.java | 11 +++++++++++
1 files changed, 11 insertions(+), 0 deletions(-)
diff --git a/pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/mw/protocol/p206V202404/parse/global/GlCreate.java b/pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/mw/protocol/p206V202404/parse/global/GlCreate.java
index 16f5543..f428bde 100644
--- a/pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/mw/protocol/p206V202404/parse/global/GlCreate.java
+++ b/pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/mw/protocol/p206V202404/parse/global/GlCreate.java
@@ -93,6 +93,17 @@
Integer icCardNo2Int = Integer.parseInt(icCardNo2) ;
ByteUtilUnsigned.short2Bytes_LE(bs, icCardNo2Int.shortValue(), index);
}
+
+ public static void createDt(byte[] bs, int index) throws Exception {
+ bs[index] = Byte.parseByte(DateTime.ss()) ;
+ bs[index + 1] = Byte.parseByte(DateTime.mm()) ;
+ bs[index + 2] = Byte.parseByte(DateTime.HH()) ;
+ bs[index + 3] = Byte.parseByte(DateTime.dd()) ;
+ bs[index + 4] = Byte.parseByte(DateTime.MM()) ;
+ bs[index + 5] = Byte.parseByte(DateTime.yy()) ;
+ }
+
+
public static void createPw(byte[] bs, int index) throws Exception {
bs[index] = 0;
bs[index + 1] = 0;
--
Gitblit v1.8.0