From 38527011781954c7f2932cc61fec7c610264d807 Mon Sep 17 00:00:00 2001 From: lch <1627445470@qq.com> Date: Tue, 19 Mar 2024 20:28:52 +0800 Subject: [PATCH] 1 --- BatCharging.Service/DataRlt/解析数据/MsgReceiveCMDCom.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/BatCharging.Service/DataRlt/解析数据/MsgReceiveCMDCom.cs b/BatCharging.Service/DataRlt/解析数据/MsgReceiveCMDCom.cs index 08ba1e0..134d405 100644 --- a/BatCharging.Service/DataRlt/解析数据/MsgReceiveCMDCom.cs +++ b/BatCharging.Service/DataRlt/解析数据/MsgReceiveCMDCom.cs @@ -1321,8 +1321,7 @@ namespace BatCharging.Service.DataRlt if (data != null && data.Length > 0) { CMD1501 = new CMD1501(); - CMD1501.value01 = ByteUtils.DToUInt16(data, 8); - CMD1501.value02 = ByteUtils.DToUInt16(data, 10); + CMD1501.value03 = Encoding.ASCII.GetString(data, 12, 32); CMD1501.value04 = Encoding.ASCII.GetString(data, 44, 128); }