<?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>Questions about Interactive pyaci</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/40111/questions-about-interactive-pyaci</link><description>Hi, 
 I&amp;#39;m testing an interactive pyaci example in Mesh SDK v2.2.0 with two nRF52DK boards. 
 Interactive mesh provisioning and configuration example worked fine so I modified the element index of GenericOnOffServer to 1 in light switch sever (not proxy</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 20 Dec 2018 00:51:20 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/40111/questions-about-interactive-pyaci" /><item><title>RE: Questions about Interactive pyaci</title><link>https://devzone.nordicsemi.com/thread/162571?ContentTypeID=1</link><pubDate>Thu, 20 Dec 2018 00:51:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a1d2719a-972c-4349-9b8b-1dc6f082868c</guid><dc:creator>kenjiume</dc:creator><description>&lt;p&gt;OK, Thanks!&lt;/p&gt;
&lt;p&gt;Kenji&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Questions about Interactive pyaci</title><link>https://devzone.nordicsemi.com/thread/162504?ContentTypeID=1</link><pubDate>Wed, 19 Dec 2018 12:56:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a1bd91c7-7897-4fdb-88da-88b48c7c5854</guid><dc:creator>Mttrinh</dc:creator><description>&lt;p&gt;Yes, that is correct.&lt;/p&gt;
&lt;p&gt;Unfortunately, we don&amp;#39;t have any functions that does that.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Questions about Interactive pyaci</title><link>https://devzone.nordicsemi.com/thread/162393?ContentTypeID=1</link><pubDate>Wed, 19 Dec 2018 00:48:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:deffb391-3344-4936-9296-6c6aba410784</guid><dc:creator>kenjiume</dc:creator><description>&lt;p&gt;Hi Mttrinh,&lt;/p&gt;
&lt;p&gt;Ah.. OK, That means I have to call cmd.DevkeyAdd() function directly in my class and get its return value as devkey_handle, right?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If I utilize Provisioner class which Nordic provides, I think I need a function which can convert devkey to devkey_handle in order to use publish_set(devkey_handle, address_handle) function afterwards. And maybe there are no functions like that.&lt;/p&gt;
&lt;p&gt;Is it correct?&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Kenji&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Questions about Interactive pyaci</title><link>https://devzone.nordicsemi.com/thread/162231?ContentTypeID=1</link><pubDate>Tue, 18 Dec 2018 09:31:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:989a9e81-c5d1-443b-a9fb-2fee072a57c4</guid><dc:creator>Mttrinh</dc:creator><description>&lt;p&gt;You will probably have to delete the device key first and then re-add the device key to get the handle.&lt;/p&gt;
&lt;p&gt;If you reboots the serial device and there is no persistent storage, you will have to re-add the key anyways, and you will be able to obtain the handle at that time.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Questions about Interactive pyaci</title><link>https://devzone.nordicsemi.com/thread/160863?ContentTypeID=1</link><pubDate>Mon, 10 Dec 2018 03:48:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b813454d-7fef-4d61-8f5b-4a827afa9ecb</guid><dc:creator>kenjiume</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Sorry for late reply. I confirmed your command and it works fine!&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Kenji&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Questions about Interactive pyaci</title><link>https://devzone.nordicsemi.com/thread/160862?ContentTypeID=1</link><pubDate>Mon, 10 Dec 2018 03:44:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2074b909-91c0-4ad5-92ce-87f8960635a7</guid><dc:creator>kenjiume</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I was able to find some keys like &amp;quot;deviceKey&amp;quot; in example_database.json database but&amp;nbsp; their handle values didn&amp;#39;t exist in it.&amp;nbsp; How can I get the devicekey handle from the key? Are there some functionalities to get handle id from its key?&lt;/p&gt;
&lt;p&gt;or, maybe I have to extend Provisioner class in provisioning.py and get info from event_handler()?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Questions about Interactive pyaci</title><link>https://devzone.nordicsemi.com/thread/160197?ContentTypeID=1</link><pubDate>Tue, 04 Dec 2018 12:42:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:832d26fe-5743-4ccc-a67d-50188230e5bc</guid><dc:creator>Mttrinh</dc:creator><description>&lt;p&gt;Not really, but you can look into the pyaci database and you will see the keys.&lt;/p&gt;
&lt;p&gt;You can make your own class and call functions directly from there. It should be possible without the use of iPython.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Questions about Interactive pyaci</title><link>https://devzone.nordicsemi.com/thread/160058?ContentTypeID=1</link><pubDate>Mon, 03 Dec 2018 16:37:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:becea114-e1c4-4d1b-9eb6-85b79eac9744</guid><dc:creator>Mttrinh</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;For it to work you have to manually add the address of the next element before setting the publication for the python OnOff client model.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;So before calling&amp;nbsp;&lt;em&gt;gc.publish_set(0, 0)&lt;/em&gt;, you have to call &lt;strong&gt;&lt;em&gt;d[0].send(cmd.AddrPublicationAdd(db.nodes[0].unicast_address+1))&lt;/em&gt;&lt;/strong&gt;, then set the publication with the new address handle:&amp;nbsp;&lt;strong&gt;&lt;em&gt;gc.publish_set(0, 1)&lt;/em&gt;&lt;/strong&gt;&lt;em&gt;.&lt;/em&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Questions about Interactive pyaci</title><link>https://devzone.nordicsemi.com/thread/159127?ContentTypeID=1</link><pubDate>Tue, 27 Nov 2018 01:08:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ad3c5c57-e028-4a77-8511-2a3d3a186eca</guid><dc:creator>kenjiume</dc:creator><description>&lt;p&gt;Hi Mttrinh,&lt;/p&gt;
&lt;p&gt;OK, please let me know if your dev team find the cause and the solution.&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;One more question,&amp;nbsp; after calling provision() function, we can see devkey and appkey via stdout/stderr message&lt;/p&gt;
&lt;p&gt;on ipython like:&lt;/p&gt;
&lt;p&gt;# DevkeyAdd: {&amp;#39;devkey_handle&amp;#39;: 8}&lt;br /&gt;# AddrPublicationAdd: {&amp;#39;address_handle&amp;#39;: 0}&lt;/p&gt;
&lt;p&gt;Do you have any functions to get those keys directly?&lt;/p&gt;
&lt;p&gt;I&amp;#39;d like to make my own class by python not using ipython (not interactively)&lt;/p&gt;
&lt;p&gt;I mean that I&amp;#39;d like to remove IPython.embed() in interactive_pyaci.py and then&lt;/p&gt;
&lt;p&gt;call provision and some configuration functions directly from my own class.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks again,&lt;/p&gt;
&lt;p&gt;Kenji&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Questions about Interactive pyaci</title><link>https://devzone.nordicsemi.com/thread/158633?ContentTypeID=1</link><pubDate>Thu, 22 Nov 2018 12:56:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e53ac5ac-7613-4b49-8580-04ae6f75e9f8</guid><dc:creator>Mttrinh</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I have forwarded this to one of our developer, I will update you when I get a response from him.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Questions about Interactive pyaci</title><link>https://devzone.nordicsemi.com/thread/157153?ContentTypeID=1</link><pubDate>Tue, 13 Nov 2018 15:33:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6ab60149-1996-49a9-b5e8-151f6f44e989</guid><dc:creator>Mttrinh</dc:creator><description>&lt;p&gt;I&amp;#39;m not able to see what is wrong. I will try this on my side and see if I can find where the issue is.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Questions about Interactive pyaci</title><link>https://devzone.nordicsemi.com/thread/156559?ContentTypeID=1</link><pubDate>Fri, 09 Nov 2018 01:04:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3386ec41-7e38-4583-9665-b6f7ee10fb41</guid><dc:creator>kenjiume</dc:creator><description>&lt;p&gt;Hi Mttrinh,&lt;/p&gt;
&lt;p&gt;Thanks for your explanation about publish_set function.&lt;/p&gt;
&lt;p&gt;So, are there any wrong settings or commands about&amp;nbsp; my code?&lt;/p&gt;
&lt;p&gt;I just changed element index 0 of GenericOnOffClient and Server to 1.&lt;/p&gt;
&lt;p&gt;Those are 3 changes as follows:&lt;/p&gt;
&lt;p&gt;- ACCESS_ELEMENT_COUNT (2)&lt;/p&gt;
&lt;p&gt;- app_onoff_init(&amp;amp;m_onoff_server_0, 1)&lt;/p&gt;
&lt;p&gt;- cc.model_app_bind(db.nodes[0].unicast_address+1, 0, mt.ModelId(0x1000))&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Any other commands are same as a nordic example ( interactive mesh provisioning and configuration ).&lt;/p&gt;
&lt;p&gt;I would appreciate if you could indicate the wrong points.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Kenji&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Questions about Interactive pyaci</title><link>https://devzone.nordicsemi.com/thread/156458?ContentTypeID=1</link><pubDate>Thu, 08 Nov 2018 10:10:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ce072a87-e6d1-48ce-ae01-37dbc3a4bf2f</guid><dc:creator>Mttrinh</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The parameter for the publish_set function is key_handle and address_handle. The key_handle parameter can be either application or device key handle.&amp;nbsp;Note that these are handles and not the actual values. Handles are obtained elsewhere.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>