|
|
@ -72,6 +72,8 @@ public class TempControlStrategy implements DeviceStrategy { |
|
|
|
str = str + funCode + registerAddr + "0002" + "04" |
|
|
|
str = str + funCode + registerAddr + "0002" + "04" |
|
|
|
+ ExchangeStringUtil.addZeroForNum(ExchangeStringUtil.decToHex(deviceCodeParamEntity.getDataValue()), 4) |
|
|
|
+ ExchangeStringUtil.addZeroForNum(ExchangeStringUtil.decToHex(deviceCodeParamEntity.getDataValue()), 4) |
|
|
|
+ "0001"; |
|
|
|
+ "0001"; |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
str=str+"0300000002"; |
|
|
|
} |
|
|
|
} |
|
|
|
String checkWord = ExchangeStringUtil.getStrCRC16(str); //CRC16校验
|
|
|
|
String checkWord = ExchangeStringUtil.getStrCRC16(str); //CRC16校验
|
|
|
|
str = str + checkWord; |
|
|
|
str = str + checkWord; |
|
|
|