111
k94314517
2025-02-28 04dba6a17f836b5fbdf0eedff8a129c6785fd8a2
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
package org.yzh.protocol.jsatl12;
 
import io.github.yezhihao.protostar.annotation.Field;
import io.github.yezhihao.protostar.annotation.Message;
import org.yzh.protocol.basics.JTMessage;
import org.yzh.protocol.commons.JSATL12;
 
import java.time.LocalDateTime;
 
/**
 * @author yezhihao
 * https://gitee.com/yezhihao/jt808-server
 */
@Message(JSATL12.报警附件上传指令)
public class T9208 extends JTMessage {
 
    private static final byte[] RESERVES = new byte[16];
 
    @Field(lengthUnit = 1, desc = "服务器IP地址")
    private String ip;
    @Field(length = 2, desc = "TCP端口")
    private int tcpPort;
    @Field(length = 2, desc = "UDP端口")
    private int udpPort;
 
    @Field(length = 7, desc = "终端ID", version = {-1, 0})
    @Field(length = 30, desc = "终端ID(粤标)", version = 1)
    private String deviceId;
    @Field(length = 6, charset = "BCD", desc = "时间(YYMMDDHHMMSS)")
    private LocalDateTime dateTime;
    @Field(length = 1, desc = "序号(同一时间点报警的序号,从0循环累加)")
    private int sequenceNo;
    @Field(length = 1, desc = "附件数量")
    private int fileTotal;
    @Field(length = 1, desc = "预留", version = {-1, 0})
    @Field(length = 2, desc = "预留(粤标)", version = 1)
    private int reserved;
 
    @Field(length = 32, desc = "报警编号")
    private String platformAlarmId;
    @Field(length = 16, desc = "预留")
    private byte[] reserves = RESERVES;
 
    public String getIp() {
        return ip;
    }
 
    public void setIp(String ip) {
        this.ip = ip;
    }
 
    public int getTcpPort() {
        return tcpPort;
    }
 
    public void setTcpPort(int tcpPort) {
        this.tcpPort = tcpPort;
    }
 
    public int getUdpPort() {
        return udpPort;
    }
 
    public void setUdpPort(int udpPort) {
        this.udpPort = udpPort;
    }
 
    public String getDeviceId() {
        return deviceId;
    }
 
    public void setDeviceId(String deviceId) {
        this.deviceId = deviceId;
    }
 
    public LocalDateTime getDateTime() {
        return dateTime;
    }
 
    public void setDateTime(LocalDateTime dateTime) {
        this.dateTime = dateTime;
    }
 
    public int getSequenceNo() {
        return sequenceNo;
    }
 
    public void setSequenceNo(int sequenceNo) {
        this.sequenceNo = sequenceNo;
    }
 
    public int getFileTotal() {
        return fileTotal;
    }
 
    public void setFileTotal(int fileTotal) {
        this.fileTotal = fileTotal;
    }
 
    public int getReserved() {
        return reserved;
    }
 
    public void setReserved(int reserved) {
        this.reserved = reserved;
    }
 
    public String getPlatformAlarmId() {
        return platformAlarmId;
    }
 
    public void setPlatformAlarmId(String platformAlarmId) {
        this.platformAlarmId = platformAlarmId;
    }
 
    public byte[] getReserves() {
        return reserves;
    }
 
    public void setReserves(byte[] reserves) {
        this.reserves = reserves;
    }
}