解析0x15 充电握手

This commit is contained in:
Guoqs
2024-12-16 16:58:06 +08:00
parent ea1de5afa8
commit 7492cf4e8c

View File

@@ -99,7 +99,7 @@ public class Data0x15 extends YKCBaseMessage {
/**
* BMS 电池组产权标识 <0> =租赁; <1> =车自有)
*/
private String bmsPropertyIdentificationByteArr;
private String bmsPropertyIdentification;
/**
* BMS 预留位
@@ -198,7 +198,8 @@ public class Data0x15 extends YKCBaseMessage {
// BMS 电池组产权标识 <0> =租赁; <1> =车自有)
startIndex += length;
length = 1;
byte[] BMSPropertyIdentificationByteArr = BytesUtil.copyBytes(messageBytes, startIndex, length);
byte[] bmsPropertyIdentificationByteArr = BytesUtil.copyBytes(messageBytes, startIndex, length);
this.bmsPropertyIdentification = BytesUtil.bin2HexStr(bmsPropertyIdentificationByteArr);
// BMS 预留位
startIndex += length;