-
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] IdleModeDuration attribute read failure #37867
Comments
A few things:
That's the value a client should assume if the server does not provide a value. |
@bzbarsky-apple The virtual device is chip-all-clusters-app based on Linux. Following your guidance, I enabled the ICD Management on endpoint 0; however, the chip-tool still cannot read the IdleModeDuration attribute. |
OK.
Did you also enable the relevant compile flags to actually build ICD support, etc?
It doesn't matter what you set in ZAP for this attribute, and in fact it should not allow you to set a default value for it it all, since it's always external, right? |
Thanks for your guidance! @bzbarsky-apple
Yes. The failure occurred after I enabled the compile flags as follows: I set in icd.gni the variables chip_enable_icd_lit, chip_icd_report_on_active_mode, and chip_enable_icd_dsls as true, which automatically sets chip_enable_icd_checkin as true in icd/server/build.gn.
I made this assumption while trying to figure out why it's failing. It might be because the default value is set as null in the zap file if I didn't provide any value when using the zap tool to enable the ICD manage cluster. And one thing to confirm: according to the spec, the default value should be 1 even without any value given in the zap tool, right?
|
The "default value" in the spec does not matter for anything in practice. Just don't think about it. If you have a situation where you think you have correctly enabled all the ICD stuff on the server and it's not working, please file a new issue, describe the exact server setup, and attach (not paste) the complete logs from the client and server. |
Reproduction steps
I modified the zap file for the virtual device so it could enable the ICDManagement cluster in endpoint 1. However, when I try to read using the command:
I receive the following error:
I checked the specification, and the IdleModeDuration (id = 0x0000) should have a default value of 1, so it should return 1 rather than a failure.
The virtual device returns the log as follows:
Bug prevalence
each time
GitHub hash of the SDK that was being used
ab3d5ae
Platform
core, other
Platform Version(s)
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered: