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