<?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>Zigbee CLI example can&amp;#39;t interact with some clusters and Sleepy End Devices</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/79519/zigbee-cli-example-can-t-interact-with-some-clusters-and-sleepy-end-devices</link><description>Hello all, 
 I&amp;#39;m interacting with some nodes in a test network: 
 setup: 10x nrf52840 DK (PCA10056) boards loaded with the following software. 
 1x Coordinator ( Zigbee CLI Agent example ) 
 3x Routers ( Zigbee Light Bulb Example ) 
 6x End Devices (</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 14 Sep 2021 12:55:28 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/79519/zigbee-cli-example-can-t-interact-with-some-clusters-and-sleepy-end-devices" /><item><title>RE: Zigbee CLI example can't interact with some clusters and Sleepy End Devices</title><link>https://devzone.nordicsemi.com/thread/329448?ContentTypeID=1</link><pubDate>Tue, 14 Sep 2021 12:55:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dbd9abdc-706c-4cf5-b87d-b7d13a2be029</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I am happy to hear that&amp;nbsp;it is working as expected now!&lt;/p&gt;
&lt;p&gt;It is not always easy to know exactly how&amp;nbsp;the CLI commands should be formatted, and especially since some arguments must be formatted as hexadecimal strings, while others as decimal values.&amp;nbsp;However, something that can be very useful when using Zigbee CLI is to look at the&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/sdk_tz_v4.1.0/zigbee_example_cli_reference.html"&gt;Zigbee CLI Reference&lt;/a&gt;.&amp;nbsp;There you will find how to format the commands supported by Zigbee CLI, and it specifies whether the argument should be a hexadecimal&amp;nbsp;or decimal.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Marte&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Zigbee CLI example can't interact with some clusters and Sleepy End Devices</title><link>https://devzone.nordicsemi.com/thread/329441?ContentTypeID=1</link><pubDate>Tue, 14 Sep 2021 12:37:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4890be50-fb7c-48f1-bd60-c6cf5b79d127</guid><dc:creator>SamTheMan</dc:creator><description>&lt;p&gt;Ah, so uh... everything is working as intended haha&amp;nbsp;&lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f605.svg" title="Sweat smile"&gt;&amp;#x1f605;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;I used the wrong command, as during my first few tests the command from the tutorial wasn&amp;#39;t working due to what i can only assume to be a setup mistake. So I threw that one away and tried to use one from the &lt;a href="https://zigbeealliance.org/wp-content/uploads/2019/12/07-5123-06-zigbee-cluster-library-specification.pdf"&gt;Zigbee Cluster Library Specification&lt;/a&gt;. But I didn&amp;#39;t use the correct syntax or didn&amp;#39;t know that it was working because I should&amp;#39;ve used a Sniffer instead of the TeraTerm log terminal for confirmation.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;The following commands worked to put&amp;nbsp;my nodes in identifying mode for 5 seconds and with a code adjustement I can see LED2 light up when it&amp;#39;s in identifying mode.&lt;/p&gt;
&lt;p&gt;&lt;span style="text-decoration:underline;"&gt;Put in identifying mode&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;zcl cmd &amp;lt;dst_addr&amp;gt; &amp;lt;endpoint&amp;gt; &amp;lt;cluster&amp;gt; &amp;lt;command_id&amp;gt; -l &amp;lt;payload&amp;gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Light Switch --&amp;gt; zcl cmd 0x22C1 1 3 0 -l 0x05&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Light Bulb --&amp;gt; zcl cmd 0xDF29 10 3 0 -l 0x05&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Minor code adjustment in main.c&amp;#39;s main loop to put LED2 ON while identifying and OFF if not identifying&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;/*SELF INSERTED CODE
  Turn LED2 on if identify_time &amp;gt; 0; Else turn LED2 off*/
if (m_attr_identify_time &amp;gt; 0) {
  bsp_board_led_on(1);
}
else{
  bsp_board_led_off(1);
}&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Zigbee CLI example can't interact with some clusters and Sleepy End Devices</title><link>https://devzone.nordicsemi.com/thread/329421?ContentTypeID=1</link><pubDate>Tue, 14 Sep 2021 11:48:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2efd87e5-65fa-4637-9df8-134533e43df5</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi Sam,&lt;/p&gt;
[quote user="SamTheMan"]None of the ZCL CMD commands from 0x0003 and 0x0004 sended to my nodes return&amp;nbsp;a message in the logging.[/quote]
&lt;p&gt;&amp;nbsp;This does not necessarily mean that the commands are not received or handled by the router, but it could simply mean that there is no logging for the command in the example.&amp;nbsp;The CLI agent did not print logs when I sent the commands to the router, but I could see in the sniffer log that the router did receive and respond to the commands. Can you get a sniffer log of the network traffic when you are sending the packets? If you have a nRF52840 Dongle or DK you can use&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/ug_sniffer_802154/UG/sniffer_802154/intro_802154.html"&gt;nRF Sniffer for 802.15.4&lt;/a&gt;.&amp;nbsp;Please share the log as a pcap file so I can look at it.&lt;/p&gt;
[quote user="SamTheMan"]Also the command to put a node in identifying mode doesn&amp;#39;t increase the identifying time.[/quote]
&lt;p&gt;&amp;nbsp;What does the command you are sending look like? Are you sending it to the correct address and endpoint? You should be able to change the&amp;nbsp;IdentifyTime attribute using the Identify command. It should not be necessary to use the generic write attributes command. I tested with all commands in the Identify cluster, and I was able to change IdentifyTime, and verify that it was changed with the Identify Query command and read attributes command.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;This is the command I used to put the device in Identify mode for 120 seconds:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;zcl cmd &lt;span&gt;0b010e1585785ce7 &lt;/span&gt;10 3 0 -l 0x78&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Where the&amp;nbsp;arguments were as follows:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;zcl cmd &amp;lt;dst_addr&amp;gt; &amp;lt;endpoint&amp;gt; &amp;lt;cluster&amp;gt; &amp;lt;command_id&amp;gt; -l &amp;lt;payload&amp;gt;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Marte&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Zigbee CLI example can't interact with some clusters and Sleepy End Devices</title><link>https://devzone.nordicsemi.com/thread/329327?ContentTypeID=1</link><pubDate>Tue, 14 Sep 2021 07:34:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ff78c866-71d7-4c2a-85c5-721677668178</guid><dc:creator>SamTheMan</dc:creator><description>&lt;p&gt;Hi Marte,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I have setup my network as described in my original post.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote userid="92402" url="~/f/nordic-q-a/79519/zigbee-cli-example-can-t-interact-with-some-clusters-and-sleepy-end-devices/329243#329243"]&lt;blockquote class="quote"&gt;&lt;div class="quote-content"&gt;Routers don&amp;#39;t accept &lt;span&gt;&amp;quot;zcl cmd&amp;quot; commands&lt;/span&gt; targeting cluster 0x0003 and 0x0004&lt;/div&gt;&lt;/blockquote&gt;&lt;div class="quote-footer"&gt;&lt;/div&gt;
&lt;p&gt;Could you please specify more how you are testing this? How do you know that the routers do not accept commands from these clusters, and what commands are you sending?&lt;/p&gt;[/quote]
&lt;p&gt;I&amp;#39;m reading out the logging through TeraTerm.&lt;/p&gt;
&lt;p&gt;Baud Rate 1000000 on my Routers and End devices and Baud Rate 115200 on my CLI/Coordinator devices.&lt;/p&gt;
&lt;p&gt;None of the ZCL CMD commands from 0x0003 and 0x0004 sended to my nodes return&amp;nbsp;a message in the logging.&lt;/p&gt;
&lt;p&gt;Also the command to put a node in identifying mode doesn&amp;#39;t increase the identifying time.&lt;/p&gt;
&lt;p&gt;I can read the Identifying Time of individual nodes using the ZCL ATTR READ method and they return 0.&lt;/p&gt;
&lt;p&gt;For testing purposes it is possible for me to artificially increase the Identifying Time through the ZCL ATTR WRITE method, but I can imagine this isn&amp;#39;t the intended way of doing things.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote userid="92402" url="~/f/nordic-q-a/79519/zigbee-cli-example-can-t-interact-with-some-clusters-and-sleepy-end-devices/329243#329243"]&lt;blockquote class="quote"&gt;&lt;div class="quote-content"&gt;Sleepy End Devices can&amp;#39;t be interacted with.&lt;/div&gt;&lt;/blockquote&gt;&lt;div class="quote-footer"&gt;&lt;/div&gt;
&lt;p&gt;&amp;nbsp;Is this when the device is in sleep mode?&lt;/p&gt;[/quote]
&lt;p&gt;Yes, but this&amp;nbsp;works now. It was a range and timing-related thing. ( I just putted the Sleepy End Devices closer to the Routers and waited roughly 500ms&amp;nbsp;before sending a new&amp;nbsp;command to make sure&amp;nbsp;everything had time to process )&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Cheers,&lt;/p&gt;
&lt;p&gt;Sam&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Zigbee CLI example can't interact with some clusters and Sleepy End Devices</title><link>https://devzone.nordicsemi.com/thread/329243?ContentTypeID=1</link><pubDate>Mon, 13 Sep 2021 12:59:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c490a84f-ccde-4f6e-9f38-3f4618a57c13</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user=""]Routers don&amp;#39;t accept &lt;span&gt;&amp;quot;zcl cmd&amp;quot; commands&lt;/span&gt; targeting cluster 0x0003 and 0x0004[/quote]
&lt;p&gt;Could you please specify more how you are testing this? How do you know that the routers do not accept commands from these clusters, and what commands are you sending? I tried to reproduce your issue using the same examples, but I did not have any issue sending ZCL commands from the Identify and Groups clusters to the light bulb. Using a sniffer to look at the network traffic I saw the light bulb sent the expected responses back after receiving the commands.&amp;nbsp;&lt;/p&gt;
[quote user=""]Sleepy End Devices can&amp;#39;t be interacted with.[/quote]
&lt;p&gt;&amp;nbsp;Is this when the device is in sleep mode? When Sleepy End Devices (SED) are in sleep mode the radio is turned off, so you cannot communicate with a SED during sleep. If you try to send a packet to a SED while it is sleeping, the parent will not forward this packet to the device. It will instead keep the packet for some time, and when the SED wakes up it&amp;nbsp;will poll it&amp;#39;s parent for packets waiting for it. So you should be able to send and receive packets from SEDs, but you cannot expect the SED to receive the packet immediately.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Marte&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Zigbee CLI example can't interact with some clusters and Sleepy End Devices</title><link>https://devzone.nordicsemi.com/thread/329066?ContentTypeID=1</link><pubDate>Fri, 10 Sep 2021 14:20:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6f4ef783-9b61-4978-b267-74d1a0bd1425</guid><dc:creator>SamTheMan</dc:creator><description>&lt;p&gt;&lt;strong&gt;2) Sleepy End Devices can&amp;#39;t be interacted with has been solved.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;The Sleepy End Devices couldn&amp;#39;t reach 2 meters away from my routers. Likely a battery related issue.&lt;/p&gt;
&lt;p&gt;Non-sleeping End Devices had better connectivity.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>