Matter Binding

Hi,

Thank you for documentation regarding Matter light bulb and switch examples:
https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/samples/matter/light_bulb/README.html

It works and I am able to make binding between two matter devices ( I am using nRF52840dk boards): light switch and light bulb.

Now I've also added temperature and humidity clusters using ZAP tool, update source code of lighting app example and I was able to read bme680 sensors values:

I: Update sensor data....
I: Temperature value: 23.210000
I: Humidity value: 43.523000
I: Pressure value: 101.882000
D: 3802285 [DMG]Endpoint 1, Cluster 0x0000_0402 update version to 85202d
D: 3802292 [DMG]Endpoint 1, Cluster 0x0000_0405 update version to f2d27d45
D: 3802299 [DMG]Endpoint 1, Cluster 0x0000_0403 update version to 13dbee96

Now the question: How I can bind those values to another matter device, so it will receive immediately when those values are read from sensor? Another matter device will be linux matter client which will display those values.

From lighting switch example I've implemented "BindingHandler" class and I can see that it contains those parameters like 'EndpoinID', 'ClusterID', 'Value' and 'CommandID' . 'Commands' exist in OnOff cluster, but NOT in 'Temperature Measurement' or 'Pressure Measurement' clusters. Is it 'CommandID' required for binding implementation?

Best Regards

Sigitas

Parents
  • Hello again Sigitas,

    Sorry for the delay. My workload has been heavy lately.

    Now the question: How I can bind those values to another matter device, so it will receive immediately when those values are read from sensor? Another matter device will be linux matter client which will display those values.

    Are you using the CHIP Tool for Linux? If so, you can use the binding cluster with the subscribe command. This is documented in the Interacting with Data Model clusters section of the CHIP Tool documentation.

    From lighting switch example I've implemented "BindingHandler" class and I can see that it contains those parameters like 'EndpoinID', 'ClusterID', 'Value' and 'CommandID' . 'Commands' exist in OnOff cluster, but NOT in 'Temperature Measurement' or 'Pressure Measurement' clusters. Is it 'CommandID' required for binding implementation?

    CommandID is not required for clusters which does not have any commands. For the Temperature and Pressure Measurement clusters, this is the case.

    In general, the cluster commands does not have an impact on the binding between an endpoint cluster and a gateway. 

    Kind Regards,
    Maria

Reply
  • Hello again Sigitas,

    Sorry for the delay. My workload has been heavy lately.

    Now the question: How I can bind those values to another matter device, so it will receive immediately when those values are read from sensor? Another matter device will be linux matter client which will display those values.

    Are you using the CHIP Tool for Linux? If so, you can use the binding cluster with the subscribe command. This is documented in the Interacting with Data Model clusters section of the CHIP Tool documentation.

    From lighting switch example I've implemented "BindingHandler" class and I can see that it contains those parameters like 'EndpoinID', 'ClusterID', 'Value' and 'CommandID' . 'Commands' exist in OnOff cluster, but NOT in 'Temperature Measurement' or 'Pressure Measurement' clusters. Is it 'CommandID' required for binding implementation?

    CommandID is not required for clusters which does not have any commands. For the Temperature and Pressure Measurement clusters, this is the case.

    In general, the cluster commands does not have an impact on the binding between an endpoint cluster and a gateway. 

    Kind Regards,
    Maria

Children
No Data
Related