<?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>[nRF52840 + zigbee ] ZED cannot join to ZC sometimes.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/50665/nrf52840-zigbee-zed-cannot-join-to-zc-sometimes</link><description>Hi, 
 I am on verifying long run test. 
 
 environment 
 SDK : v3.1.0 
 PS storage : not erase (ZB_FALSE); ==&amp;gt; zigbee_erase_persistent_storage(ZB_FALSE); 
 ZC ---------------------------------ZED 
 Phenomenon: 
 I reset ZED continuously. 
 ZED joins ZC</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 19 Sep 2019 08:49:51 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/50665/nrf52840-zigbee-zed-cannot-join-to-zc-sometimes" /><item><title>RE: [nRF52840 + zigbee ] ZED cannot join to ZC sometimes.</title><link>https://devzone.nordicsemi.com/thread/210636?ContentTypeID=1</link><pubDate>Thu, 19 Sep 2019 08:49:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ee5a9607-9939-4c43-af51-6b590c0e1786</guid><dc:creator>Marjeris Romero</dc:creator><description>&lt;p&gt;You should start sniffing before the TC link key exchange between the two nodes, Wireshark will then automatically decode the packets after the joining process is completed.&lt;/p&gt;
&lt;p&gt;Please take a look at section 10.3.2 Adding a new node into the network in the &lt;a href="https://zigbee.org/download/zigbee-3-0-base-device-behavior-specification/"&gt;Zigbee Base Device Specification&lt;/a&gt; for more information about how the TC link key exchange happens. See item 5 and 6 under section 10.3.2:&lt;/p&gt;
&lt;p&gt;&lt;em&gt;5. If bdbJoinUsesInstallCodeKey is equal to FALSE and bdbJoiningNodeEui64 does not correspond to an entry in apsDeviceKeyPairSet, the Trust Center SHALL add an entry into its AIB apsDeviceKeyPairSet with the DeviceAddress parameter set to bdbJoiningNodeEui64 and the LinkKey value set to the default global Trust Center link key (“ZigBeeAlliance09”). &lt;/em&gt;&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;&lt;em&gt;a. The apsLinkKeyType of that entry SHALL be set to 0x01 (Global). See Table 4.39 in [R1]. &lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;6. The Trust Center SHALL transport the network key to the joining node by issuing the APSME-TRANSPORT-KEY.request primitive to the APSME encrypted with the LinkKey value of the apsDeviceKeyPairSet entry corresponding to the joining node.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;When sniffing you can take a look at the Zigbee Security Header inside a packet after joining procedure, also take a look at the content on the Transport Key frame.&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/420x240/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-9527182db9b44821987dd5bde7f735b5/pastedimage1568882749596v3.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [nRF52840 + zigbee ] ZED cannot join to ZC sometimes.</title><link>https://devzone.nordicsemi.com/thread/209864?ContentTypeID=1</link><pubDate>Mon, 16 Sep 2019 13:46:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1b72555b-2e09-4ce2-a6d0-74bbcddab4b1</guid><dc:creator>embedholic</dc:creator><description>&lt;p&gt;Could you let me know what the network key is ?&lt;/p&gt;
&lt;p&gt;Do you mean &amp;quot;start sniffing before the new network is formed&amp;quot;&amp;nbsp; that i shall run wireshark before ZC start with&amp;nbsp;&lt;span&gt;zigbee_erase_persistent_storage TRUE?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I will try tha again.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thanks.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [nRF52840 + zigbee ] ZED cannot join to ZC sometimes.</title><link>https://devzone.nordicsemi.com/thread/209852?ContentTypeID=1</link><pubDate>Mon, 16 Sep 2019 13:16:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:38ce489d-f88a-4fcb-a348-607a435708ff</guid><dc:creator>Marjeris Romero</dc:creator><description>[quote user="embedholic"]ZED runs well without fails but ZC somethimes get strange signal and can not accept more&amp;nbsp;[/quote]
&lt;p&gt;&amp;nbsp;Which strange signal? &lt;/p&gt;
&lt;p&gt;The sniffer log you provided had some encrypted payload we could not decipher since you didn&amp;#39;t provide a network key.&lt;/p&gt;
&lt;p&gt;You can also try to start sniffing before the new network is formed.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [nRF52840 + zigbee ] ZED cannot join to ZC sometimes.</title><link>https://devzone.nordicsemi.com/thread/209739?ContentTypeID=1</link><pubDate>Mon, 16 Sep 2019 03:10:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1d7096bd-41e9-4d58-a544-b65c114406e0</guid><dc:creator>embedholic</dc:creator><description>&lt;p&gt;I missed your reply. and i didnot solve the problem yet.&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t use multiprotocol.&lt;/p&gt;
&lt;p&gt;I modified the bulb example.&lt;/p&gt;
&lt;p&gt;I modified ZB_ZCL_ON_OFF_SEND_REQ macro to carry user data(16 bytes) as follows.&lt;/p&gt;
&lt;p&gt;ZED wakes up and send ZB_ZCL_ON_OFF_SEND_REQ when external event(door open interrupt)&lt;/p&gt;
&lt;p&gt;and enter system off.&lt;/p&gt;
&lt;p&gt;ZED runs well without fails but ZC somethimes get strange signal and can not accept more&amp;nbsp;&lt;/p&gt;
&lt;p&gt;join request.&lt;/p&gt;
&lt;p&gt;I expained this first post.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;#define my_ZB_ZCL_ON_OFF_SEND_REQ(node_msg, \&lt;br /&gt; buffer, addr, dst_addr_mode, dst_ep, ep, prof_id, dis_default_resp, command_id, cb) \&lt;br /&gt;{ \&lt;br /&gt; zb_uint8_t* ptr = ZB_ZCL_START_PACKET_REQ(buffer) \&lt;br /&gt; ZB_ZCL_CONSTRUCT_SPECIFIC_COMMAND_REQ_FRAME_CONTROL(ptr, dis_default_resp) \&lt;br /&gt; ZB_ZCL_CONSTRUCT_COMMAND_HEADER_REQ(ptr, ZB_ZCL_GET_SEQ_NUM(), command_id); \&lt;br /&gt; ZB_ZCL_PACKET_PUT_DATA8(ptr, node_msg[0]); \&lt;br /&gt; ZB_ZCL_PACKET_PUT_DATA8(ptr, node_msg[1]); \&lt;br /&gt; ZB_ZCL_PACKET_PUT_DATA8(ptr, node_msg[2]); \&lt;br /&gt; ZB_ZCL_PACKET_PUT_DATA8(ptr, node_msg[3]); \&lt;br /&gt; ZB_ZCL_PACKET_PUT_DATA8(ptr, node_msg[4]); \&lt;br /&gt; ZB_ZCL_PACKET_PUT_DATA8(ptr, node_msg[5]); \&lt;br /&gt; ZB_ZCL_PACKET_PUT_DATA8(ptr, node_msg[6]); \&lt;br /&gt; ZB_ZCL_PACKET_PUT_DATA8(ptr, node_msg[7]); \&lt;br /&gt; ZB_ZCL_PACKET_PUT_DATA8(ptr, node_msg[8]); \&lt;br /&gt; ZB_ZCL_PACKET_PUT_DATA8(ptr, node_msg[9]); \&lt;br /&gt; ZB_ZCL_PACKET_PUT_DATA8(ptr, node_msg[10]); \&lt;br /&gt; ZB_ZCL_PACKET_PUT_DATA8(ptr, node_msg[11]); \&lt;br /&gt; ZB_ZCL_PACKET_PUT_DATA8(ptr, node_msg[12]); \&lt;br /&gt; ZB_ZCL_PACKET_PUT_DATA8(ptr, node_msg[13]); \&lt;br /&gt; ZB_ZCL_PACKET_PUT_DATA8(ptr, node_msg[14]); \&lt;br /&gt; ZB_ZCL_PACKET_PUT_DATA8(ptr, node_msg[15]); \&lt;br /&gt; ZB_ZCL_FINISH_PACKET(buffer, ptr) \&lt;br /&gt; ZB_ZCL_SEND_COMMAND_SHORT( \&lt;br /&gt; buffer, addr, dst_addr_mode, dst_ep, ep, prof_id, ZB_ZCL_CLUSTER_ID_ON_OFF , cb); \&lt;br /&gt;}&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [nRF52840 + zigbee ] ZED cannot join to ZC sometimes.</title><link>https://devzone.nordicsemi.com/thread/207129?ContentTypeID=1</link><pubDate>Fri, 30 Aug 2019 11:48:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d4900d19-866c-47cc-af70-4de55a33083b</guid><dc:creator>Marjeris Romero</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;div&gt;
&lt;p&gt;Sorry for the late reply, I should have asked about this before, but could you provide network key or other security material, so we can decipher the traffic dump?&lt;/p&gt;
&lt;p&gt;And are there any multiprotocol devices involved?&lt;/p&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [nRF52840 + zigbee ] ZED cannot join to ZC sometimes.</title><link>https://devzone.nordicsemi.com/thread/204591?ContentTypeID=1</link><pubDate>Sat, 17 Aug 2019 14:23:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a9f8e9df-e637-466e-b33e-5e39dd351891</guid><dc:creator>embedholic</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Is there no news about the problem?&lt;/p&gt;
&lt;p&gt;The problem occures frequently when ZC&amp;#39;s turn on time is long.(one day or more).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [nRF52840 + zigbee ] ZED cannot join to ZC sometimes.</title><link>https://devzone.nordicsemi.com/thread/202630?ContentTypeID=1</link><pubDate>Tue, 06 Aug 2019 12:58:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6577b47f-8831-4b26-9f72-0967445996c3</guid><dc:creator>embedholic</dc:creator><description>&lt;p&gt;Thanks..&amp;nbsp;&lt;/p&gt;
&lt;p&gt;When ZED cannot join, Unhandled signal 16,17 occured.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [nRF52840 + zigbee ] ZED cannot join to ZC sometimes.</title><link>https://devzone.nordicsemi.com/thread/202626?ContentTypeID=1</link><pubDate>Tue, 06 Aug 2019 12:55:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:08f1419e-941b-490f-8d13-dd67bbf84178</guid><dc:creator>Marjeris Romero</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I will need to consult with our developers about this issue. Please be patient.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Marjeris&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>