<?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>Matter - Android CHIP Tool fails to send commands to clusters and read attributes from clusters</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/92380/matter---android-chip-tool-fails-to-send-commands-to-clusters-and-read-attributes-from-clusters</link><description>Following this link -&amp;gt; developer.nordicsemi.com/.../ug_matter_gs_adding_clusters.html I have set up two endpoints on a Matter end device (nRF52840 DK) and some commands and attributes cant be interacted with. I have modified the nRF Connect SDK v2.1.0</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 07 Oct 2022 10:14:26 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/92380/matter---android-chip-tool-fails-to-send-commands-to-clusters-and-read-attributes-from-clusters" /><item><title>RE: Matter - Android CHIP Tool fails to send commands to clusters and read attributes from clusters</title><link>https://devzone.nordicsemi.com/thread/389786?ContentTypeID=1</link><pubDate>Fri, 07 Oct 2022 10:14:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:70fd6ded-ad4a-41a2-a32b-df197457ebfe</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Testing the sample you uploaded, I am able to toggle on/off on endpoint 1:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;D: 61937 [DMG]&amp;lt;RE&amp;gt; ReportsInFlight = 0 with readHandler 0, RE has no more messages
D: 61945 [DMG]IM RH moving to [AwaitingDestruction]
D: 61949 [DMG]All ReadHandler-s are clean, clear GlobalDirtySet
I: 61979 [EM]Received message of type 0x10 with protocolId (0, 0) and MessageCounter:121724512 on exchange 60191r
D: 61989 [EM]Found matching exchange: 60191r, Delegate: (nil)
D: 61995 [EM]Rxd Ack; Removing MessageCounter:252237330 from Retrans Table on exchange 60191r
D: 62003 [EM]Removed CHIP MessageCounter:252237330 from RetransTable on exchange 60191r
E: 68263 [SWU]No suitable OTA Provider candidate found
I: 68268 [SWU]No provider available
I: 78855 [EM]Received message of type 0x8 with protocolId (0, 1) and MessageCounter:121724513 on exchange 60192r
D: 78865 [EM]Handling via exchange: 60192r, Delegate: 0x2000cd74
D: 78872 [DMG]Received command for Endpoint=1 Cluster=0x0000_0006 Command=0x0000_0001
I: 78879 [ZCL]On/Off set value: 1 1
I: 78882 [ZCL]On/off already set to new value
D: 78887 [DMG]Command handler moving to [ Preparing]
D: 78891 [DMG]Command handler moving to [AddingComm]
D: 78896 [DMG]Command handler moving to [AddedComma]
D: 78901 [DMG]Decreasing reference count for CommandHandler, remaining 0
I: 78908 [IN]Prepared secure message 0x2000515c to 0x000000000001B669 (1)  of type 0x9 and protocolId (0, 1) on exchange 60192r with MessageCounter:252237331.
I: 78922 [IN]Sending encrypted msg 0x2000515c with MessageCounter:252237331 to 0x000000000001B669 (1) at monotonic time: 000000000001344A msec
D: 78936 [DMG]Command handler moving to [CommandSen]
D: 78941 [DMG]Command handler moving to [AwaitingDe]
D: 79268 [EM]Retransmitting MessageCounter:252237331 on exchange 60192r Send Cnt 1
I: 79275 [IN]Sending encrypted msg 0x2000515c with MessageCounter:252237331 to 0x000000000001B669 (1) at monotonic time: 00000000000135AB msec
D: 79289 [CSM]UpdatePeerAddress: No existing OperationalSessionSetup instance found
D: 79297 [CTL]OperationalSessionSetup[1:000000000001B669]: State change 1 --&amp;gt; 2
I: 79304 [DIS]Resolving DF18303D6875348B:000000000001B669 ...
I: 79424 [EM]Received message of type 0x10 with protocolId (0, 0) and MessageCounter:121724514 on exchange 60192r
D: 79435 [EM]Found matching exchange: 60192r, Delegate: (nil)
D: 79441 [EM]Rxd Ack; Removing MessageCounter:252237331 from Retrans Table on exchange 60192r
D: 79449 [EM]Removed CHIP MessageCounter:252237331 from RetransTable on exchange 60192r
I: 79458 [EM]Received message of type 0x10 with protocolId (0, 0) and MessageCounter:121724515 on exchange 60192r
I: 79504 [DIS]Checking node lookup status after 200 ms
I: 94304 [DIS]Checking node lookup status after 15000 ms
E: 94309 [DIS]OperationalSessionSetup[1:000000000001B669]: operational discovery failed: 32
q
uart:~$ I: 248283 [EM]Received message of type 0x8 with protocolId (0, 1) and MessageCounter:121724516 on exchange 60193r
D: 248293 [EM]Handling via exchange: 60193r, Delegate: 0x2000cd74
D: 248299 [DMG]Received command for Endpoint=1 Cluster=0x0000_0006 Command=0x0000_0000
I: 248307 [ZCL]On/Off set value: 1 0
I: 248310 [ZCL]Toggle on/off from 1 to 0
D: 248314 [DMG]Endpoint 1, Cluster 0x0000_0006 update version to 42c7976f
D: 248321 [DMG]Command handler moving to [ Preparing]
D: 248326 [DMG]Command handler moving to [AddingComm]
D: 248330 [DMG]Command handler moving to [AddedComma]
D: 248335 [DMG]Decreasing reference count for CommandHandler, remaining 0
I: 248343 [IN]Prepared secure message 0x2000515c to 0x000000000001B669 (1)  of type 0x9 and protocolId (0, 1) on exchange 60193r with MessageCounter:252237332.
I: 248357 [IN]Sending encrypted msg 0x2000515c with MessageCounter:252237332 to 0x000000000001B669 (1) at monotonic time: 000000000003CA25 msec
D: 248371 [DMG]Command handler moving to [CommandSen]
D: 248376 [DMG]Command handler moving to [AwaitingDe]
I: 248496 [EM]Received message of type 0x10 with protocolId (0, 0) and MessageCounter:121724517 on exchange 60193r
D: 248506 [EM]Found matching exchange: 60193r, Delegate: (nil)
D: 248512 [EM]Rxd Ack; Removing MessageCounter:252237332 from Retrans Table on exchange 60193r
D: 248520 [EM]Removed CHIP MessageCounter:252237332 from RetransTable on exchange 60193r
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;So you code is right.&lt;/p&gt;
&lt;p&gt;Try to remove your build folder and build again, then erase all and flash again.&lt;/p&gt;
&lt;p&gt;Try to download the chip-tool from &lt;a href="https://github.com/nrfconnect/sdk-connectedhomeip/releases/tag/v2.1.0"&gt;https://github.com/nrfconnect/sdk-connectedhomeip/releases/tag/v2.1.0&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Try the same on another android phone and see if the issue persists.&lt;/p&gt;
&lt;p&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><item><title>RE: Matter - Android CHIP Tool fails to send commands to clusters and read attributes from clusters</title><link>https://devzone.nordicsemi.com/thread/389444?ContentTypeID=1</link><pubDate>Wed, 05 Oct 2022 14:03:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b4ec58d9-f9a0-43dd-8c40-d051a8022b8d</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;I did not find anything at a scan through your project.&lt;/p&gt;
&lt;p&gt;I will try to run it and see if I see the same issue or not tomorrow.&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: Matter - Android CHIP Tool fails to send commands to clusters and read attributes from clusters</title><link>https://devzone.nordicsemi.com/thread/389221?ContentTypeID=1</link><pubDate>Tue, 04 Oct 2022 13:19:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a764d4e9-f5f6-4594-8708-a92457c527df</guid><dc:creator>jacobbluhm</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/sensor-_2D00_-Copy.zip"&gt;devzone.nordicsemi.com/.../sensor-_2D00_-Copy.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I have this project located in&amp;nbsp;C:\ncs\v2.1.0\nrf\samples\matter&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Matter - Android CHIP Tool fails to send commands to clusters and read attributes from clusters</title><link>https://devzone.nordicsemi.com/thread/389218?ContentTypeID=1</link><pubDate>Tue, 04 Oct 2022 13:15:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c58a901e-7b29-46c2-8b8f-cfca86596022</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I am not able to figure out what is wrong so far.&lt;/p&gt;
&lt;p&gt;Can you zip your project, so that I can have a look to see if it looks right and see if I am able to reproduce?&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: Matter - Android CHIP Tool fails to send commands to clusters and read attributes from clusters</title><link>https://devzone.nordicsemi.com/thread/389077?ContentTypeID=1</link><pubDate>Mon, 03 Oct 2022 19:03:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c57834f1-e8f8-4a9a-8a3e-c1a6cdbef36f</guid><dc:creator>jacobbluhm</dc:creator><description>&lt;p&gt;Does the setup of the cluster refer to the .zap file? (Attached below, changed name from template.zap to template - zap.txt because DevZone wouldn&amp;#39;t accept .zap file)&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/template-_2D00_-zap.txt"&gt;devzone.nordicsemi.com/.../template-_2D00_-zap.txt&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I have double checked I&amp;#39;ve made all the modifications called out in the Nordic tutorial, which I think is a double check that the cluster is setup correctly. I can only interact with Endpoint 0 from the Android CHIP Tool.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;void&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;MatterPostAttributeChangeCallback in zcl_callbacks.cpp is never called, this seems to be the root of the problem&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Matter - Android CHIP Tool fails to send commands to clusters and read attributes from clusters</title><link>https://devzone.nordicsemi.com/thread/388681?ContentTypeID=1</link><pubDate>Fri, 30 Sep 2022 08:03:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:df260dd7-573c-4c33-89f1-a05c9be28cbb</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Having another look at your log, it looks like the error is that the command you try to send is not available from your application&lt;br /&gt;&amp;quot;No command 0x0000_0001 in Cluster 0x0000_0006 on Endpoint 0x1&amp;quot;&lt;/p&gt;
&lt;p&gt;I realize that it is not the best tip, but let&amp;#39;s start with:&lt;br /&gt;Can you double check that your setup of the cluster is correct?&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: Matter - Android CHIP Tool fails to send commands to clusters and read attributes from clusters</title><link>https://devzone.nordicsemi.com/thread/388603?ContentTypeID=1</link><pubDate>Thu, 29 Sep 2022 14:09:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b3b8efc6-489f-45af-86e4-28f19eeafb74</guid><dc:creator>jacobbluhm</dc:creator><description>&lt;p&gt;No, the event handlers are not called, I confirmed this by adding LOG_INF() print statements inside the event handlers.&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;pre class="ui-code" data-mode="text"&gt;void AppTask::SensorActivateHandler()
{
&amp;#160; &amp;#160; &amp;#160; &amp;#160; LOG_INF(&amp;quot;SensorActivateHandler&amp;quot;);
&amp;#160; &amp;#160; &amp;#160; &amp;#160; StartSensorTimer(500);
}

