Refactor DALI-GW XML and README for clarity and accuracy
- Updated DALI-GW.xml to correct application version and product naming conventions. - Removed unnecessary configuration parameters from XML. - Revised README.md for improved clarity on the source and migration process. - Adjusted application version in README to reflect changes in DALI-GW.xml. - Enhanced instructions for generating product database artifacts. Signed-off-by: Tony <tonylu@tony-cloud.com>
This commit is contained in:
@@ -1,16 +1,17 @@
|
||||
# DALI-GW KNX Product XML
|
||||
|
||||
This folder contains the gateway-owned OpenKNXproducer source for the REG1-Dali KNX-DALI gateway persona.
|
||||
This folder contains the gateway-owned KNX product source for the REG1-Dali KNX-DALI gateway persona.
|
||||
|
||||
The source migrates the legacy Kaenx Creator database from `temp/openknx/GW-REG1-Dali/DALI-GW.ae-manu` into the gateway component so the generated product database, generated `knxprod.h`, and ESP-IDF runtime can evolve together.
|
||||
`DALI-GW.reference.xml` is a mechanically adapted OpenKNXproducer source-form copy of the working secure OpenKNX DALI gateway application XML from `temp/OpenKNX-DALI-gateway`. The source keeps the gateway manufacturer/product identity while preserving the original parameter pages, module repeats, communication objects, group-object references, and secure application metadata.
|
||||
|
||||
Current migration targets:
|
||||
|
||||
- Manufacturer/OpenKNX id: `0xA4`
|
||||
- Application number: `0x01`
|
||||
- Application version: `0x09`
|
||||
- Application version: `0x08`
|
||||
- Mask: `MV-07B0`
|
||||
- Order number: `REG1-Dali`
|
||||
- KNX secure: enabled
|
||||
- Address channels: `64`
|
||||
- Group channels: `16`
|
||||
- HCL curves: `3`
|
||||
@@ -34,15 +35,13 @@ Run a well-formed XML check from the repository root:
|
||||
xmllint --noout gateway/components/knx_dali_gw/knxprod/*.xml
|
||||
```
|
||||
|
||||
Generate the producer header and product database artifacts with:
|
||||
Generate the product database artifact with the local non-ETS producer build:
|
||||
|
||||
```sh
|
||||
OpenKNXproducer create --NoXsd \
|
||||
-h /tmp/DALI-GW-knxprod.h \
|
||||
-o /tmp/DALI-GW.knxprod \
|
||||
gateway/components/knx_dali_gw/knxprod/DALI-GW.xml
|
||||
cd gateway/components/knx_dali_gw/knxprod
|
||||
/Users/tonylu/Downloads/OpenKNXproducer-osx-arm64/OpenKNXproducer create -o test.knxprod DALI-GW.xml
|
||||
```
|
||||
|
||||
In this workspace the producer validates the XML and writes `/tmp/DALI-GW-knxprod.h`. If the local producer installation does not have an ETS converter available it prints `No ETS found, skipped knxprod creation!` and omits the `.knxprod` archive while still exiting successfully.
|
||||
The source is expected to pass the producer's standard `create` sanity checks directly. Generated files such as `test.knxprod`, `DALI-GW.baggages/`, and debug XML files should not be committed.
|
||||
|
||||
The generated header must stay synchronized with the runtime identity in `gateway/apps/gateway/main/Kconfig.projbuild` and `gateway/components/knx_dali_gw/src/knx_dali_gw.cpp`.
|
||||
The runtime identity must stay synchronized with `gateway/apps/gateway/main/Kconfig.projbuild` and `gateway/components/knx_dali_gw/src/knx_dali_gw.cpp`.
|
||||
Reference in New Issue
Block a user