-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added a new Matter west command and a guide for adding a custom cluster to ZCL #20163
Added a new Matter west command and a guide for adding a custom cluster to ZCL #20163
Conversation
The following west manifest projects have changed revision in this Pull Request:
✅ All manifest checks OK Note: This message is automatically posted and updated by the Manifest GitHub Action. |
CI InformationTo view the history of this post, clich the 'edited' button above Inputs:Sources:sdk-nrf: PR head: e716887a1c7c8ac3895f4b375d7f43707b2e17cb more detailssdk-nrf:
matter:
Github labels
List of changed files detected by CI (13)
Outputs:ToolchainVersion: 342151af73 Test Spec & Results: ✅ Success; ❌ Failure; 🟠 Queued; 🟡 Progress; ◻️ Skipped;
|
You can find the documentation preview for this PR at this link. Note: This comment is automatically posted by the Documentation Publish GitHub Action. |
|
||
.. note:: | ||
The descriptions of the elements above show only the basic functionality. | ||
To see the full list of available elements for each part of the XML file, refer to the Matter Specification. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Link to the Matter spec?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is not so easy. Matter spec can be obtained on a user's request, and it is not visible globally.
doc/nrf/releases_and_maturity/releases/release-notes-changelog.rst
Outdated
Show resolved
Hide resolved
doc/nrf/releases_and_maturity/releases/release-notes-changelog.rst
Outdated
Show resolved
Hide resolved
|
||
To simplify adding new custom clusters to the Matter ZCL database and generating the required C++ files, you can use the ``zap-append`` west command. | ||
The command converts the provided XML files with the cluster definition to the JSON format and adds them to the data model definition file (:file:`zcl.json`). | ||
Using this command, you can add the cluster to the existing data model definition file located in :file:`<default Matter SDK location>/src/app/zap-templates/zcl/zcl.json` or create a new one. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
or create a new one.
A new file, right? Sorry, but from the context it's a bit unclear to me if we create new cluster or new json file.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed and explained it better.
64b232a
to
339ca25
Compare
64fde09
to
451c166
Compare
32fd758
to
6908057
Compare
@nrfconnect/ncs-doc-leads could you please review? |
This guide describes a process of adding the XML file with a new custom cluster definition to the existing Matter database. Described new `west zap` commands and their usage. Signed-off-by: Arkadiusz Balys <[email protected]>
6908057
to
e716887
Compare
Added zap_append command to the west.
use west zap-append -h to see all options.
Now you can add new clusters to the matter ZCL datamodel.
Use a west zap-append and provide the new cluster definitions as XML files to add them to the zcl.json file.
You can generate the new zcl.json file by providing -o, --output argument, or overwrite the existing one.
The zcl_generate is integrated with west zap-gui commands.
If you want to use it call the west zap-gui command with the additional argument --clusters.
You can provide multiple clusters at once.
If you provide an additional -j / --zcl-json argument alongside the --clusters argument to the west zap-gui command, the new zcl.json will be created and contain the new clusters.