-
Notifications
You must be signed in to change notification settings - Fork 1.4k
matter: samples: Fixes for Closure diagnostic clusters. #26439
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
base: main
Are you sure you want to change the base?
Conversation
Thread Network Diagnostics: - Wrong feature map - Lack of attributes - enabled all possible - Lack of reset-count command Software Diagnostics: - Disabled HighWatermarks attribute - Disabled Thread Metrics Signed-off-by: Arkadiusz Balys <[email protected]>
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.
Pull request overview
This PR fixes configuration issues in the Thread Network Diagnostics and Software Diagnostics clusters for the Matter closure sample. The primary purpose is to correct the Thread Network Diagnostics cluster by enabling its full feature set and properly configuring its ResetCounts command, while streamlining the Software Diagnostics cluster by removing unnecessary attributes.
Key changes:
- Transferred the ResetCounts command from Software Diagnostics to Thread Network Diagnostics cluster
- Added 33 additional diagnostic attributes to Thread Network Diagnostics (network metrics, role counters, transmission/reception statistics)
- Updated Thread Network Diagnostics FeatureMap from 0 to 15 to reflect enabled features
- Removed ThreadMetrics and heap monitoring attributes from Software Diagnostics cluster
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| gen_config.h | Updated cluster command definition from SOFTWARE_DIAGNOSTICS ResetWatermarks to THREAD_NETWORK_DIAGNOSTICS ResetCounts |
| endpoint_config.h | Adjusted attribute counts and indices; removed Software Diagnostics heap attributes; added extensive Thread Network Diagnostics attributes (OverrunCount, role counters, TX/RX statistics); updated FeatureMap default value to 15; reassigned ResetCounts command |
| access.h | Corrected command privilege entries to associate ResetCounts with Thread Network Diagnostics (0x35) instead of Software Diagnostics (0x34) |
| IMClusterCommandHandler.cpp | Added dispatcher implementation for Thread Network Diagnostics ResetCounts command with proper TLV decoding and callback handling |
| closure.zap | Removed Software Diagnostics attributes and ResetWatermarks command; moved ResetCounts command to Thread Network Diagnostics; added all missing diagnostic attributes; changed FeatureMap default from "0" to "15"; corrected ActiveNetworkFaultsList defaultValue from "9" to null |
| closure.matter | Removed Software Diagnostics attributes and command handler; added 37 callback attributes to Thread Network Diagnostics; updated FeatureMap default to 15; added ResetCounts command handler |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
CI InformationTo view the history of this post, click the 'edited' button above Inputs:Sources:sdk-nrf: PR head: 2b68ce24b814079e51d26625c02680302c42ad49 more detailssdk-nrf:
Github labels
List of changed files detected by CI (6)Outputs:ToolchainVersion: f911d4f4e7 Test Spec & Results: ✅ Success; ❌ Failure; 🟠 Queued; 🟡 Progress; ◻️ Skipped;
|
Thread Network Diagnostics:
Software Diagnostics: