|
@@ -132,7 +132,7 @@ public class ZLOpdProtHandler extends ChannelInboundHandlerAdapter {
|
|
|
|
|
|
int calCrc16=Crc16Utils.getCRC(headAndDatas);
|
|
|
|
|
|
- if(ByteUtils.byte2ToIntHL(crc16)==calCrc16) { //crc校验通过
|
|
|
+ //if(ByteUtils.byte2ToIntHL(crc16)==calCrc16) { //crc校验通过 //2025.6.13 暂时去掉校验 ByteUtils.byte2ToIntHL(crc16)==calCrc16
|
|
|
|
|
|
byteBuf.readerIndex(headBtyCount); //readIndex设置到数据区起始位置,后面解析直接可读数据
|
|
|
|
|
@@ -149,10 +149,11 @@ public class ZLOpdProtHandler extends ChannelInboundHandlerAdapter {
|
|
|
|
|
|
|
|
|
|
|
|
- }
|
|
|
+ //}
|
|
|
+ /*
|
|
|
else {
|
|
|
logger.info("CRC16校验失败:{}读指令{}返回消息:{}",serial,cmd,hexmsg);
|
|
|
- }
|
|
|
+ }*/
|
|
|
}
|
|
|
|
|
|
/**
|