jiangping
2025-02-14 e3067f58cce422bbd26a7729bf59f5f4f34a530f
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
package org.yzh.protocol.t808;
 
import io.github.yezhihao.netmc.core.model.Response;
import io.github.yezhihao.protostar.annotation.Field;
import io.github.yezhihao.protostar.annotation.MergeSuperclass;
import io.github.yezhihao.protostar.annotation.Message;
import org.yzh.protocol.basics.JTMessage;
import org.yzh.protocol.commons.JT808;
 
/**
 * @author yezhihao
 * https://gitee.com/yezhihao/jt808-server
 */
@MergeSuperclass
@Message(JT808.查询终端属性应答)
public class T0107 extends JTMessage implements Response {
 
    @Field(length = 2, desc = "终端类型")
    private int deviceType;
    @Field(length = 5, desc = "制造商ID,终端制造商编码")
    private String makerId;
    @Field(length = 20, desc = "终端型号", version = {-1, 0})
    @Field(length = 30, desc = "终端型号", version = 1)
    private String deviceModel;
    @Field(length = 7, desc = "终端ID", version = {-1, 0})
    @Field(length = 30, desc = "终端ID", version = 1)
    private String deviceId;
    @Field(length = 10, charset = "HEX", desc = "终端SIM卡ICCID")
    private String iccid;
    @Field(lengthUnit = 1, desc = "硬件版本号")
    private String hardwareVersion;
    @Field(lengthUnit = 1, desc = "固件版本号")
    private String firmwareVersion;
    @Field(length = 1, desc = "GNSS模块属性")
    private int gnssAttribute;
    @Field(length = 1, desc = "通信模块属性")
    private int networkAttribute;
    @Field(length = 2, desc = "应答流水号")
    private int responseSerialNo;
 
    @Override
    public int getResponseSerialNo() {
        return responseSerialNo;
    }
 
    public void setResponseSerialNo(int responseSerialNo) {
        this.responseSerialNo = responseSerialNo;
    }
    public int getDeviceType() {
        return deviceType;
    }
 
    public void setDeviceType(int deviceType) {
        this.deviceType = deviceType;
    }
 
    public String getMakerId() {
        return makerId;
    }
 
    public void setMakerId(String makerId) {
        this.makerId = makerId;
    }
 
    /** 由制造商自行定义,位数不足时,后补"0x00" */
    public String getDeviceModel() {
        return deviceModel;
    }
 
    public void setDeviceModel(String deviceModel) {
        this.deviceModel = deviceModel;
    }
 
    /** 由大写字母和数字组成,此终端ID由制造商自行定义,位数不足时,后补"0x00" */
    public String getDeviceId() {
        return deviceId;
    }
 
    public void setDeviceId(String deviceId) {
        this.deviceId = deviceId;
    }
 
    public String getIccid() {
        return iccid;
    }
 
    public void setIccid(String iccid) {
        this.iccid = iccid;
    }
 
    public String getHardwareVersion() {
        return hardwareVersion;
    }
 
    public void setHardwareVersion(String hardwareVersion) {
        this.hardwareVersion = hardwareVersion;
    }
 
    public String getFirmwareVersion() {
        return firmwareVersion;
    }
 
    public void setFirmwareVersion(String firmwareVersion) {
        this.firmwareVersion = firmwareVersion;
    }
 
    public int getGnssAttribute() {
        return gnssAttribute;
    }
 
    public void setGnssAttribute(int gnssAttribute) {
        this.gnssAttribute = gnssAttribute;
    }
 
    public int getNetworkAttribute() {
        return networkAttribute;
    }
 
    public void setNetworkAttribute(int networkAttribute) {
        this.networkAttribute = networkAttribute;
    }
}