panlili2024
2024-11-12 69afac92a320033297d71e901e3c5b65e690f0b2
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
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
package com.hdl.sdk.ttl.HDLAppliances.HDLAirCondition;
 
import com.hdl.sdk.ttl.HDLDeviceManger.Bean.AppliancesInfo;
 
import java.io.Serializable;
 
/**
 * Created by panlili on 2023/8/21
 */
public class AirTechSysBackInfo implements Serializable {
    private AppliancesInfo appliancesInfo;
    private String remarks;
    private int channelNum;//回路号
    private int isOn;//0=关,1=开
    private String indoorTemp;//室内温度点 0-84
    private String indoorHumidity;//室内湿度 0-100
    private int indoorTempInt;//室内温度点整数部分
    private int indoorTempFloat;//室内温度点小数部分
 
    private String coldTemp;//制冷温度点,支持小数的用这个
    private int refTemp;//制冷温度点整数部分 0-84
    private int refTempFloat;//制冷温度点小数部分
 
    private String hotTemp;//制冷温度点,支持小数的用这个
    private int heatTemp;//制热温度点整数部分 0-84
    private int heatTempFloat;//制热温度点小数部分
 
    private String setTemp;//制冷温度点 0-84
    private int setTempInt;//制热温度点整数部分 0-84
    private int setTempFloat;//制热温度点小数部分
 
    private int airMode;//空调模式0 = 制冷, 1 = 制热
    private byte[] curState;//控制回馈信息
 
    public AirTechSysBackInfo() {
 
    }
 
    public AirTechSysBackInfo(AppliancesInfo mAppliancesInfo) {
        this.appliancesInfo = mAppliancesInfo;
        this.curState = mAppliancesInfo.getArrCurState();
        this.remarks = mAppliancesInfo.getRemarks();
 
        if (this.curState == null) return;
 
        if (this.curState.length >= 19) {
            this.channelNum = this.curState[0] & 0xFF;
            this.indoorTempInt = this.curState[2] & 0xFF;
            this.refTemp = this.curState[3] & 0xFF;//制冷温度点 0-84
            this.heatTemp = this.curState[4] & 0xFF;//制热温度点 0-84
            this.isOn = this.curState[8] & 0xFF;//只取低4位
            this.airMode = this.curState[9] & 0xFF;
            this.setTempInt = this.curState[11] & 0xFF;
            this.indoorTempFloat = this.curState[13] & 0xFF;
            this.indoorTemp = indoorTempInt + "." + indoorTempFloat;
 
            this.refTempFloat = this.curState[14] & 0xFF;
            this.coldTemp = refTemp + "." + refTempFloat;
 
            this.heatTempFloat = this.curState[15] & 0xFF;
            this.hotTemp = heatTemp + "." + heatTempFloat;
 
            this.setTempFloat = this.curState[18] & 0xFF;
            this.setTemp = setTempInt + "." + setTempFloat;
 
        } else if (this.curState.length >= 14) {
            this.channelNum = this.curState[0] & 0xFF;
            this.indoorTempInt = this.curState[2] & 0xFF;
            this.refTemp = this.curState[3] & 0xFF;//制冷温度点 0-84
            this.heatTemp = this.curState[4] & 0xFF;//制热温度点 0-84
            this.isOn = this.curState[8] & 0xFF;//只取低4位
            this.airMode = this.curState[9] & 0xFF;
            this.indoorTempFloat = this.curState[13] & 0xFF;
            this.indoorTemp = indoorTempInt + "." + indoorTempFloat;
        }
    }
 
    public String getIndoorTemp() {
        return indoorTemp;
    }
 
    public void setIndoorTemp(String indoorTemp) {
        this.indoorTemp = indoorTemp;
    }
 
    public String getIndoorHumidity() {
        return indoorHumidity;
    }
 
    public void setIndoorHumidity(String indoorHumidity) {
        this.indoorHumidity = indoorHumidity;
    }
 
    public AppliancesInfo getAppliancesInfo() {
        return appliancesInfo;
    }
 
    public void setAppliancesInfo(AppliancesInfo appliancesInfo) {
        this.appliancesInfo = appliancesInfo;
    }
 
    public String getRemarks() {
        return remarks;
    }
 
    public void setRemarks(String remarks) {
        this.remarks = remarks;
    }
 
    public int getChannelNum() {
        return channelNum;
    }
 
    public void setChannelNum(int channelNum) {
        this.channelNum = channelNum;
    }
 
    public int getIsOn() {
        return isOn;
    }
 
    public void setIsOn(int isOn) {
        this.isOn = isOn;
    }
 
    public int getRefTemp() {
        return refTemp;
    }
 
    public void setRefTemp(int refTemp) {
        this.refTemp = refTemp;
    }
 
    public int getHeatTemp() {
        return heatTemp;
    }
 
    public void setHeatTemp(int heatTemp) {
        this.heatTemp = heatTemp;
    }
 
    public int getAirMode() {
        return airMode;
    }
 
    public void setAirMode(int airMode) {
        this.airMode = airMode;
    }
 
    public String getColdTemp() {
        return coldTemp;
    }
 
    public void setColdTemp(String coldTemp) {
        this.coldTemp = coldTemp;
    }
 
    public String getHotTemp() {
        return hotTemp;
    }
 
    public void setHotTemp(String hotTemp) {
        this.hotTemp = hotTemp;
    }
 
    public String getSetTemp() {
        return setTemp;
    }
 
    public void setSetTemp(String setTemp) {
        this.setTemp = setTemp;
    }
 
    public byte[] getCurState() {
        return curState;
    }
 
    public void setCurState(byte[] curState) {
        this.curState = curState;
    }
 
}