Closed vivien-apple closed 3 years ago
Issue Label Bot is not confident enough to auto-label this issue. See dashboard for more details.
@rwalker-apple @bzbarsky-apple Do you have any ideas/suggestions ?
We presumably need to implement https://github.com/CHIP-Specifications/connectedhomeip-spec/blob/master/src/data_model/Descriptor-Cluster.adoc#binding-attribute -- that's the current proposal for how this should work in CHIP.
This can be closed. I have added preliminary support for that in #4156.
Problem
The ZCL bindings table is used by some plugins such as the
Reporting
plugin as well asIAS Zone
.The binding table contains struct entries that defines a kind of permanent (they are stored as HAL tokens) link between an accessory and a device.
For example one could create a binding entry such as:
The reporting plugin use such a binding to know which devices it needs to send a report too by calling
emberAfSendCommandUnicastToBindingsWithCallback
which ends up calling https://github.com/project-chip/connectedhomeip/blob/e7480cde9c6947491da6f82f9527b584a7b24b13/src/app/util/af-main-common.cpp#L506The ZCL
report
set of commands are used to configure the reporting variables such as intervals, thresholds, etc... And this config will be used for all bindings (AFAIK).The main issue here is that the current way to set up bindings are using ZDO if I have understood correctly https://docs.silabs.com/zigbee/latest/em35x/group-util-zdo#ga6856235a7e67c51062355eaafd19a65f).
So we need to figure out what to do.