void AppTask::SensorDeactivateHandler()
{
&amp;#160; &amp;#160; &amp;#160; &amp;#160; LOG_INF(&amp;quot;SensorDeactivateHandler&amp;quot;);
&amp;#160; &amp;#160; &amp;#160; &amp;#160; StopSensorTimer();
}

void AppTask::SensorMeasureHandler()
{
&amp;#160; &amp;#160; &amp;#160; &amp;#160; LOG_INF(&amp;quot;SensorMeasureHandler&amp;quot;);
&amp;#160; &amp;#160; &amp;#160; &amp;#160; chip::app::Clusters::TemperatureMeasurement::Attributes::MeasuredValue::Set(
&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; /* endpoint ID */ 1, /* temperature in 0.01*C */ int16_t(rand() % 5000));
}&lt;/pre&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;The tutorial puts the event handlers into app_task.cpp.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Matter - Android CHIP Tool fails to send commands to clusters and read attributes from clusters</title><link>https://devzone.nordicsemi.com/thread/388581?ContentTypeID=1</link><pubDate>Thu, 29 Sep 2022 13:21:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b477f8ab-24b0-4f7f-961f-cbcdb4383302</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Will the event handler in your main.c be called when the error happens?&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: Matter - Android CHIP Tool fails to send commands to clusters and read attributes from clusters</title><link>https://devzone.nordicsemi.com/thread/388368?ContentTypeID=1</link><pubDate>Wed, 28 Sep 2022 13:21:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:34d69c49-f5b3-418d-8c72-20e749a5ee02</guid><dc:creator>jacobbluhm</dc:creator><description>&lt;p&gt;Yes, the ErrorOutput.txt is what the end device outputs after pressing &amp;#39;Invoke&amp;#39; on the Android CHIP Tool.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Matter - Android CHIP Tool fails to send commands to clusters and read attributes from clusters</title><link>https://devzone.nordicsemi.com/thread/388302?ContentTypeID=1</link><pubDate>Wed, 28 Sep 2022 09:17:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cb03d877-9361-4ba3-a15b-6a0429cc46df</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Hi Jacob,&lt;/p&gt;
&lt;p&gt;To clarify:&lt;/p&gt;
&lt;p&gt;Does the error from your End Device only appear after you try to send the command from the Android CHIP Tool?&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>