mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-07-04 22:18:02 +08:00
update 电单车
This commit is contained in:
@@ -19,7 +19,6 @@ public class AbsEBikeMessage2 {
|
|||||||
protected int physicalId; // 物理ID (4字节)
|
protected int physicalId; // 物理ID (4字节)
|
||||||
protected int messageId; // 消息ID (2字节)
|
protected int messageId; // 消息ID (2字节)
|
||||||
protected String command; // 命令 (1字节)
|
protected String command; // 命令 (1字节)
|
||||||
// protected Object payload; // 数据 (n字节)
|
|
||||||
protected int checksum; // 校验 (2字节)
|
protected int checksum; // 校验 (2字节)
|
||||||
|
|
||||||
public AbsEBikeMessage2(byte[] messageBytes) {
|
public AbsEBikeMessage2(byte[] messageBytes) {
|
||||||
@@ -62,7 +61,7 @@ public class AbsEBikeMessage2 {
|
|||||||
byte[] commandBytes = BytesUtil.copyBytes(messageBytes, startIndex, length);
|
byte[] commandBytes = BytesUtil.copyBytes(messageBytes, startIndex, length);
|
||||||
this.command = BytesUtil.bcd2StrLittle(commandBytes);
|
this.command = BytesUtil.bcd2StrLittle(commandBytes);
|
||||||
|
|
||||||
// 读取数据
|
// 读取数据, 暂不处理, 交给子类处理
|
||||||
// byte[] dataBytes = BytesUtil.copyBytes(messageBytes, startIndex, length);
|
// byte[] dataBytes = BytesUtil.copyBytes(messageBytes, startIndex, length);
|
||||||
|
|
||||||
// 读取校验
|
// 读取校验
|
||||||
|
|||||||
Reference in New Issue
Block a user