Ver Fonte

增加康凯斯协议报文转发

syg há 4 anos atrás
pai
commit
4e98c72bf2

+ 0 - 9
data-acceptance-client/src/main/java/com/tidecloud/dataacceptance/vo/LockClient2.java

@@ -1,9 +0,0 @@
-package com.tidecloud.dataacceptance.vo;
-
-/**
- * @Author: syg
- * @Date: 2020/7/17 15:47
- * @Desc:
- */
-public interface LockClient2 {
-}

+ 1 - 1
src/main/java/com/tidecloud/dataacceptance/service/HexBinaryAcceptanceHandlerAdapter.java

@@ -79,7 +79,7 @@ public abstract class HexBinaryAcceptanceHandlerAdapter extends AcceptanceInboun
     protected void sendOrginalMsgFor808(byte[] dataByteArray, String deviceId, PackageData.MsgHeader header) {
         final int msgId = header.getMsgId();
         boolean isInitial = Constants.MSG_TERMINAL_REGISTER.equals(msgId);
-        sendOriginalMsg(dataByteArray, deviceId, isInitial);
+        sendOriginalMsg(dataByteArray, deviceId, isInitial,0);
     }
     protected void sendOriginalMsg(byte[] dataByteArray, String deviceId, boolean isInitial) {
         MsgWrapper msgWrapper = new MsgWrapper(deviceId, DatatypeConverter.printHexBinary(dataByteArray), isInitial);

+ 3 - 3
src/main/java/com/tidecloud/dataacceptance/service/impl/YiTongGpsServerHandler.java

@@ -133,9 +133,9 @@ public class YiTongGpsServerHandler extends HexBinaryAcceptanceHandlerAdapter {
 				logger.info("client send data without handle type ...");
 			}
 
-			//增加KKS 协议报文转发
-			//KKS protocolCode = 3
-			Boolean isInitial = (LOGIN_MSG == msgType);
+			// 增加KKS 协议报文转发
+			// KKS protocolCode = 3
+			boolean isInitial = (LOGIN_MSG == msgType);
 			sendOriginalMsg(getOriginalData(in, deviceId), deviceId,isInitial,3);
 
 		}