update 电单车协议

This commit is contained in:
Guoqs
2024-08-26 15:50:50 +08:00
parent 8d278745b4
commit 81dca24110

View File

@@ -102,7 +102,7 @@ public abstract class AbsEBikeMessage {
}
public static void main(String[] args) {
String s = "44 4e 59 00 0d 3b 37 ab 04 b9 00 22 ee 32 cc 66 04 14".replace(" ", "");
String s = "44 4e 59 00 0d 3b 37 ab 04 b9 00 22 54 33 cc 66 03 7b".replace(" ", "");
byte[] messageBytes = BytesUtil.hexStringToByteArray(s);
// 读取包头
byte[] headerBytes = Arrays.copyOfRange(messageBytes, 0, 3);