Browse Source

ALL改为all

tags/v1.0.0^2
林万龙 3 years ago
parent
commit
47857467fc
2 changed files with 4 additions and 4 deletions
  1. +3
    -3
      src/main/java/com/telpo/dipperposition/service/impl/DipperAstPosAsyncTaskServiceImpl.java
  2. +1
    -1
      src/main/java/com/telpo/dipperposition/service/impl/DipperAstTimeAsyncTaskServiceImpl.java

+ 3
- 3
src/main/java/com/telpo/dipperposition/service/impl/DipperAstPosAsyncTaskServiceImpl.java View File

@@ -212,8 +212,8 @@ public class DipperAstPosAsyncTaskServiceImpl implements IDipperAstPosAsyncTaskS
// astPosCmd 组装 // astPosCmd 组装
String astPosCmd = "233E0401"; String astPosCmd = "233E0401";
astPosCmd += "1000"; astPosCmd += "1000";
astPosCmd += HexConvert.hexStringToBytes(HexConvert.encodeHEX(lanLongValue).toUpperCase());
astPosCmd += HexConvert.hexStringToBytes(HexConvert.encodeHEX(altLongValue).toUpperCase());
astPosCmd += HexConvert.encodeHEX(lanLongValue).toUpperCase();
astPosCmd += HexConvert.encodeHEX(altLongValue).toUpperCase();
astPosCmd += "70170000"; astPosCmd += "70170000";
astPosCmd += "A0860100"; astPosCmd += "A0860100";


@@ -237,7 +237,7 @@ public class DipperAstPosAsyncTaskServiceImpl implements IDipperAstPosAsyncTaskS
astPosCmdBuf.append(s + " "); astPosCmdBuf.append(s + " ");
} }


return astPosCmdBuf.toString() + checkSum.substring(0,1) + " " + checkSum.substring(2,3);
return astPosCmdBuf.toString() + checkSum.substring(0,2) + " " + checkSum.substring(2,4);


} }
} }

+ 1
- 1
src/main/java/com/telpo/dipperposition/service/impl/DipperAstTimeAsyncTaskServiceImpl.java View File

@@ -104,7 +104,7 @@ public class DipperAstTimeAsyncTaskServiceImpl implements IDipperAstTimeAsyncTas
checkSum = astCheckSumBuf.toString(); checkSum = astCheckSumBuf.toString();
log.info(checkSum); log.info(checkSum);


return astTimeCmdBuf.toString() + checkSum.substring(0,1) + " " + checkSum.substring(2,3);
return astTimeCmdBuf.toString() + checkSum.substring(0,2) + " " + checkSum.substring(2,4);
//String hexIn = astTimeCmd + HexConvert.makeChecksum(astTimeCmd); //String hexIn = astTimeCmd + HexConvert.makeChecksum(astTimeCmd);
//log.info("DipperAstTimeAsyncTaskServiceImpl 返回时间:" + hexIn); //log.info("DipperAstTimeAsyncTaskServiceImpl 返回时间:" + hexIn);




Loading…
Cancel
Save