From cb364256f4b1ddfeceed681bd6f05693ebe192bb Mon Sep 17 00:00:00 2001 From: weidong Date: Sun, 1 Sep 2024 15:41:46 +0800 Subject: [PATCH] =?UTF-8?q?1=E3=80=81=E5=91=BD=E4=BB=A4=E8=A1=8C=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=E7=AC=AC=E4=BA=8CDTU=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/imdroid/beidou/controller/CmdLineController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sec-beidou/src/main/java/com/imdroid/beidou/controller/CmdLineController.java b/sec-beidou/src/main/java/com/imdroid/beidou/controller/CmdLineController.java index 58cb3fde..bf00c3ef 100644 --- a/sec-beidou/src/main/java/com/imdroid/beidou/controller/CmdLineController.java +++ b/sec-beidou/src/main/java/com/imdroid/beidou/controller/CmdLineController.java @@ -65,7 +65,7 @@ public class CmdLineController extends BasicController{ String sendCmd = cmd.replaceAll(" +",""); short len = 0; int msgType = 0xD310 + cmdType; - if(cmdType == 1 || cmdType==11){ // DTU,string format + if(cmdType == 10 || cmdType==11){ // DTU,string format len = (short) (sendCmd.length() + 5); sendCmd = Integer.toHexString(msgType) + HexUtil.Short2HexString(len)+ HexUtil.Int2HexString(Integer.parseInt(deviceId))+