mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-20 02:55:04 +08:00
0x03帧,则不进行crc校验
This commit is contained in:
@@ -52,6 +52,13 @@ public class YKCUtils {
|
||||
log.error("起始位必须是0x68");
|
||||
return false;
|
||||
}
|
||||
|
||||
// 如果是0x03帧,则不进行crc校验
|
||||
if (0x03 == frameType[0]) {
|
||||
log.info("0x03帧,则不进行crc校验");
|
||||
return true;
|
||||
}
|
||||
|
||||
// 序列号域+加密标志+帧类型标志+消息体
|
||||
byte[] data = Bytes.concat(serialNumber, encryptFlag, frameType, msgBody);
|
||||
// 校验长度
|
||||
|
||||
Reference in New Issue
Block a user