<?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>Some questions about provisioning with PyACI</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/53613/some-questions-about-provisioning-with-pyaci</link><description>Hi, Team 
 Premise: Currently, I&amp;#39;m trying provisioning using PyACI. (I considered switching the provisioning method because in the provisioner sample of light_switch, I think that the degree of freedom is not high due to the maximum number of devices</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 30 Oct 2019 09:24:49 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/53613/some-questions-about-provisioning-with-pyaci" /><item><title>RE: Some questions about provisioning with PyACI</title><link>https://devzone.nordicsemi.com/thread/217465?ContentTypeID=1</link><pubDate>Wed, 30 Oct 2019 09:24:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:80f712a1-791f-4f6f-a9de-1fba556b6341</guid><dc:creator>wataru_m</dc:creator><description>&lt;p&gt;Hi Hung,&lt;br /&gt;&lt;br /&gt;Thank you for your suggestions.&lt;br /&gt;I will try the proposed method, and I will come back if I have any questions!&lt;br /&gt;In that case, please help to solve it again.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Wataru&lt;/p&gt;
&lt;div class="frame"&gt;
&lt;div class="page tlid-homepage homepage translate-text"&gt;
&lt;div class="homepage-content-wrap"&gt;
&lt;div class="tlid-source-target main-header"&gt;
&lt;div class="source-target-row"&gt;
&lt;div class="tlid-input input"&gt;
&lt;div class="tlid-language-bar ls-wrap"&gt;
&lt;div class="sl-wrap"&gt;
&lt;div class="sl-more tlid-open-source-language-list"&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Some questions about provisioning with PyACI</title><link>https://devzone.nordicsemi.com/thread/217456?ContentTypeID=1</link><pubDate>Wed, 30 Oct 2019 08:45:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:059d47d8-dcd0-46fb-96ad-2d87ad462a56</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Wataru,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Yes, in my opinion your understanding is correct. Unfortunately, I haven&amp;#39;t tried myself here to do what you want to achieve. I would suggest you to try and if you have any problem, please let me know we can try to solve.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Some questions about provisioning with PyACI</title><link>https://devzone.nordicsemi.com/thread/217422?ContentTypeID=1</link><pubDate>Wed, 30 Oct 2019 02:11:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:357dc583-0d2b-460f-a732-d4f11b05be61</guid><dc:creator>wataru_m</dc:creator><description>&lt;p&gt;Hi Hung,&lt;br /&gt;&lt;br /&gt;I&amp;#39;m sorry, I&amp;#39;m getting a little confused.&lt;/p&gt;
[quote userid="2121" url="~/f/nordic-q-a/53613/some-questions-about-provisioning-with-pyaci/216676"]It&amp;#39;s not designed to be a production tool that you can use out of the box.[/quote]
&lt;p&gt;You had said before as above.&lt;br /&gt;&lt;br /&gt;However, in fact, I think that it might could be said that it is designed as a ready-to-use tool, except that there is no Python script that automatically adds each handle or key to nrf52 from the json file. Isn&amp;rsquo;t it?&lt;br /&gt;&lt;br /&gt;I interpreted that it would be fine if I was not burdened to operate PyACI by manually adding the information to nrf52 or extracting some key etc. which I need from previous LOG information &amp;nbsp;(of course manually).&lt;br /&gt;&lt;br /&gt;If my interpretation is correct, the proposed # 2 approach can certainly be avoided.&lt;br /&gt;In fact, I couldn&amp;#39;t imagine that it would require such a big fix...&lt;br /&gt;&lt;br /&gt;For a while, I don&amp;#39;t think I need to worry about the upper limit of the database information that can be stored in nrf52.&lt;br /&gt;(For now, there are no plans to build a large network of hundreds or thousands yet.)&lt;br /&gt;&lt;br /&gt;Am I overlooking something?&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Wataru&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Some questions about provisioning with PyACI</title><link>https://devzone.nordicsemi.com/thread/217276?ContentTypeID=1</link><pubDate>Tue, 29 Oct 2019 09:50:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:211cdb7a-7739-462a-9c00-9abf2bb87c99</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Wataru,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;For approach #1, keeping the dsm, I don&amp;#39;t think you would need to modify the code (in nRF52 and pyACI). I haven&amp;#39;t tried myself but my understanding is that you need to add the address, the device key, to the nRF52 to restore the database. What is missing is the code in python to automate the process.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;For approach #2, removing the dsm,&amp;nbsp;the part that affect is not provisioning part but the configuration part where we use the configuration client to configure the server on the provisionee. The modification would require large code modification of the access layer and the model layer. I would suggest to go for approach #1. If it works for you we can avoid spending too much work on approach #2.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Some questions about provisioning with PyACI</title><link>https://devzone.nordicsemi.com/thread/217241?ContentTypeID=1</link><pubDate>Tue, 29 Oct 2019 07:42:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7b3da0c0-68c5-455d-bec6-687a8342221d</guid><dc:creator>wataru_m</dc:creator><description>&lt;p&gt;Hi Hung,&lt;br /&gt;&lt;br /&gt;I see, thank you.&lt;br /&gt;It might be an extreme analogy, but let me know if I&amp;#39;m wrong.&amp;nbsp; &lt;br /&gt;Even, I am not thinking this is the best policy (In the sense that using DSM,).&lt;br /&gt;&lt;br /&gt;Assuming I have a .json file with mesh network information.&lt;br /&gt;If I want to reconfigure a node who participating in the network,&lt;br /&gt;or if I want to add a new device to the network,&lt;br /&gt;It may be no problem to prepare a new NRF52 which flashed mesh serial project each time and restore the database to NRF52.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;I agree with your opinion.&lt;br /&gt;I know I need to refactor, but I don&amp;#39;t have any idea at the moment which source files are for.&lt;br /&gt;&lt;br /&gt;Are the files listed in the &amp;quot;Serial&amp;quot; folder and the files listed in the &amp;quot;Provisioning&amp;quot; folder in the .emProject file subject to editing?&lt;br /&gt;&lt;br /&gt;I also need to edit other Python files, right?&lt;br /&gt;I think it will take time, but I would like to achieve this if possible.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Wataru&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Some questions about provisioning with PyACI</title><link>https://devzone.nordicsemi.com/thread/217072?ContentTypeID=1</link><pubDate>Mon, 28 Oct 2019 12:45:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:005fe4d0-02f2-4268-9cdd-160f77bbb8a8</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Wataru,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;1. I don&amp;#39;t see any problem if the keys being added and rejected.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;2. We currently don&amp;#39;t have an example or discussion on how to achieve that.&amp;nbsp;Actually it&amp;#39;s possible to restore the database in the NRF52, you would need to call&amp;nbsp;AddrPublicationAdd,&amp;nbsp;DevkeyAdd etc, to add the keys/address back to the database on the nRF52. The draw back is that there is a limitation of the size of the database on the NRF52.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The better solution in my opinion is to avoid using the dsm database on the NRF52. What the NRF52 does is to simple do the provisioning and send the information, handle, keys back to PC without storing any handle. But this would require refactoring the code of the serial example, the provisioner etc.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Some questions about provisioning with PyACI</title><link>https://devzone.nordicsemi.com/thread/216976?ContentTypeID=1</link><pubDate>Mon, 28 Oct 2019 00:50:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:60396265-4afe-4d9d-ac93-df942a1fb032</guid><dc:creator>wataru_m</dc:creator><description>&lt;p&gt;Hi, Hung&lt;br /&gt;&lt;br /&gt;Thank you for your reply.&lt;br /&gt;&lt;br /&gt;1.&amp;nbsp;&amp;nbsp;Is it safe to assume that doing this is not a problem just because you don&amp;#39;t expect the key to be added again?&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Without this process, I think that no other way to add devices to the network when using PyACI.&lt;br /&gt;&lt;br /&gt;2, 3, 4.&amp;nbsp;&amp;nbsp;PyACI misunderstood that it was provided as an out-of-the-box production tool.&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Sorry, I&amp;#39;ve gone and jumped to conclusions.&lt;br /&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;I want to move dsm database to a PC, in other words,&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;try an approach that can manage network information with a single database (On PC),&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;but what kind of place should be reconsidered specifically? Are there any hints?&lt;br /&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Or, if such discussions and examples are already handled in some DevZone cases, etc.,&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;I would appreciate it if you could give me that information.&lt;br /&gt;&lt;br /&gt;5.&amp;nbsp;Thank you, I was relieved that my understanding was correct.&lt;br /&gt;&amp;nbsp; &amp;nbsp; I will keep that (cannnot change or add keys) in mind.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Wataru&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Some questions about provisioning with PyACI</title><link>https://devzone.nordicsemi.com/thread/216676?ContentTypeID=1</link><pubDate>Thu, 24 Oct 2019 15:15:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a1471d55-74c4-4319-862d-ea008e4cab88</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Wataru,&lt;/p&gt;
&lt;p&gt;1. I think this is related to that the nRF52 serial firmware doesn&amp;#39;t expect that the COM port will opened again and the keys to be added again.&lt;/p&gt;
&lt;p&gt;2&amp;amp;3. Also related to #1, the PyACI is made as an demonstration of what you can do with the serial firmware. It&amp;#39;s not designed to be a production tool that you can use out of the box. So there are 2 places that the database is stored. One is in the .json file and one inside the &lt;span&gt;nRF52840. Unfortunately, we haven&amp;#39;t got the option to restore the database on the nRF52840 after it&amp;#39;s reset or if you want to copy the database to other board. This explains the behaviour you see with devkey_handle and address_handle in #3. Or when you reset the board, you won&amp;#39;t be able to access those device/handles that you provisioned before.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Devkey can&amp;#39;t be readded, different to publication address, we don&amp;#39;t have a mechanism to check if the address is already added to the database.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;4. This also related to what I described in 2&amp;amp;3, the database is stored in both the nRF52 device and on PC. The configuration on nRF52 is hardcoded and can&amp;#39;t be changed dynamically.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The solution for all of this is&amp;nbsp;in my opinion is to make a different version of serial firmware that&amp;nbsp;move the location of dsm database from the nRF52 to PC. And the nRF52 would need to access PC to get the database for example the handle of the address, device key. This way it would work when resetting the board, multiple boards, etc.&amp;nbsp;&lt;/span&gt;&lt;span&gt;Unfortunately, we don&amp;#39;t have the code example doing this yet.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;5. Yes you are correct. You can modify the appkey and netkey on your own. It&amp;#39;s added at the beginning when you open the COM port but can&amp;#39;t be added twice or modify as in #1.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>