From 5097641bafdb5ce7d038e42b59827ff9c3d6d3e3 Mon Sep 17 00:00:00 2001 From: "CSSC-WORK\\murmur" Date: Mon, 18 Sep 2023 20:07:08 +0800 Subject: [PATCH] add heartInfo --- 解析TT数据.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/解析TT数据.lua b/解析TT数据.lua index dc44f51..1adc7e0 100644 --- a/解析TT数据.lua +++ b/解析TT数据.lua @@ -51,6 +51,7 @@ function parseInfo(data) local dspReq = 0x2237 local hearReq = 0x1937 local hearSet= 0x1917 + local heartInfo= 0x1903 local cfgReq = 0x7007 local info={ selfTest = "自检", @@ -65,6 +66,7 @@ function parseInfo(data) dspReq = "DSP查询回复", hearReq = "心跳查询", hearSet = "心跳设置", + hearInfo = "心跳信息", cfgReq = "配置查询", } local head, taddr, saddr, cmd = string.unpack(">HBBH", data) -- 澶х缂栫爜 @@ -157,6 +159,9 @@ function parseInfo(data) if cmd == dspReq then rst.cmd = info.dspReq end + if cmd == heartInfo then + rst.cmd = info.hearInfo + end if cmd == cfgReq then rst.cmd = info.cfgReq