<?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>Migrating some methods from nRF Zigbee &amp;amp; Thread SDK to NCS</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/75833/migrating-some-methods-from-nrf-zigbee-thread-sdk-to-ncs</link><description>Hi, 
 
 We are porting our application from nRF Zigbee &amp;amp; Thread SDK to NCS. 
 On the ZIgbee side, we have been using this methods: 
 
 1. zb_zdo_find_bind_src(): to check if a binding was already stored in the local bindings table 
 2. bdb_load_factory_new_flag</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 07 Jun 2021 09:10:44 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/75833/migrating-some-methods-from-nrf-zigbee-thread-sdk-to-ncs" /><item><title>RE: Migrating some methods from nRF Zigbee &amp; Thread SDK to NCS</title><link>https://devzone.nordicsemi.com/thread/313847?ContentTypeID=1</link><pubDate>Mon, 07 Jun 2021 09:10:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:83b08b4a-38c9-48f4-92c3-0f54bd917418</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;There doesn&amp;#39;t seem to be a similar API in NCS, but you can implement the reading device&amp;#39;s binding table and look for an entry associated with a specific device. Pleasse take a look at a CLI example for how it can be implemented:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;zdo mgmt_bind. Have a CLI command read the binding table from a device, then the device can ask itself for a binding table.&lt;/li&gt;
&lt;li&gt;cmd_zb_mgmt_bind_cb(). Have a callback function that parses and prints received entries of a binding table.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;You can also use the Zigbee CLI to test this solution, so for example, the coordinator device can read its own binding table:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="typescript"&gt;uart:~$ zdo short 
0000
Done
uart:~$ zdo mgmt_bind 0x0000
[idx] src_address      src_endp cluster_id dst_addr_mode dst_addr         dst_endp
[  0] f4ce361fe8ab4e51       10     0x0001           003 f4ce36f71a6cab56      010
Total entries for the binding table: 1
Done&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Migrating some methods from nRF Zigbee &amp; Thread SDK to NCS</title><link>https://devzone.nordicsemi.com/thread/313224?ContentTypeID=1</link><pubDate>Wed, 02 Jun 2021 23:05:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2dd4c3ca-6024-4b98-be5c-b3d10227081c</guid><dc:creator>sjf</dc:creator><description>&lt;p&gt;Hi Simon,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Yes, if the binding does not exist it send a bind request. Otherwise it skips that step...&lt;/p&gt;
&lt;p&gt;Please, we would like to port it as smoothly as possible since&amp;nbsp;Nordic&amp;#39;s support&amp;nbsp;suggested to migrate from the old SDK to the new one&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Migrating some methods from nRF Zigbee &amp; Thread SDK to NCS</title><link>https://devzone.nordicsemi.com/thread/313032?ContentTypeID=1</link><pubDate>Wed, 02 Jun 2021 08:13:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3a27c2b9-7141-48b0-b721-1ee48d8dff80</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;The zb_bdb_is factory_new() issue is resolved as of NCS v1.4.0, so it should not be necessary to use this function to update the returned value.&lt;/p&gt;
&lt;p&gt;My colleague in the Zigbee team couldn&amp;#39;t find an equivalent to the zb_zdo_find_bind_src() in NCS either.&amp;nbsp;What&amp;#39;s the&amp;nbsp;reason you want to check if a binding was already stored in the local bindings table? Is it necessary to your application?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Migrating some methods from nRF Zigbee &amp; Thread SDK to NCS</title><link>https://devzone.nordicsemi.com/thread/312904?ContentTypeID=1</link><pubDate>Tue, 01 Jun 2021 13:38:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fc87408f-69ac-49dd-bd7c-c0c063488344</guid><dc:creator>sjf</dc:creator><description>&lt;p&gt;Hi Simon,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks for your answer. zdo_mgmt_bind was already available in the old SDK. This is not related to send a request to get the bindings table since you&amp;nbsp;want to get the info from local tables.&lt;/p&gt;
&lt;p&gt;Can you check it with the Zigbee team too?&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Migrating some methods from nRF Zigbee &amp; Thread SDK to NCS</title><link>https://devzone.nordicsemi.com/thread/312884?ContentTypeID=1</link><pubDate>Tue, 01 Jun 2021 12:39:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ab4fb5d1-ddb4-4e73-80e2-53517b0e348f</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi Santiago&lt;/p&gt;
&lt;p&gt;1. I don&amp;#39;t think you&amp;#39;ll need to add this to NCS, as most functions have &amp;quot;replacements&amp;quot; in NCS already. Check out the &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/libraries/zigbee/lib_zigbee_shell.html?table#zdo-mgmt-bind"&gt;zdo mgmt_bind function here.&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;2. I could not find any load_factory_new_flag() on NCS, so it might not be needed in NCS. I have asked the Zigbee development team for clarification here and will update you when I hear back from them.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>