add heartInfo

This commit is contained in:
CSSC-WORK\murmur 2023-09-18 20:07:08 +08:00
parent 00994abbf8
commit 5097641baf

View File

@ -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