处理充电桩传来的程序版本

This commit is contained in:
jsowell
2026-06-10 16:41:58 +08:00
parent b0049ffc85
commit b001d036e0
3 changed files with 20 additions and 2 deletions

View File

@@ -2,6 +2,7 @@ package com.jsowell.common.core.domain.ykc.device2platform;
import com.jsowell.common.util.BytesUtil;
import com.jsowell.common.core.domain.ykc.YKCBaseMessage;
import com.jsowell.common.util.PileProgramVersionUtils;
import lombok.Data;
import java.math.BigDecimal;
@@ -109,7 +110,7 @@ public class Data0x01 extends YKCBaseMessage {
startIndex += length;
length = 8;
byte[] programVersionByteArr = BytesUtil.copyBytes(messageBytes, startIndex, length);
this.programVersion = BytesUtil.ascii2Str(programVersionByteArr);
this.programVersion = PileProgramVersionUtils.normalize(BytesUtil.ascii2Str(programVersionByteArr));
// log.info("程序版本:{} length:{}", programVersion, programVersion.length());
// 网络连接类型 0x00 SIM 卡 0x01 LAN 0x02 WAN 0x03 其他