<?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] switch key procedure</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/71930/zigbee-switch-key-procedure</link><description>SDK: 4.1.0 
 CHIP: 52840 
 
 old question 
 
 my sleepy zed lost connection to the coordinator after refreshing key of the coordinator. 
 
 1) how can I manipulate refresh key of the coordinator? 
 2) how can I callback to receive broadcast packet? 
</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 04 Mar 2021 08:43:35 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/71930/zigbee-switch-key-procedure" /><item><title>RE: [ZIGBEE] switch key procedure</title><link>https://devzone.nordicsemi.com/thread/297685?ContentTypeID=1</link><pubDate>Thu, 04 Mar 2021 08:43:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e1d057c2-94fb-4092-8982-3ac4600a02f3</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Thank you for informing me. This will be handled in the other case you linked.&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] switch key procedure</title><link>https://devzone.nordicsemi.com/thread/297540?ContentTypeID=1</link><pubDate>Wed, 03 Mar 2021 13:49:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a52d4118-f0a3-4f73-a05f-1cd656a78c7e</guid><dc:creator>_maibi</dc:creator><description>&lt;p&gt;Hi, I don&amp;#39;t find the solution below the question. My zed is still not getting updated key.&lt;/p&gt;
[quote userid="72896" url="~/f/nordic-q-a/71930/zigbee-switch-key-procedure/295956#295956"]&lt;p&gt;Why switch key mechanism doesn&amp;#39;t work?&lt;/p&gt;
&lt;p&gt;it is zigbee version problem? Is it&amp;nbsp;up to zigbee developer?&lt;/p&gt;[/quote]
&lt;p&gt;so, I opened &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/72279/zigbee-doesn-t-receive-transport-key-in-rejoining"&gt;new question&lt;/a&gt;. Any help here would be very much appreciated.&lt;/p&gt;
&lt;div style="left:416px;position:absolute;top:137px;" id="gtx-trans"&gt;
&lt;div class="gtx-trans-icon"&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [ZIGBEE] switch key procedure</title><link>https://devzone.nordicsemi.com/thread/297505?ContentTypeID=1</link><pubDate>Wed, 03 Mar 2021 12:54:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:34df4a26-3f11-433d-a695-1f3dae1c4fe0</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;From what I could see, your questions here were answered in your other case. If I&amp;#39;m mistaken and some of your questions in this case were not answered in the other case and you&amp;#39;re still experiencing problems with them, then let me know.&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] switch key procedure</title><link>https://devzone.nordicsemi.com/thread/297484?ContentTypeID=1</link><pubDate>Wed, 03 Mar 2021 12:03:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d47ed2b7-3080-4b43-9c91-170c7de81512</guid><dc:creator>_maibi</dc:creator><description>&lt;p&gt;Hi, sorry about that. I won&amp;rsquo;t open it for same case. But, The deadline is very imminent. Could you help about this issue?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [ZIGBEE] switch key procedure</title><link>https://devzone.nordicsemi.com/thread/297443?ContentTypeID=1</link><pubDate>Wed, 03 Mar 2021 10:21:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ce88b641-48ca-4bb9-9200-f2fc2f2ad912</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I&amp;#39;m sorry for the late response, I&amp;#39;ve been discussing this case with my colleague responsible for&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/71991/zigbee-lost-connection-after-refresh-key"&gt;your other case&lt;/a&gt;. Since you asked the same questions in that case and they&amp;#39;ve been answered there, I&amp;#39;ll consider this solved. In the future, please refrain from creating several cases with the same questions.&amp;nbsp;Keeping it in one case makes it easier for other users of the forum to find relevant cases if they&amp;#39;re experiencing similar issues. In addition, if there are duplicate cases&amp;nbsp;it might lead to the questions being solved in one case without the knowledge of the person working on the other case, which might affect response time. If you however get a problem or have a question unrelated to the original case, please don&amp;#39;t hesitate to open a new case.&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] switch key procedure</title><link>https://devzone.nordicsemi.com/thread/295956?ContentTypeID=1</link><pubDate>Wed, 24 Feb 2021 08:33:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8c459bc1-ee91-400d-93e0-97514318a679</guid><dc:creator>_maibi</dc:creator><description>&lt;p&gt;I found the solutions about few my questions.&lt;/p&gt;
[quote userid="72896" url="~/f/nordic-q-a/71930/zigbee-switch-key-procedure/295935#295935"]2) How can I register callback which handles APS layer packet? I currently handles ZCL packets by the code.[/quote]
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;static bool zcl_check_send_result(zb_uint8_t param)
{
    zb_zcl_command_send_status_t * p_cmd_status;

    if (param == 0)
    {
        return false;
    }
    uint8_t buf_len = zb_buf_len(param);
    p_cmd_status = ZB_BUF_GET_PARAM(param, zb_zcl_command_send_status_t);
    DEBUG_DATAL(&amp;quot;ias_zone_result_cb data&amp;quot;, zb_buf_begin(param), buf_len);
    DEBUG_PRINTF(&amp;quot;Frame acknowledged. Status: %d\n&amp;quot;, p_cmd_status-&amp;gt;status);
    if (p_cmd_status-&amp;gt;status != RET_OK)
    {
        /* No APS-ACK received. */
        DEBUG_PRINTF(&amp;quot;No APS-ACK received.\n&amp;quot;);
        return false;
    }
    return true;
}
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;I found the code in benchmark source in sdk.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I summarizes my questions again.&lt;/p&gt;
&lt;p&gt;1)&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Why switch key mechanism doesn&amp;#39;t work?&lt;/p&gt;
&lt;p&gt;it is zigbee version problem? Is it&amp;nbsp;up to zigbee developer?&lt;/p&gt;
&lt;p&gt;2)&lt;/p&gt;
&lt;p&gt;I wants to send zigbee network layer packet like below picture. Which function should I use?&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1614155534169v1.png" /&gt;&lt;/p&gt;
&lt;p&gt;3)&amp;nbsp;&lt;/p&gt;
&lt;p&gt;How can I get network time? Is there the synchronization of time in zigbee stack?&lt;/p&gt;
&lt;div style="left:150px;position:absolute;top:1045.71px;" id="gtx-trans"&gt;
&lt;div class="gtx-trans-icon"&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [ZIGBEE] switch key procedure</title><link>https://devzone.nordicsemi.com/thread/295935?ContentTypeID=1</link><pubDate>Wed, 24 Feb 2021 02:14:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1377c412-b441-4725-8945-b6740bd6ad6b</guid><dc:creator>_maibi</dc:creator><description>&lt;p&gt;Hi, thanks for the reply.&lt;/p&gt;
&lt;p&gt;The switch key doesn&amp;#39;t have any key value.&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1614132230648v1.png" /&gt;&lt;/p&gt;
&lt;p&gt;1) What key pass to the function&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/sdk_tz_v4.1.0/group__secur__api.html#ga23f375eb4e96beebeb2f894d06723fdb"&gt;zb_secur_setup_nwk_key()&lt;/a&gt;?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The callback I mentioned is about receiving packet handler.&lt;/p&gt;
&lt;p&gt;2) How can I register callback which handles APS layer packet? I currently handles ZCL packets by the code.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;ZB_AF_SET_ENDPOINT_HANDLER(DOOR_LOCK_ENDPOINT, izs_zcl_cmd_handler);&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;I wants to watch receiving APS ack. The switch key/transport key also are in APS layer.&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1614132572397v1.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1614132826580v2.png" /&gt;&lt;/p&gt;
&lt;p&gt;3) Why switch key mechanism doesn&amp;#39;t work?&lt;/p&gt;
&lt;p&gt;it is zigbee version problem?Is it&amp;nbsp;up to zigbee developer?&lt;/p&gt;
&lt;p&gt;4)&amp;nbsp;&lt;pre class="ui-code" data-mode="text"&gt;zb_af_set_data_indication&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;I used &amp;quot;zb_af_set_data_indication&amp;quot; function which callback when receiving packet is aps data frame type.&lt;/p&gt;
&lt;p&gt;but, I want to callback irrespective of frame type.&lt;/p&gt;
&lt;p&gt;5) Is there packet decryption failed signal?&lt;/p&gt;
&lt;div&gt;&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [ZIGBEE] switch key procedure</title><link>https://devzone.nordicsemi.com/thread/295869?ContentTypeID=1</link><pubDate>Tue, 23 Feb 2021 14:43:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3a5e8f67-ec9b-40ff-83f3-c3d22a92da7e</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I&amp;#39;m not sure what you mean by manipulate refresh key, but for network key switching you can use the function&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/sdk_tz_v4.1.0/group__secur__api.html#ga23f375eb4e96beebeb2f894d06723fdb"&gt;zb_secur_setup_nwk_key()&lt;/a&gt;, which can be used to force the network key switch procedure.&amp;nbsp;I would recommend taking a look at the documentation for&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/sdk_tz_v4.1.0/using_zigbee__z_c_l.html?cp=7_3_3_4_3#using_ZCL_security"&gt;security in the Zigbee SDK&lt;/a&gt;, where&amp;nbsp;you can find more information about the Zigbee network security API.&lt;/p&gt;
&lt;p&gt;You can use the function&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/sdk_tz_v4.1.0/group__zboss__bdb__comm__params.html?cp=7_3_5_1_3_0_4#ga8bf3b3beef192c00bcdca17ad1240921"&gt;zb_bdb_set_legacy_device_support(1)&lt;/a&gt;&amp;nbsp;to disable the trust center require key exchange.&lt;/p&gt;
&lt;p&gt;As for your questions about callback, you can take a look at the information about it in the page about&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/sdk_tz_v4.1.0/zigbee_prog_principles.html?cp=7_3_3_3_0_2_0#zigbee_multitasking_callback"&gt;programming principles in Zigbee&lt;/a&gt;. Also, it depends on what the callback is for. For ZCL commands, you can take a look at the function&amp;nbsp;zcl_device_cb, which you will find in several of the Zigbee examples in the SDK, and you can also find several examples of different callbacks in CLI, specifically in the file zigbee_cli_cmd_zdo.c.&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>