<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://test-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>ZCL and BDB commands explenation</title><link>https://test-devzone.nordicsemi.com/f/nordic-q-a/86449/zcl-and-bdb-commands-explenation</link><description>Hello, 
 I&amp;#39;m new to Nordic Zigbee solutions and where to find information so hoping someone can point me in right direction. 
 Using 2 nrf52840-DK boards. One is flashed with Nordic Zigbee Network coordinator example. The other is the Nordic Zigbee Ligh</description><dc:language>en-US</dc:language><generator>Telligent Community 13 Non-Production</generator><lastBuildDate>Thu, 16 Jun 2022 07:41:37 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://test-devzone.nordicsemi.com/f/nordic-q-a/86449/zcl-and-bdb-commands-explenation" /><item><title>RE: ZCL and BDB commands explenation</title><link>https://test-devzone.nordicsemi.com/thread/372720?ContentTypeID=1</link><pubDate>Thu, 16 Jun 2022 07:41:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ade68b86-2ab0-402f-8d5e-957a2b438c9f</guid><dc:creator>user92402</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;When you issue the command bdb start you are calling the function cmd_zb_start, as you can see&amp;nbsp;&lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/v1.9.1/subsys/zigbee/cli/zigbee_cli_cmd_bdb.c#L285"&gt;here&lt;/a&gt;. This function will set the device role and start the Zigbee thread (zigbee_enable).&lt;/p&gt;
