|
|
|
|
@ -127,7 +127,7 @@ public class WtMeterStrategy implements DeviceStrategy {
|
|
|
|
|
checkWord = checkWord.substring(2, 4) + checkWord.substring(0, 2); |
|
|
|
|
String sValue = null; |
|
|
|
|
if (checkWord.equalsIgnoreCase(dataStr.substring(dataStr.length() - 4))) { |
|
|
|
|
meterId = ExchangeStringUtil.hexToDec(checkStr.substring(0, 2));//地址
|
|
|
|
|
meterId = ExchangeStringUtil.addZeroForNum(checkStr.substring(0, 2), 2);//地址
|
|
|
|
|
if (checkStr.substring(2, 4).equalsIgnoreCase("03")) { |
|
|
|
|
data = String.valueOf(Integer.parseInt(ExchangeStringUtil.hexToDec(checkStr.substring(6, 14))) / 100); //读数
|
|
|
|
|
} |
|
|
|
|
|