add heartInfo
This commit is contained in:
parent
00994abbf8
commit
5097641baf
@ -51,6 +51,7 @@ function parseInfo(data)
|
|||||||
local dspReq = 0x2237
|
local dspReq = 0x2237
|
||||||
local hearReq = 0x1937
|
local hearReq = 0x1937
|
||||||
local hearSet= 0x1917
|
local hearSet= 0x1917
|
||||||
|
local heartInfo= 0x1903
|
||||||
local cfgReq = 0x7007
|
local cfgReq = 0x7007
|
||||||
local info={
|
local info={
|
||||||
selfTest = "自检",
|
selfTest = "自检",
|
||||||
@ -65,6 +66,7 @@ function parseInfo(data)
|
|||||||
dspReq = "DSP查询回复",
|
dspReq = "DSP查询回复",
|
||||||
hearReq = "心跳查询",
|
hearReq = "心跳查询",
|
||||||
hearSet = "心跳设置",
|
hearSet = "心跳设置",
|
||||||
|
hearInfo = "心跳信息",
|
||||||
cfgReq = "配置查询",
|
cfgReq = "配置查询",
|
||||||
}
|
}
|
||||||
local head, taddr, saddr, cmd = string.unpack(">HBBH", data) -- 澶х缂栫爜
|
local head, taddr, saddr, cmd = string.unpack(">HBBH", data) -- 澶х缂栫爜
|
||||||
@ -157,6 +159,9 @@ function parseInfo(data)
|
|||||||
if cmd == dspReq then
|
if cmd == dspReq then
|
||||||
rst.cmd = info.dspReq
|
rst.cmd = info.dspReq
|
||||||
end
|
end
|
||||||
|
if cmd == heartInfo then
|
||||||
|
rst.cmd = info.hearInfo
|
||||||
|
end
|
||||||
|
|
||||||
if cmd == cfgReq then
|
if cmd == cfgReq then
|
||||||
rst.cmd = info.cfgReq
|
rst.cmd = info.cfgReq
|
||||||
|
Loading…
Reference in New Issue
Block a user