update 电单车

This commit is contained in:
Guoqs
2024-09-18 10:01:29 +08:00
parent 141d2df4b5
commit 5e8a6b6605

View File

@@ -19,7 +19,6 @@ public class AbsEBikeMessage2 {
protected int physicalId; // 物理ID (4字节)
protected int messageId; // 消息ID (2字节)
protected String command; // 命令 (1字节)
// protected Object payload; // 数据 (n字节)
protected int checksum; // 校验 (2字节)
public AbsEBikeMessage2(byte[] messageBytes) {
@@ -62,7 +61,7 @@ public class AbsEBikeMessage2 {
byte[] commandBytes = BytesUtil.copyBytes(messageBytes, startIndex, length);
this.command = BytesUtil.bcd2StrLittle(commandBytes);
// 读取数据
// 读取数据, 暂不处理, 交给子类处理
// byte[] dataBytes = BytesUtil.copyBytes(messageBytes, startIndex, length);
// 读取校验