<?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>Lock and restart Zigbee Stack</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/52641/lock-and-restart-zigbee-stack</link><description>Hello! 
 I&amp;#39;m using the nRF 52840 module for Zigbee applications. I am implementing a Zigbee router and I need the time-limited commissioning on the device, such as the creation of a Zigbee network by a Coordinator. At the moment I can&amp;#39;t find any API to</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 24 Oct 2019 08:34:37 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/52641/lock-and-restart-zigbee-stack" /><item><title>RE: Lock and restart Zigbee Stack</title><link>https://devzone.nordicsemi.com/thread/216518?ContentTypeID=1</link><pubDate>Thu, 24 Oct 2019 08:34:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:382f87d6-cf55-4767-93da-b43e1cd2c950</guid><dc:creator>AndreasF</dc:creator><description>&lt;p&gt;Hi again Raffaela.&lt;/p&gt;
&lt;p&gt;Since you have a multiprotocol system, I think that you should think about using timeslots.&lt;/p&gt;
&lt;p&gt;There is, as I said, no API at the moment for &amp;quot;disabling&amp;quot; Zigbee, but you could put the Zigbee radio time inside a timeslot in the SoftDevice.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Lock and restart Zigbee Stack</title><link>https://devzone.nordicsemi.com/thread/216330?ContentTypeID=1</link><pubDate>Wed, 23 Oct 2019 10:34:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6f7a3488-ee09-47af-8aa1-83a6149a8913</guid><dc:creator>Raffaela</dc:creator><description>&lt;p&gt;Hi Andreas,&lt;/p&gt;
&lt;p&gt;I tried that approach that you advised to me. But it doesn&amp;#39;t work.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span lang="en"&gt;I will explain to you better what I should do: since it is a multiprotocol system, I need that, when the BLE is active, the Zigbee in the &lt;strong&gt;router&lt;/strong&gt; device is not active; so, if a Zigbee Coordinator tries to scan the network, it should not find my router device. But of course, I could turn off the BLE and reactivating the Zigbee so now I need the Zigbee Coordinator to find my device, following a scan.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span lang="en"&gt;How to turn on or off the BLE is clear (I can start and stop the advertisement).&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span lang="en"&gt;Is it possible to do this in some way, without obviously having to do a reset the device and restart the stack?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span lang="en"&gt;Thank you so much and best regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span lang="en"&gt;Raffaela&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Lock and restart Zigbee Stack</title><link>https://devzone.nordicsemi.com/thread/213940?ContentTypeID=1</link><pubDate>Tue, 08 Oct 2019 13:27:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4e2d6a4e-aa1d-41b8-b8af-1a6b4959d066</guid><dc:creator>Raffaela</dc:creator><description>&lt;p&gt;Thank you Andrea, I&amp;#39;ll try this approach.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Lock and restart Zigbee Stack</title><link>https://devzone.nordicsemi.com/thread/213595?ContentTypeID=1</link><pubDate>Mon, 07 Oct 2019 10:15:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e734edc9-f783-4e3d-8ba0-6864cf7027b4</guid><dc:creator>AndreasF</dc:creator><description>&lt;p&gt;Hi Raffaela.&lt;/p&gt;
&lt;p&gt;Sorry for the late reply, I&amp;#39;m home with the flu.&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t really have an example for this, you could try something like this:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;void lock_network_cb(zb_uint8_t param)
{
  NRF_LOG_INFO(&amp;quot;Network is locked&amp;quot;);
  zb_free_buf(ZB_BUF_FROM_REF(param));
}

void lock_network(zb_uint8_t param)
{
  zb_buf_t *buf = ZB_BUF_FROM_REF(param);

  if (buf-&amp;gt;u.hdr.status == 0)
  {
    zb_zdo_mgmt_permit_joining_req_param_t *req_param = ZB_GET_BUF_PARAM(buf, zb_zdo_mgmt_permit_joining_req_param_t);

    NRF_LOG_INFO(&amp;quot;Device STARTED OK&amp;quot;);

    /* ask coordinator not to accept more childs */
    req_param-&amp;gt;dest_addr = 0;
    req_param-&amp;gt;permit_duration = 0;
    req_param-&amp;gt;tc_significance = 1;

    zb_zdo_mgmt_permit_joining_req(param, &amp;amp;permit_joining_cb);
  }
  else
  {
    NRF_LOG_INFO(&amp;quot;Device started FAILED status %d&amp;quot;, (int)buf-&amp;gt;u.hdr.status);
    zb_free_buf(buf);
  }
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;And then start the network again by bdb_start_top_level_commissioning().&lt;/p&gt;
&lt;p&gt;Note,I have not tested this since I&amp;#39;m not in the office at the moment.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Lock and restart Zigbee Stack</title><link>https://devzone.nordicsemi.com/thread/212657?ContentTypeID=1</link><pubDate>Mon, 30 Sep 2019 15:13:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f184f8f5-8277-4d8a-bc6d-89c1564702b3</guid><dc:creator>Raffaela</dc:creator><description>&lt;p&gt;Hi Andreas,&lt;/p&gt;
&lt;p&gt;Thank you for your answer. Can you give me an example?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Raffaela&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Lock and restart Zigbee Stack</title><link>https://devzone.nordicsemi.com/thread/212539?ContentTypeID=1</link><pubDate>Mon, 30 Sep 2019 11:27:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cff3e116-6001-46dc-841a-3b7a4c191084</guid><dc:creator>AndreasF</dc:creator><description>&lt;p&gt;Hi &lt;span&gt;Raffaela&lt;/span&gt;.&lt;/p&gt;
&lt;p&gt;At the moment, there is not a API for this. You could try to implement this yourself by sending two seperate ZDO requests.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>