| | |
| | | |
| | | |
| | | CommonV2 parseCommon = new CommonV2(); |
| | | boolean isThisProtocolData = parseCommon.isThisProtocolHead(preByte) ; |
| | | |
| | | if(!isThisProtocolData){ |
| | | Boolean[] isThisProtocolData = parseCommon.isThisProtocolHead(preByte) ; |
| | | if(isThisProtocolData == null || isThisProtocolData.length != 2 || !isThisProtocolData[0].booleanValue()){ |
| | | //不是本协议数据 |
| | | return null ; |
| | | } |
| | | |
| | | Integer dataLen = parseCommon.parseFrameLen(preByte) ; |
| | | Integer dataLen = parseCommon.parseFrameLen(preByte, isThisProtocolData[1]) ; |
| | | |
| | | if(dataLen == null){ |
| | | String headHex = ByteUtil.bytes2Hex(preByte, true) ; |