wjc
2025-01-07 90d5f028ccdaaaf64286f9d632cb335a4d0544b9
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
package com.hdl.sdk.link.core.bean;
 
import java.io.Serializable;
 
/**
 * Created by hxb on 2024/3/25.
 */
public class BusProRequest implements Serializable {
    /**
     * 目标子网号
     */
    private byte desSubnetId;
    /**
     * 目标设备号
     */
    private byte desDeviceId;
    /**
     * 操作码,高位与低位
     */
    private byte[] command;
    /**
     * 发送出去的附加数据
     */
    private byte[] extraBytes = new byte[]{};
 
    /**
     * 特别的应用,发送的命令与回复的命令不对应,可以使用此方法
     */
    private byte[] ackCommand;
 
    /**
     * 每次发送的时间
     */
    private long awaitTime;
 
    /**
     * 重发数次
     */
    private int maxRetry;
 
    /**
     * 获取目标设备子网号
     */
    public byte getDesSubnetId() {
        return desSubnetId;
    }
 
    /**
     * 设置目标设备子网号
     */
    public void setDesSubnetId(byte desSubnetId) {
        this.desSubnetId = desSubnetId;
    }
 
    /**
     * 获取目标设备号
     */
    public byte getDesDeviceId() {
        return desDeviceId;
    }
 
    /**
     * 设置获取目标设备号
     */
    public void setDesDeviceId(byte desDeviceId) {
        this.desDeviceId = desDeviceId;
    }
 
    /**
     * 获取操作码
     */
    public byte[] getCommand() {
        return command;
    }
 
    /**
     * 设置操作码
     */
    public void setCommand(byte[] command) {
        this.command = command;
    }
 
    /**
     * 获取附加数据
     */
    public byte[] getExtraBytes() {
        return extraBytes;
    }
 
    /**
     * 设置附加数据
     */
    public void setExtraBytes(byte[] addBytes) {
        this.extraBytes = addBytes;
    }
 
    public byte[] getAckCommand() {
        return ackCommand;
    }
 
    public void setAckCommand(byte[] ackCommand) {
        this.ackCommand = ackCommand;
    }
 
    public long getAwaitTime() {
        return awaitTime;
    }
 
    public void setAwaitTime(long awaitTime) {
        this.awaitTime = awaitTime;
    }
 
    public int getMaxRetry() {
        return maxRetry;
    }
 
    public void setMaxRetry(int maxRetry) {
        this.maxRetry = maxRetry;
    }
}