mirror of
https://gitee.com/san-bing/JChargePointProtocol
synced 2026-05-05 10:29:56 +08:00
54 lines
1016 B
Java
54 lines
1016 B
Java
/**
|
||
* 开源代码,仅供学习和交流研究使用,商用请联系三丙
|
||
* 微信:mohan_88888
|
||
* 抖音:程序员三丙
|
||
* 付费课程知识星球:https://t.zsxq.com/aKtXo
|
||
*/
|
||
package sanbing.jcpp.protocol.yunkuaichong;
|
||
|
||
import lombok.Data;
|
||
import lombok.experimental.Accessors;
|
||
|
||
import java.io.Serializable;
|
||
import java.util.UUID;
|
||
|
||
@Data
|
||
@Accessors(chain = true)
|
||
public class YunKuaiChongUplinkMessage implements Serializable {
|
||
// 消息ID
|
||
private final UUID id;
|
||
|
||
// 起始域
|
||
private int head;
|
||
|
||
// 数据长度
|
||
private int dataLength;
|
||
|
||
// 序列号
|
||
private int sequenceNumber;
|
||
|
||
// 加密标识
|
||
private int encryptionFlag;
|
||
|
||
// 指令
|
||
private int cmd;
|
||
|
||
// 消息体
|
||
private byte[] msgBody;
|
||
|
||
// 校验和
|
||
private int checkSum;
|
||
|
||
// 真实报文
|
||
private byte[] rawFrame;
|
||
|
||
public YunKuaiChongUplinkMessage(UUID id) {
|
||
this.id = id;
|
||
}
|
||
|
||
public YunKuaiChongUplinkMessage() {
|
||
this(UUID.randomUUID());
|
||
}
|
||
|
||
}
|