mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-06-13 03:39:55 +08:00
0x03帧,则不进行crc校验
This commit is contained in:
@@ -37,10 +37,10 @@ public class YKCBusinessServiceImpl implements YKCBusinessService {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public byte[] process(byte[] msg, ChannelHandlerContext ctx) {
|
public byte[] process(byte[] msg, ChannelHandlerContext ctx) {
|
||||||
// if (!YKCUtils.checkMsg(msg)) {
|
if (!YKCUtils.checkMsg(msg)) {
|
||||||
// // 校验不通过,丢弃消息
|
// 校验不通过,丢弃消息
|
||||||
// return null;
|
return null;
|
||||||
// }
|
}
|
||||||
YKCDataProtocol ykcDataProtocol = new YKCDataProtocol(msg);
|
YKCDataProtocol ykcDataProtocol = new YKCDataProtocol(msg);
|
||||||
// 获取帧类型
|
// 获取帧类型
|
||||||
String frameType = YKCUtils.frameType2Str(ykcDataProtocol.getFrameType());
|
String frameType = YKCUtils.frameType2Str(ykcDataProtocol.getFrameType());
|
||||||
|
|||||||
Reference in New Issue
Block a user