<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>NRF52840: Handling Matter calls ZCL</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/101003/nrf52840-handling-matter-calls-zcl</link><description>Hello everybody, 
 i am currently working on my bachelor thesis and could need some guidance. 
 I have the NRF52840 Development Kit and i am trying to develop a matter device, that can be integrated into Home Assistant. 
 I started with the &amp;quot;nrf/samples</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 22 Sep 2023 10:54:32 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/101003/nrf52840-handling-matter-calls-zcl" /><item><title>RE: NRF52840: Handling Matter calls ZCL</title><link>https://devzone.nordicsemi.com/thread/447228?ContentTypeID=1</link><pubDate>Fri, 22 Sep 2023 10:54:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:80cbd917-38f1-4368-aa17-e6497cff4560</guid><dc:creator>marvinwolf</dc:creator><description>&lt;p&gt;Hi Marte,&lt;/p&gt;
&lt;p&gt;thank you for your answer!&lt;br /&gt;You are correct, i messed up the endpoints.&lt;br /&gt;I still had problems afterwards, but as it have already been 2 months i cant remember anymore which exactly.&lt;br /&gt;If&amp;nbsp;somebody has similar problems, just use the example provided by CHIP:&lt;br /&gt;&lt;br /&gt;&lt;a href="https://github.com/project-chip/connectedhomeip/tree/master/examples/lighting-app/nrfconnect"&gt;connectedhomeip/examples/lighting-app/nrfconnect at master &amp;middot; project-chip/connectedhomeip &amp;middot; GitHub&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;It is a long and hard way to get it to compiling / building, but it works perfectly for me!&lt;/p&gt;
&lt;p&gt;Thank you Nordic!&lt;/p&gt;
&lt;p&gt;Best Wishes&lt;/p&gt;
&lt;p&gt;Marvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52840: Handling Matter calls ZCL</title><link>https://devzone.nordicsemi.com/thread/437139?ContentTypeID=1</link><pubDate>Wed, 19 Jul 2023 07:22:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a295db7e-0ae2-441b-b79b-b928dd6d7e29</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi Marvin,&lt;/p&gt;
&lt;p&gt;I hope your exams went well &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;HA devices are not Home Assistant devices, but Zigbee Home Automation devices. Therefore, when you are creating a HA On/Off Light device on the endpoint, you are actually creating a device following the Home Automation profile (0x0103) from the Zigbee specification. This explains why MatterPostAttributeChangeCallback() is not called, as the attribute that is changed is not a Matter attribute.&lt;/p&gt;
&lt;p&gt;If you want to use Matter you should use one of the Matter device types.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Marte&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52840: Handling Matter calls ZCL</title><link>https://devzone.nordicsemi.com/thread/436814?ContentTypeID=1</link><pubDate>Mon, 17 Jul 2023 15:09:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e88a2be1-3cc0-4f79-817f-72e8fa76f80f</guid><dc:creator>marvinwolf</dc:creator><description>&lt;p&gt;Hi Sigurd,&lt;/p&gt;
&lt;p&gt;i have finished my exams and am ready to dive into this topic 100%&lt;/p&gt;
&lt;p&gt;I did your proposal with both the 2.3.0 (again) aswell as the 2.4.0.&lt;/p&gt;
&lt;p&gt;As expected, the documentation didnt really vary greatly and so did the results.&lt;/p&gt;
&lt;p&gt;Its still not working, i see the calls in the log messages of the arriving packets but none in the &amp;quot;MatterPostAttributeChangeCallback&amp;quot; method .&lt;/p&gt;
&lt;p&gt;I cant even see where this method is referred to or what function it is supposed to overwrite.&lt;/p&gt;
&lt;p&gt;I believe this is more of an theoretical topic, not one of trial and error, as i am not even sure of the correct way to to it in the first place.&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Maybe you could have a chat with one of your colleagues that possibly had some expereince with matter?&lt;/p&gt;
&lt;p&gt;I would really like to know where these ZAP configured calls have their entry in the code.&lt;/p&gt;
&lt;p&gt;Thank you very much in advance.&lt;/p&gt;
&lt;p&gt;Best wishes&lt;/p&gt;
&lt;p&gt;Marvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52840: Handling Matter calls ZCL</title><link>https://devzone.nordicsemi.com/thread/433661?ContentTypeID=1</link><pubDate>Thu, 29 Jun 2023 11:33:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:415904ee-7b2c-429c-aa8a-d6d9aa9b0503</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;While I have not been able to test your code, the way you set up the callback looks like the right way to do it.&lt;/p&gt;
&lt;p&gt;I realize that the documentation you link to says 1.9.2.&lt;/p&gt;
&lt;p&gt;Maybe not the answer you are looking for, but sometimes the solution is to try again.&lt;br /&gt;I suggest that you update the nRC Connect SDK to v2.4.0, and then follow v2.4.0 documentaiton for setting up the Matter device:&lt;br /&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.4.0/nrf/protocols/matter/getting_started/index.html"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.4.0/nrf/protocols/matter/getting_started/index.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Maybe some of the steps from the old docs along the way was wrong, and this way you will get them right.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Sigurd Hellesvik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52840: Handling Matter calls ZCL</title><link>https://devzone.nordicsemi.com/thread/432216?ContentTypeID=1</link><pubDate>Wed, 21 Jun 2023 08:20:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d6ab4645-3617-496c-81cb-bca3c3e2ef68</guid><dc:creator>marvinwolf</dc:creator><description>&lt;p&gt;Yes, the function in the example works / is called.&lt;/p&gt;
&lt;p&gt;I have also tried it with the endpoint 0x0103, which also works (in the code ill upload, but with another zap configuration).&lt;br /&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1687334771703v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;I will attach my code here.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/Nordic52840MatterDev_2D00_HA_2D00_LightBulb.zip"&gt;devzone.nordicsemi.com/.../Nordic52840MatterDev_2D00_HA_2D00_LightBulb.zip&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52840: Handling Matter calls ZCL</title><link>https://devzone.nordicsemi.com/thread/432182?ContentTypeID=1</link><pubDate>Wed, 21 Jun 2023 07:04:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b9b97260-bc4d-4216-b934-e58da7694ce2</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Do you get the callback in the light_bulb sample?&lt;/p&gt;
&lt;p&gt;Can you zip and upload your project using Insert-&amp;gt; File?&lt;br /&gt;Then I can have a look and see if everything looks as expected.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Sigurd Hellesvik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52840: Handling Matter calls ZCL</title><link>https://devzone.nordicsemi.com/thread/432090?ContentTypeID=1</link><pubDate>Tue, 20 Jun 2023 15:02:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:090cc81d-dc48-49ce-b4b9-9b9fdf007aaa</guid><dc:creator>marvinwolf</dc:creator><description>&lt;p&gt;Hi Sigurd,&lt;/p&gt;
&lt;p&gt;I am using the SDK 2.3.0.&lt;/p&gt;
&lt;p&gt;I did implement it in the same way as the example you provided.&lt;/p&gt;
&lt;p&gt;I can see my print and log (debugging) messages, that are in the initializatin method &amp;quot;void emberAfOnOffClusterInitCallback(EndpointId endpoint)&amp;quot; that i have overriden.&lt;/p&gt;
&lt;p&gt;But the method &amp;quot;void MatterPostAttributeChangeCallback(const chip::app::ConcreteAttributePath &amp;amp;attributePath, uint8_t type,&lt;br /&gt; uint16_t size, uint8_t *value)&amp;quot; is never called.&lt;/p&gt;
&lt;p&gt;Keep in mind, that what makes the difference between my code and the nordic example, is that I use the endpoint&amp;nbsp;&lt;br /&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1687272666019v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;while the nordic light bulb example uses&amp;nbsp;&lt;br /&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1687272912781v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;This ZAP Configuration also generates the same case and init method&lt;br /&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1687273166066v3.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;But somehow the callback function (supposedly &amp;quot;MatterPostAttributeChangeCallback&amp;quot;) is never reached.&lt;/p&gt;
&lt;p&gt;I cant find, from where the method is referenced to, propably from somewhere deep int the CHIP code or only the compiler knows that :)&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank you very much!&lt;/p&gt;
&lt;p&gt;Marvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52840: Handling Matter calls ZCL</title><link>https://devzone.nordicsemi.com/thread/431998?ContentTypeID=1</link><pubDate>Tue, 20 Jun 2023 12:02:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c6d62da7-1fbd-4a79-81fa-69ec1e19af19</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user=""]I am not completely sure, if its the right place to post this problem here, but i dont know, where else to go.[/quote]
&lt;p&gt;This is the correct place to put this yes. &lt;br /&gt;We are a team of Technical Support engineers working at Nordic Semiconductor who operate this forum, and help our users for free.&lt;br /&gt;Other users can also answer public cases, and you can see the difference if you hover our profile pictures and see the Nordic Logo achievement tag.&lt;br /&gt;I will help you figure this out in the case. Welcome to DevZone!&lt;/p&gt;
&lt;p&gt;First, can you say which version of the nRF Connect SDK you use?&lt;/p&gt;
&lt;p&gt;Maybe a bit lazy of an answer, but have you had a look at how our light bulb sample handles its callbacks at &lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/e8f2b391003391d95e4e6ae0edbdd98224eb8d0a/samples/matter/light_bulb/src/zcl_callbacks.cpp#L20"&gt;https://github.com/nrfconnect/sdk-nrf/blob/e8f2b391003391d95e4e6ae0edbdd98224eb8d0a/samples/matter/light_bulb/src/zcl_callbacks.cpp#L20&lt;/a&gt;?&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Sigurd Hellesvik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>