<?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>Q:When i reboot the board which burn the serial project , how to add the device key to serial board again?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/36073/q-when-i-reboot-the-board-which-burn-the-serial-project-how-to-add-the-device-key-to-serial-board-again</link><description>Hi all: 
 Q:When i reboot the board which burn the serial project , how to add the device key to serial board again? 
 I use PYACI to control the board which burn the serial code 
 SDK for mesh:v2.0.1 
 
 Best regard.</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 31 Jul 2018 08:54:59 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/36073/q-when-i-reboot-the-board-which-burn-the-serial-project-how-to-add-the-device-key-to-serial-board-again" /><item><title>RE: Q:When i reboot the board which burn the serial project , how to add the device key to serial board again?</title><link>https://devzone.nordicsemi.com/thread/142099?ContentTypeID=1</link><pubDate>Tue, 31 Jul 2018 08:54:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:59e58a5f-861b-4487-a185-8c576b9f75ee</guid><dc:creator>Nicklaus</dc:creator><description>&lt;p&gt;it will take more than one minute,yes I have&amp;nbsp;&lt;span&gt;PERSISTENT_STORAGE enabled on the server too,and demo as the usage of &lt;a href="http://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.meshsdk.v2.0.1%2Fmd_scripts_interactive_pyaci_doc_demo_configuration.html&amp;amp;cp=4_1_0_2_0_2"&gt;PYACI&lt;/a&gt;&amp;nbsp;guide ,the sdk is&amp;nbsp;&lt;a id="resource-download-link62721-43-46838397" href="https://www.nordicsemi.com/eng/nordic/download_resource/62721/43/46838397/126781" rel="noopener noreferrer" target="_blank"&gt;nRF5-SDK-for-Mesh&lt;/a&gt;&amp;nbsp;2.1.1.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I will try your suggest latter on,and&amp;nbsp;&lt;/span&gt;&lt;span&gt;thanks a lots again for your kindly reply!&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regard!&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Q:When i reboot the board which burn the serial project , how to add the device key to serial board again?</title><link>https://devzone.nordicsemi.com/thread/142088?ContentTypeID=1</link><pubDate>Tue, 31 Jul 2018 08:28:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d19fd248-82a0-4afd-a60d-a9cc50b0ab69</guid><dc:creator>Bj&amp;#248;rn Kvaale</dc:creator><description>&lt;p&gt;How long does it take? I guess you have PERSISTENT_STORAGE enabled on the server too, right? You are still only using the serial example &amp;amp; the server example, correct? Could you try with the latest mesh sdk &amp;amp; see if that helps? Not sure it will help, but could be worth a shot.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Q:When i reboot the board which burn the serial project , how to add the device key to serial board again?</title><link>https://devzone.nordicsemi.com/thread/141630?ContentTypeID=1</link><pubDate>Fri, 27 Jul 2018 08:32:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:45bfd650-629c-4191-a185-fd9c3814c90b</guid><dc:creator>Nicklaus</dc:creator><description>&lt;p&gt;thank you for your replied,I&amp;#39;ve done the step as your suggestion&lt;/p&gt;
&lt;p&gt;then I found one new problem is that when I reboot the serial then I reboot the server node ,it can control the server immediately. But if I don&amp;#39;t reboot the sever node,it will take a long time to control the server node light On/Off.&lt;/p&gt;
&lt;p&gt;Dose&amp;nbsp;someone have meet the same problem before?&lt;/p&gt;
&lt;p&gt;thanks !&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Q:When i reboot the board which burn the serial project , how to add the device key to serial board again?</title><link>https://devzone.nordicsemi.com/thread/141318?ContentTypeID=1</link><pubDate>Wed, 25 Jul 2018 12:24:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:72707afa-4f0a-4ebc-b1ea-559db60ff44d</guid><dc:creator>Bj&amp;#248;rn Kvaale</dc:creator><description>&lt;p&gt;Sorry for the delayed response. Just finished testing: everything works fine if you follow &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.meshsdk.v2.0.1/md_scripts_interactive_pyaci_doc_demo_configuration.html?cp=4_1_0_2_0_2"&gt;the guide&lt;/a&gt; like stated until sc.set(True). I tested with one serial board &amp;amp; one light switch server board. Remember to enable PERSISTENT_STORAGE on both examples.&amp;nbsp; Then, power cycle the serial board &amp;amp; enter the following commands:&lt;/p&gt;
&lt;pre&gt;&lt;pre class="ui-code" data-mode="text"&gt;python interactive_pyaci.py -d COM1 --no-logfile
db = MeshDB(&amp;quot;database/example_database.json&amp;quot;)

