From dd9c0bb8c6fd02bd6185b18eff1756dcafab0af0 Mon Sep 17 00:00:00 2001 From: weidong Date: Mon, 31 Mar 2025 08:54:23 +0800 Subject: [PATCH] =?UTF-8?q?1=E3=80=81=E4=BF=AE=E6=94=B9=E5=8F=91=E9=80=81?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=E5=B7=A5=E4=BD=9C=E5=91=A8=E6=9C=9F=E7=9A=84?= =?UTF-8?q?=E6=8C=87=E4=BB=A4bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/imdroid/beidou/controller/APIController.java | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/sec-beidou/src/main/java/com/imdroid/beidou/controller/APIController.java b/sec-beidou/src/main/java/com/imdroid/beidou/controller/APIController.java index 314d20e7..bf26f0bd 100644 --- a/sec-beidou/src/main/java/com/imdroid/beidou/controller/APIController.java +++ b/sec-beidou/src/main/java/com/imdroid/beidou/controller/APIController.java @@ -105,16 +105,7 @@ public class APIController extends BasicController{ warningMsg.setInfo(WarningCfg.TYPE_NAME_CFG_ABNORMAL); warningMsgMapper.insert(warningMsg); //重新配置 - String sendCmd = HexUtil.Byte2HexString(gnssGroup.getWork_cycle().byteValue())+ - HexUtil.Byte2HexString(gnssGroup.getActive_time().byteValue())+ - HexUtil.Byte2HexString(gnssGroup.getActive_offset().byteValue())+ - HexUtil.Byte2HexString(gnssGroup.getRs_adv().byteValue())+ - HexUtil.Byte2HexString(gnssGroup.getPower_mode().byteValue())+ - HexUtil.Byte2HexString(gnssGroup.getGnss_sample_s().byteValue()); - short len = (short) (sendCmd.length()/2+4); - sendCmd = "d311" + HexUtil.Short2HexString(len)+ - HexUtil.Int2HexString(Integer.parseInt(device.getDeviceid()))+ - HexUtil.String2HexString(sendCmd); + String sendCmd = gnssGroup.getConfigCmd(device); rtcmClient.config(device.getDeviceid(), sendCmd); // 保存 saveMsg(device.getDeviceid(), device.getTenantid(),0xD311, sendCmd, true);