18045010223
2025-07-07 0d3a683a0c97154b1f2e6657398664537e4e3e82
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
package org.yzh.protocol.commons.transform.parameter;
 
import io.github.yezhihao.protostar.annotation.Field;
import lombok.Data;
import lombok.ToString;
import lombok.experimental.Accessors;
 
import java.time.LocalTime;
 
/**
 * 终端休眠唤醒模式设置数据格式
 * @author yezhihao
 * https://gitee.com/yezhihao/jt808-server
 */
@ToString
@Data
@Accessors(chain = true)
public class ParamSleepWake {
 
    public static final Integer key = 0x007C;
 
    @Field(length = 1, desc = "休眠唤醒模式:[0]条件唤醒 [1]定时唤醒 [2]手动唤醒")
    private int mode;
    @Field(length = 1, desc = "唤醒条件类型:[0]紧急报警 [1]碰撞侧翻报警 [2]车辆开门,休眠唤醒模式中[0]为1时此字段有效,否则置0")
    private int conditionType;
    @Field(length = 1, desc = "周定时唤醒日设置:[0]周一 [1]周二 [2]周三 [3]周四 [4]周五 [5]周六 [6]周日")
    private int dayOfWeek;
    @Field(length = 1, desc = "日定时唤醒启用标志:[0]启用时间段1 [1]启用时间段2 [2]启用时间段3 [3]启用时间段4)")
    private int timeFlag;
    @Field(length = 2, charset = "BCD", desc = "时间段1唤醒时间")
    private LocalTime wakeTime1 = LocalTime.MIN;
    @Field(length = 2, charset = "BCD", desc = "时间段1关闭时间")
    private LocalTime sleepTime1 = LocalTime.MIN;
    @Field(length = 2, charset = "BCD", desc = "时间段2唤醒时间")
    private LocalTime wakeTime2 = LocalTime.MIN;
    @Field(length = 2, charset = "BCD", desc = "时间段2关闭时间")
    private LocalTime sleepTime2 = LocalTime.MIN;
    @Field(length = 2, charset = "BCD", desc = "时间段3唤醒时间")
    private LocalTime wakeTime3 = LocalTime.MIN;
    @Field(length = 2, charset = "BCD", desc = "时间段3关闭时间")
    private LocalTime sleepTime3 = LocalTime.MIN;
    @Field(length = 2, charset = "BCD", desc = "时间段4唤醒时间")
    private LocalTime wakeTime4 = LocalTime.MIN;
    @Field(length = 2, charset = "BCD", desc = "时间段4关闭时间")
    private LocalTime sleepTime4 = LocalTime.MIN;
 
}