cc = ConfigurationClient(db)
device.model_add(cc)
cc.publish_set(8, 0)
cc.composition_data_get()
cc.appkey_add(0)
cc.model_app_bind(db.nodes[0].unicast_address, 0, mt.ModelId(0, 0x59))
sc = SimpleOnOffClient()
device.model_add(sc)
sc.publish_set(0, 0)
sc.set(True)&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Since the provisioning has already been done, you do not need to do this part after you&lt;br /&gt;power cycled the serial board. Everything should work fine then.&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Q:When i reboot the board which burn the serial project , how to add the device key to serial board again?</title><link>https://devzone.nordicsemi.com/thread/139698?ContentTypeID=1</link><pubDate>Wed, 11 Jul 2018 11:04:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e36cf163-4e37-47f7-af08-cd5b949b8d69</guid><dc:creator>Nicklaus</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve&amp;nbsp;done all the&amp;nbsp;&lt;span&gt;&amp;nbsp;PYACI&amp;nbsp; need to do and can send the&amp;nbsp;sc.set() command to control the LED OnOff,after that, I reboot the serial board then the issue coming.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Q:When i reboot the board which burn the serial project , how to add the device key to serial board again?</title><link>https://devzone.nordicsemi.com/thread/139441?ContentTypeID=1</link><pubDate>Mon, 09 Jul 2018 14:37:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:13924036-f811-45f9-acf9-ebdac06f50ab</guid><dc:creator>Bj&amp;#248;rn Kvaale</dc:creator><description>&lt;p&gt;At what point did you reboot the serial board? Right after cc.composition_data_get()? Or are you provisioning &amp;amp; configuring the board &amp;amp; getting it to blink the LED first &amp;amp; then resetting the serial board?&lt;/p&gt;
&lt;p&gt;From the commands that you posted in your last comment, it seems you are skipping some code commands. This is why I am wondering how the exact test procedure was.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Q:When i reboot the board which burn the serial project , how to add the device key to serial board again?</title><link>https://devzone.nordicsemi.com/thread/139168?ContentTypeID=1</link><pubDate>Fri, 06 Jul 2018 00:23:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:026efd2f-ea55-4610-8eb6-30096128978c</guid><dc:creator>Nicklaus</dc:creator><description>&lt;p&gt;Hi all,&lt;/p&gt;
&lt;p&gt;Thanks for your answer.&lt;/p&gt;
&lt;p&gt;Now I reboot the serial board, then send PYACI CMD as below:&lt;/p&gt;
&lt;p&gt;1.db = MeshDB(&amp;quot;database/example_database.json&amp;quot;)&lt;/p&gt;
&lt;p&gt;2.p=provisioner(d[0],db)&lt;/p&gt;
&lt;p&gt;3.device.send(cmd.AddrPublicationAdd(db.nodes[0].unicast_address))&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;4. d0=SimpleOnOffClient()&lt;/p&gt;
&lt;p&gt;5. device.model_add(d0)&lt;/p&gt;
&lt;p&gt;6. d0.publish_set(0,0)&lt;/p&gt;
&lt;p&gt;7. d0.set(1)&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;When I send the&amp;nbsp;CMD 1~7&amp;nbsp;&lt;span&gt;as soon as possible, it can&amp;#39;t control the Node&amp;#39;s LED On/Off immediately, but over&amp;nbsp;Ten or two seconds, it can control the LED On/Off normal.What cause the delay?From reboot the serial board, how long can i re-control the node?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Regard&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Q:When i reboot the board which burn the serial project , how to add the device key to serial board again?</title><link>https://devzone.nordicsemi.com/thread/139093?ContentTypeID=1</link><pubDate>Thu, 05 Jul 2018 11:36:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b72de894-c6ab-4a06-9708-f33e12fcfe31</guid><dc:creator>Bj&amp;#248;rn Kvaale</dc:creator><description>&lt;p&gt;This is something the mesh team might consider implementing in the future. For now, what you can do is enable PERSISTENT_STORAGE in the mesh serial example. You should be able to follow the &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.meshsdk.v2.0.1/md_scripts_interactive_pyaci_doc_demo_configuration.html?cp=4_1_0_1_1_3_2"&gt;whole interactive mesh provisioning example&lt;/a&gt;&amp;nbsp;&amp;amp;&amp;nbsp;then power cycle the serial board.&lt;/p&gt;
&lt;p&gt;Another application engineer &amp;amp; I tested by following all of the steps, including cc.composition_data_get(). We used the serial example &amp;amp; a light switch server to test. Then, we power cycled the serial board &amp;amp; ran the following commands:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;python interactive_pyaci.py -d COM1 --no-logfile
db = MeshDB(&amp;quot;database/example_database.json&amp;quot;)
cc = ConfigurationClient(db)
device.model_add(cc)
cc.publish_set(8, 0)
cc.composition_data_get()&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;where 8 is the devkey handle&amp;nbsp;&amp;amp; 0 is the address handle from when you provisioned the first light client (i.e. p.provision(name=&amp;quot;Light bulb&amp;quot;)).&lt;/p&gt;
&lt;p&gt;You may need to update&amp;nbsp;DSM_DEVICE_MAX &amp;amp;&amp;nbsp;DSM_FLASH_PAGE_COUNT, depending on how many devices you want to test with. I would recommend testing with two devices first, as I mentioned above.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>