Skip to content
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

GeneratedCommandList empty for DoorLock cluster implementations #18121

Closed
jrhees-cae opened this issue May 5, 2022 · 4 comments · Fixed by #18674
Closed

GeneratedCommandList empty for DoorLock cluster implementations #18121

jrhees-cae opened this issue May 5, 2022 · 4 comments · Fixed by #18674
Assignees

Comments

@jrhees-cae
Copy link
Contributor

jrhees-cae commented May 5, 2022

Problem

A device implementing the DoorLock cluster has an empty GeneratedCommandList, even though the appropriate responses are in the .zap

Proposed Solution

Discovered that changing the 'optional' attribute in the xml fixes the issue. However, it is unclear whether this is the correct fix or if there is a bug in zap-tool

For example, making the following change in src/app/zap-templates/zcl/data-model/chip/door-lock-cluster.xml:
from:

  •   <command source="server" code="28" name="GetUserResponse" disableDefaultResponse="true" optional="true">
    

to:

  •    <command source="server" code="28" name="GetUserResponse" disableDefaultResponse="true" optional="false">
    

...will cause "GetUserResponse" to be included in the GeneratedCommandList (assuming, of course, it and its corresponding command are also present in the .zap)

@bzbarsky-apple
Copy link
Contributor

@jrhees-cae Are the commands actually enabled in the ZAP config for the device? It doesn't sound like they are.

@jrhees-cae
Copy link
Contributor Author

Yes they are. However, having the commands in the .zap is not enough. As stated, the generation tool will not include the commands in the generated-command-list unless the .xml template lists the commandResponse as optional=false.

@bzbarsky-apple
Copy link
Contributor

@jrhees-cae That should be fixed since #17833 merged: as long as the client-to-server command is enabled, the corresponding response will show up in the generated-command-list, even if marked optional.

The responses will also show up in accepted-command-list in some cases, but project-chip/zap#515 will fix that once it merges.

Please let me know if there is still an issue on tip, especially with that ZAP change.

bzbarsky-apple added a commit to bzbarsky-apple/connectedhomeip that referenced this issue May 20, 2022
We had some response commands flagged as incoming commands, because
they had the wrong flags mask.

Fixes project-chip#17809

Fixes project-chip#17688

Fixes project-chip#18002

Fixes project-chip#18121
@andy31415
Copy link
Contributor

Marked Boris as assignee since #18674 will resolve this.

andy31415 pushed a commit that referenced this issue May 20, 2022
We had some response commands flagged as incoming commands, because
they had the wrong flags mask.

Fixes #17809

Fixes #17688

Fixes #18002

Fixes #18121
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants