feat: implement device name handling and update gateway name features

Signed-off-by: Tony <tonylu@tony-cloud.com>
This commit is contained in:
Tony
2026-06-12 01:26:31 +08:00
parent dceede8602
commit 40a0e8e303
11 changed files with 192 additions and 23 deletions
+8 -4
View File
@@ -49,10 +49,14 @@ DALI bus activity from another master until the bus has been idle. Group and
broadcast targets are never queried for refresh.
Gateway feature opcode `0x06` keeps the Lua-compatible low-byte feature bits,
advertises cache support with bit `0x40`, and advertises the native C++ gateway
type with bit `0x0100`. Gateway opcode `0x39` returns cache summary and target
snapshots so frontend clients can read cached state without issuing live DALI
queries on supported gateways.
advertises cache support with bit `0x40`, advertises gateway/channel name
support with bit `0x80`, and advertises the native C++ gateway type with bit
`0x0100`. Gateway opcode `0x05` reads and writes user-facing gateway identity:
operation `0x00` reads the channel name, `0x01` writes the channel name,
`0x02` reads the physical gateway device name, and `0x03` writes the physical
gateway device name. Empty writes reset to the default name. Gateway opcode
`0x39` returns cache summary and target snapshots so frontend clients can read
cached state without issuing live DALI queries on supported gateways.
Gateway opcode `0x09` with address/data `0x00/0x00` is a chip-level channel-id
report. It returns the enabled DALI channel ids so clients do not need to probe