-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
[BUG] Custom cluster's Read and Subscribe interactions doesn't work #29439
Comments
That's not a valid cluster id, per spec. That's why it's failing. Presumably on the It looks like CommandHandler does not do such a check (arguably a bug), which is why your command works. The valid cluster id ranges are:
As in, you need to add your manufacturer id to the cluster code. |
Also, note that manufacturer IDs 0xFFF1-0xFFF4 are reserved for testing. |
Note #29461 for fixing writes/commands to also do the checks. |
May I know which Chip-tool commands can be used to read Custom Clusters? |
|
Ah... We looked at the commands list a lot of times... |
@BryanH1128 It looks like the server in this case does not enforce that for writes (though I suspect tip does) but does enforce it for reads. |
Hi Boris, |
@BryanH1128 Glad to hear it work! |
Reproduction steps
I have created a custom cluster that is required for our setup, so I've made the XML file that describes the custom cluster, then added the new cluster to the required endpoint in the ZAP file, and then regenerated the ZAP-generated files.
The custom cluster has one command and one attribute. The command handling works fine, the controller receives the command and the payload correctly. However, the attribute handling does not work well. I tried to read the attribute value with chip-tool, but I always got an INVALID_ACTION response. In the controller's log, I see
chip[EM]: Dropping unexpected message of type 0x1 with protocolId (0, 1) and MessageCounter:219703856 on exchange 24614r
.I digged into the core and found that the ReadHandler::ProcessAttributePaths method is the one that sends the error.
The custom cluster's XML content:
Could someone help me out, how can I solve this problem?
Bug prevalence
always
GitHub hash of the SDK that was being used
4088a77
Platform
core
Platform Version(s)
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered: