<?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] ZED lost connection param data</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/70857/zigbee-zed-lost-connection-param-data</link><description>SDK: 14.1.0 
 CHIP: nRF52840 
 CONFIG: ZIGBEE&amp;amp;BLE MULTI PROTOCOL 
 
 I wants to keep store zigbee pairing data after reset. 
 I setups like this. 
 
 After joining procedure, I reset my device with nrfjprog -r. 
 until zb_bdb_is_factory_new set 1, zb_bdb_is_factory_new</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 05 Feb 2021 13:58:40 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/70857/zigbee-zed-lost-connection-param-data" /><item><title>RE: [ZIGBEE] ZED lost connection param data</title><link>https://devzone.nordicsemi.com/thread/293120?ContentTypeID=1</link><pubDate>Fri, 05 Feb 2021 13:58:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0e09e304-6ce1-44b4-9bf1-51c5205e4912</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I&amp;#39;ll ask internally about this and come back to you.&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] ZED lost connection param data</title><link>https://devzone.nordicsemi.com/thread/292511?ContentTypeID=1</link><pubDate>Tue, 02 Feb 2021 14:28:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ca2caf59-c2aa-47ad-b6d5-48767c02169c</guid><dc:creator>_maibi</dc:creator><description>&lt;p&gt;I checked log and found that sometimes flash write function called but data is empty.&lt;br /&gt;I added the code to read back flash data after writing flash data in &amp;quot;nrf52_nvram.c&amp;quot; file. &lt;br /&gt;It sometimes doesn&amp;#39;t properly write flash. after reading flash data in 2~3 time, the flash data which read after writing flash is equal to writing data.&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t experienced this issue after adding this code. Would you check up about this?&lt;/p&gt;
&lt;div style="left:455px;position:absolute;top:48px;" 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] ZED lost connection param data</title><link>https://devzone.nordicsemi.com/thread/292496?ContentTypeID=1</link><pubDate>Tue, 02 Feb 2021 13:40:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9f061115-0856-4813-8fbd-25de0084d900</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Are you still experiencing issues with this? Did adding bdb_load_factory_new_flag change anything at all?&lt;/p&gt;
[quote user="_maibi"]I wants to know data structure of read/write flash data.[/quote]
&lt;p&gt;&amp;nbsp;For this, you should look at the&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/sdk_tz_v4.1.0/group__zboss__nvram.html"&gt;NVRAM&lt;/a&gt;, which handles the flash in the Zigbee SDK. You can use&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/sdk_tz_v4.1.0/group__zboss__nvram.html#ga9b7d69b8b9f515b2eaf8807d09068bdd"&gt;zb_nvram_write_dataset&lt;/a&gt;&amp;nbsp;to write to flash. You can also read about&amp;nbsp; &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_tz_v4.1.0/zigbee_mem_cfg_feature_flash.html"&gt;Zigbee stack flash usage configuration&lt;/a&gt;&amp;nbsp;and the&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/sdk_tz_v4.1.0/zigbee_zboss_330_updates.html?cp=7_3_3_0_0_0#zigbee_zboss_330_updates_nvram_update"&gt;new NVRAM API in v4.0.0 of the SDK&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: [ZIGBEE] ZED lost connection param data</title><link>https://devzone.nordicsemi.com/thread/291152?ContentTypeID=1</link><pubDate>Tue, 26 Jan 2021 00:46:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4d37da06-5f36-4765-8ea4-493db1ebae75</guid><dc:creator>_maibi</dc:creator><description>[quote userid="92402" url="~/f/nordic-q-a/70857/zigbee-zed-lost-connection-param-data/291055#291055"]This should be handled by &lt;span&gt;ERASE_PERSISTENT_CONFIG. If it&amp;#39;s set to false, then the network data will not get erased after a power cycle or reboot.&lt;/span&gt;[/quote]
&lt;p&gt;&lt;span&gt;ERASE_PERSISTENT_CONFIG already set false.&lt;/span&gt;&lt;/p&gt;
[quote userid="92402" url="~/f/nordic-q-a/70857/zigbee-zed-lost-connection-param-data/291055#291055"]The function bdb_load_factory_new is a part of the ZBOSS stack where the implementation is unavailable to the user, but if you search for it in the SDK you should still find references to it, and you should be able to use it.[/quote]
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;extern void bdb_load_factory_new_flag(void);


...
bdb_load_factory_new_flag();&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;I add this to the code. but It still be same. I wants to know data structure of read/write flash data.&lt;/p&gt;
[quote userid="92402" url="~/f/nordic-q-a/70857/zigbee-zed-lost-connection-param-data/291055#291055"]Could you please try calling it before zb_bdb_is_factory_new and see if you get the correct value from&amp;nbsp;zb_bdb_is_factory_new&amp;nbsp;then, and if your device is able to rejoin?[/quote]
&lt;p&gt;&lt;span&gt;Yes, If&amp;nbsp;zb_bdb_is_factory_new&amp;nbsp;returns 0, zed is always successfully rejoined.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [ZIGBEE] ZED lost connection param data</title><link>https://devzone.nordicsemi.com/thread/291055?ContentTypeID=1</link><pubDate>Mon, 25 Jan 2021 13:56:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:42058b95-55e6-42df-aa16-ccf17d4aa2a1</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user=""]I wants to keep store zigbee pairing data after reset.[/quote]
&lt;p&gt;&amp;nbsp;This should be handled by &lt;span&gt;ERASE_PERSISTENT_CONFIG. If it&amp;#39;s set to false, then the network data will not get erased after a power cycle or reboot. The device will remember things such as PAN ID, Extended PAN ID, network address, and security key and will be able to rejoing silently to the network after reset. This information is stored in the&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/sdk_tz_v4.1.0/group__zboss__nvram.html"&gt;NVRAM&lt;/a&gt;. So it should work in your case, and&amp;nbsp;zb_bdb_is_factory_new should return 0. The function bdb_load_factory_new is a part of the ZBOSS stack where the implementation is unavailable to the user, but if you search for it in the SDK you should still find references to it, and you should be able to use it. Could you please try calling it before zb_bdb_is_factory_new and see if you get the correct value from&amp;nbsp;zb_bdb_is_factory_new&amp;nbsp;then, and if your device is able to rejoin?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;If this doesn&amp;#39;t fix your problem, got you please get a&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/sdk_tz_v4.1.0/nrf802154_sniffer.html"&gt;sniffer log&lt;/a&gt;&amp;nbsp;and attach it here as a pcac file?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Marte&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>