&lt;p&gt;There is no shell command that calls&amp;nbsp;zb_bdb_close_network(), so you will have to implement that yourself. You can see how to create shell commands in Zephyr&amp;#39;s documentation here:&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.9.1/zephyr/reference/shell/index.html#shell-api"&gt;Zephyr shell&lt;/a&gt;. You can also take a look at how the Zigbee shell commands are implemented to have some examples.&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: ZCL and BDB commands explenation</title><link>https://test-devzone.nordicsemi.com/thread/372681?ContentTypeID=1</link><pubDate>Thu, 16 Jun 2022 00:07:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:57f66424-fedf-46c2-b091-8550d401c8e9</guid><dc:creator>user114890</dc:creator><description>&lt;p&gt;Also this is all for Coordinator implementation using Network Coordinator example as starting point.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ZCL and BDB commands explenation</title><link>https://test-devzone.nordicsemi.com/thread/372679?ContentTypeID=1</link><pubDate>Thu, 16 Jun 2022 00:03:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:97093fef-45c9-4dcd-aff8-fe01096e28e4</guid><dc:creator>user114890</dc:creator><description>&lt;p&gt;Hi Marte,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;A bit late trying this and reply as I&amp;#39;m working through some of the Nordic lingo and documentation.&lt;br /&gt;I use nrf Connect SDK 1.9.1 (for now), and VS, I like to use Kconfig GUI as much as possible.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m trying to find some reference or documentation that shows the BDB START (as example) shell commands and what it actually calls.&lt;br /&gt;The shell document&amp;nbsp; doesn&amp;#39;t actually describe what it calls&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/libraries/zigbee/shell.html#bdb-start"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/libraries/zigbee/shell.html#bdb-start&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;So when you say &amp;quot;call the function&amp;quot;&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/zboss/3.11.1.0/group__zboss__bdb__comm__start.html#gaff7aef66e3cd632ce7c144fc3faa1a27"&gt;zb_bdb_close_network()&lt;/a&gt;&amp;nbsp;what is the actual bdb command?&lt;br /&gt;Looks like I may have to add this functions?&lt;/p&gt;
&lt;p&gt;Perhaps there is a document how this is done or video tutorial?&lt;br /&gt;I see reference to a bunch of functions that I can probably use but how do I implement them using shell commands?&lt;/p&gt;
&lt;p&gt;Cheers,&lt;br /&gt;Jorgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ZCL and BDB commands explenation</title><link>https://test-devzone.nordicsemi.com/thread/363547?ContentTypeID=1</link><pubDate>Tue, 19 Apr 2022 11:43:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c0439f29-60db-4ae8-a92b-ef5b5c71693c</guid><dc:creator>user92402</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Please create a new ticket with these questions as they are not related to the original issue in the ticket. Thanks!&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: ZCL and BDB commands explenation</title><link>https://test-devzone.nordicsemi.com/thread/363402?ContentTypeID=1</link><pubDate>Tue, 19 Apr 2022 00:39:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ce6c152c-aad4-4865-ae1b-f8b9cbc73597</guid><dc:creator>user114890</dc:creator><description>&lt;p&gt;Hi Marte, &lt;br /&gt;Great! Sorry for late reply. Had to try to find some Nordic parts...:)&lt;br /&gt;Yes I did see new version 1.9 come out. Hopefully some other new useful commands also.&lt;br /&gt;&lt;br /&gt;I&amp;#39;m also looking for reference schematic for the interface between 52840 and the 21540 (PA). Is there a simpler version than the developer kit&amp;nbsp; version section? Have to trace it all out and can easily miss something.&lt;br /&gt;&lt;br /&gt;Is there some documentation and examples on how to write to 52840 USB port (not the jlink in eval board) so I can configure the 21540 gain and perhaps some other &amp;quot;slow&amp;quot; parameters using the spi interface of the 52840?&lt;br /&gt;I should be able to do that, right?&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ZCL and BDB commands explenation</title><link>https://test-devzone.nordicsemi.com/thread/362601?ContentTypeID=1</link><pubDate>Fri, 08 Apr 2022 12:35:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:09f8c487-bc0f-4a3d-9844-e49e9a2b636c</guid><dc:creator>user92402</dc:creator><description>&lt;p&gt;Hi Jorgen,&lt;/p&gt;
&lt;p&gt;I just found that there is an option to close the network early after all. This was added in nRF Connect SDK v1.9, and it seems to be a new feature in the Base Device Behavior specification, so I was not aware that this was possible yet when I answered you earlier. This allows you to locally disable network steering. To do so, all you need to do is to call the function &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/zboss/3.11.1.0/group__zboss__bdb__comm__start.html#gaff7aef66e3cd632ce7c144fc3faa1a27"&gt;zb_bdb_close_network()&lt;/a&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: ZCL and BDB commands explenation</title><link>https://test-devzone.nordicsemi.com/thread/361238?ContentTypeID=1</link><pubDate>Fri, 01 Apr 2022 12:58:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2c9e9673-5a05-471f-9c31-92a18797e90a</guid><dc:creator>user114890</dc:creator><description>&lt;p&gt;Hello,&lt;br /&gt;Great, that will work. Plus I get the LQI numbers. I will try.&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;
&lt;p&gt;Jorgen&lt;/p&gt;
&lt;p&gt;Btw: Great quick support !&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ZCL and BDB commands explenation</title><link>https://test-devzone.nordicsemi.com/thread/361140?ContentTypeID=1</link><pubDate>Fri, 01 Apr 2022 07:10:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c32dac2e-effb-4265-85bf-b1429888371b</guid><dc:creator>user92402</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;There is no shell command to list all devices on the network, but you can use&amp;nbsp;&lt;strong&gt;zdo mgmt_lqi&amp;nbsp;&lt;/strong&gt;to get the neighbor table of a device. As an example, here I send the command to the coordinator, and the coordinator responds with its neighbor table which currently has two entries:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&amp;gt; zdo mgmt_lqi 0x0000&lt;/code&gt;&lt;br /&gt;&lt;code&gt;[idx] ext_pan_id&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ext_addr&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;short_addr flags permit_join depth lqi&lt;/code&gt;&lt;br /&gt;&lt;code&gt;[ 0]&amp;nbsp; f4ce36314cd4585a f4ce3663c6e40fe2 0x6848&amp;nbsp; &amp;nbsp; &amp;nbsp;0x95&amp;nbsp; 1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1&amp;nbsp; &amp;nbsp; &amp;nbsp;180&lt;/code&gt;&lt;br /&gt;&lt;code&gt;[ 1]&amp;nbsp; f4ce36314cd4585a f4ce36836ec0da13 0xc100&amp;nbsp; &amp;nbsp; &amp;nbsp;0x15&amp;nbsp; 0&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1&amp;nbsp; &amp;nbsp; &amp;nbsp;255&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: ZCL and BDB commands explenation</title><link>https://test-devzone.nordicsemi.com/thread/361111?ContentTypeID=1</link><pubDate>Thu, 31 Mar 2022 23:59:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:84190dd5-c651-4d41-934b-93b4713b1d14</guid><dc:creator>user114890</dc:creator><description>&lt;p&gt;Thanks Marte for quick reply. I will try this.&lt;br /&gt;&lt;br /&gt;It does not look like there is a shell command to get a listing of Devices connected to PAN such as their dst_addr or (E)UID or MAC address etc.?&lt;/p&gt;
&lt;p&gt;In my previous experience using different SoC this device listing is not &amp;quot;real time&amp;quot; since it has an aging out component to it, but it can still be useful.&lt;br /&gt;&lt;br /&gt;Can you recommend a way to get this list (other than my app keeping track of announcements when devices connect)?&lt;br /&gt;If App for some reason misses the new device or rejoined announcement message it gets a bit messy.&lt;br /&gt;&lt;br /&gt;Thanks again!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ZCL and BDB commands explenation</title><link>https://test-devzone.nordicsemi.com/thread/361071?ContentTypeID=1</link><pubDate>Thu, 31 Mar 2022 14:24:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f28afcb1-b1aa-4e67-9ee2-65d78ceca4b7</guid><dc:creator>user92402</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;You can find documentation for Zigbee shell here:&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.9.1/nrf/libraries/zigbee/shell.html"&gt;nRF Connect SDK » Zigbee shell&lt;/a&gt;. The supported commands are listed there, with explanations and examples of how to use them. If you want more detailed information about the commands themselves you can look in the Zigbee specification.&lt;/li&gt;
&lt;li&gt;No, there is not. This minimum duration for which a network is opened to allow nodes to join is decided by the constant&amp;nbsp;bdbcMinCommissioningTime. This value is defined as 180 seconds by the Zigbee specification.&lt;/li&gt;
&lt;li&gt;This can be found in the link above:&lt;br /&gt;
&lt;pre&gt;zcl attr read &lt;em&gt;h:dst_addr&lt;/em&gt; &lt;em&gt;d:ep&lt;/em&gt; &lt;em&gt;h:cluster&lt;/em&gt; [-c] &lt;em&gt;h:profile&lt;/em&gt; &lt;em&gt;h:attr_id&lt;/em&gt;&lt;/pre&gt;
If you want to read the OnOff attribute in the On/Off cluster this will be:&lt;br /&gt;
&lt;pre&gt;zcl attr read &lt;em&gt;h:dst_addr&lt;/em&gt; &lt;em&gt;d:ep&lt;/em&gt; &lt;i&gt;0x0006&lt;/i&gt; &lt;i&gt;0x0104&lt;/i&gt; &lt;i&gt;0x00&lt;/i&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;We also have some guides that can be worth going through if you are new to Zigbee in nRF Connect SDK, such as&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.9.1/nrf/ug_zigbee_qsg.html"&gt;Zigbee quick start guide&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.9.1/nrf/ug_zigbee_adding_clusters.html"&gt;Adding ZCL clusters to application&lt;/a&gt;.&amp;nbsp;&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></channel></rss>