<?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>Interactive PyACI</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/59632/interactive-pyaci</link><description>I&amp;#39;d be grateful for some assistance with what I may be doing wrong. 
 I have programmed the serial example on a device and the server example on another device. 
 Copied the example_database.backup to example_database.json 
 Then get the following bunch</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 09 Apr 2020 04:09:10 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/59632/interactive-pyaci" /><item><title>RE: Interactive PyACI</title><link>https://devzone.nordicsemi.com/thread/244152?ContentTypeID=1</link><pubDate>Thu, 09 Apr 2020 04:09:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6b870bb1-3643-41c8-b8b7-1bd0be21fca3</guid><dc:creator>John</dc:creator><description>&lt;p&gt;Yes that was certainly the answer.&lt;/p&gt;
&lt;p&gt;Thanks very much&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Interactive PyACI</title><link>https://devzone.nordicsemi.com/thread/243771?ContentTypeID=1</link><pubDate>Tue, 07 Apr 2020 01:32:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eb72e73a-4302-4359-9d4e-fe81a39ef7dc</guid><dc:creator>Sebastien Mackaie</dc:creator><description>&lt;p&gt;John, can you try the following:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Open Windows Control Panel &amp;gt; Program and Features, to check installed JLink tools. Ensure there is only one JLink.&lt;/li&gt;
&lt;li&gt;Open &lt;em&gt;JLink configurator.exe&lt;/em&gt; and connect a 52840 DK. In the list, check the &amp;lsquo;Host Firmware&amp;rsquo; and &amp;lsquo;Emulator Firmware&amp;rsquo; and confirm they are the same. If not the same, right click it and select &amp;lsquo;Replace Firmware&amp;rsquo; or &amp;lsquo;Update Firmware&amp;rsquo; to make them synced.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Here is the screenshot.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/jlink-config.jpg" /&gt;&lt;/p&gt;
&lt;ol start="3"&gt;
&lt;li&gt;Open SDK_Mesh_4.0\scripts\interactive_pyaci\database, make sure he make a fresh &lt;em&gt;example_database.json&lt;/em&gt; for a new test.&lt;/li&gt;
&lt;/ol&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Interactive PyACI</title><link>https://devzone.nordicsemi.com/thread/242826?ContentTypeID=1</link><pubDate>Wed, 01 Apr 2020 05:08:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f6e01e39-2572-46a1-b8ef-95e35eefd9c5</guid><dc:creator>John</dc:creator><description>&lt;p&gt;I&amp;#39;ve downgraded to Jlink 6.54&lt;/p&gt;
&lt;p&gt;As evidenced by the following log things are still not working properly:&lt;/p&gt;
&lt;p&gt;C:\Users\jcris\Desktop\Mesh_V4\nrf5_SDK_for_Mesh_v4.0.0_src\scripts\interactive_pyaci&amp;gt;interactive_pyaci.py -d COM26 --no-logfile&lt;/p&gt;
&lt;p&gt;To control your device, use d[x], where x is the device index.&lt;br /&gt; Devices are indexed based on the order of the COM ports specified by the -d option.&lt;br /&gt; The first device, d[0], can also be accessed using device.&lt;/p&gt;
&lt;p&gt;Type d[x]. and hit tab to see the available methods.&lt;/p&gt;
&lt;p&gt;Python 3.7.4 (tags/v3.7.4:e09359112e, Jul 8 2019, 20:34:20) [MSC v.1916 64 bit (AMD64)]&lt;br /&gt;Type &amp;#39;copyright&amp;#39;, &amp;#39;credits&amp;#39; or &amp;#39;license&amp;#39; for more information&lt;br /&gt;IPython 7.13.0 -- An enhanced Interactive Python. Type &amp;#39;?&amp;#39; for help.&lt;/p&gt;
&lt;p&gt;In [1]: db = MeshDB(&amp;quot;database/example_database.json&amp;quot;)&lt;/p&gt;
&lt;p&gt;In [2]: db.provisioners&lt;br /&gt;Out[2]: [{&amp;#39;name&amp;#39;: &amp;#39;BT Mesh Provisioner&amp;#39;, &amp;#39;UUID&amp;#39;: _UUID(b&amp;#39;\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00&amp;#39;), &amp;#39;allocated_unicast_range&amp;#39;: [{'low_address': 0010, 'high_address': 7fff}], &amp;#39;allocated_group_range&amp;#39;: [{'low_address': c000, 'high_address': feff}]}]&lt;/p&gt;
&lt;p&gt;In [3]: p = Provisioner(device, db)&lt;/p&gt;
&lt;p&gt;In [4]: 2020-04-01 17:44:25,153 - ERROR - COM26: None: ERROR_CMD_UNKNOWN&lt;br /&gt;2020-04-01 17:44:27,153 - INFO - COM26: cmd AddrLocalUnicastSet, timeout waiting for event&lt;br /&gt;2020-04-01 17:44:29,162 - INFO - COM26: cmd SubnetAdd, timeout waiting for event&lt;br /&gt;2020-04-01 17:44:31,177 - INFO - COM26: cmd AppkeyAdd, timeout waiting for event&lt;br /&gt;2020-04-01 17:44:33,192 - INFO - COM26: cmd AppkeyAdd, timeout waiting for event&lt;br /&gt;2020-04-01 17:45:55,982 - ERROR - COM26: Invalid packet: bytearray(b&amp;#39;\x00&amp;#39;)&lt;br /&gt;2020-04-01 17:45:56,399 - INFO - COM26: Device rebooted.&lt;br /&gt;In [4]:&lt;/p&gt;
&lt;p&gt;In [4]: p = Provisioner(device, db)&lt;/p&gt;
&lt;p&gt;In [5]: 2020-04-01 17:46:43,877 - ERROR - COM26: ModelAppGet: ERROR_INVALID_LENGTH&lt;br /&gt;2020-04-01 17:46:43,893 - ERROR - COM26: None: ERROR_CMD_UNKNOWN&lt;br /&gt;2020-04-01 17:46:43,893 - ERROR - COM26: None: ERROR_CMD_UNKNOWN&lt;br /&gt;2020-04-01 17:46:43,893 - INFO - COM26: SubnetAdd: {&amp;#39;subnet_handle&amp;#39;: 0}&lt;br /&gt;2020-04-01 17:46:43,899 - INFO - COM26: AppkeyAdd: {&amp;#39;appkey_handle&amp;#39;: 0}&lt;br /&gt;2020-04-01 17:46:43,899 - INFO - COM26: AppkeyAdd: {&amp;#39;appkey_handle&amp;#39;: 1}&lt;br /&gt;In [5]:&lt;/p&gt;
&lt;p&gt;In [5]: p.scan_start()&lt;/p&gt;
&lt;p&gt;In [6]: 2020-04-01 17:47:21,747 - INFO - COM26: Success&lt;br /&gt;2020-04-01 17:47:22,424 - INFO - COM26: Received UUID 1b49c41c848fe54fb8bb8f146bd04e32 with RSSI: -32 dB&lt;br /&gt;2020-04-01 17:47:22,439 - INFO - COM26: Received UUID 1b49c41c848fe54fb8bb8f146bd04e32 with RSSI: -32 dB&lt;br /&gt;In [6]:&lt;/p&gt;
&lt;p&gt;In [6]: p.scan_stop()&lt;/p&gt;
&lt;p&gt;In [7]: 2020-04-01 17:48:11,116 - INFO - COM26: Success&lt;br /&gt;In [7]:&lt;/p&gt;
&lt;p&gt;In [7]: p.provision(uuid=&amp;quot;1b49c41c848fe54fb8bb8f146bd04e32&amp;quot;,name=&amp;quot;Light bulb&amp;quot;)&lt;/p&gt;
&lt;p&gt;In [8]: 2020-04-01 17:53:56,345 - INFO - COM26: Provision: {&amp;#39;context&amp;#39;: 0}&lt;br /&gt;2020-04-01 17:53:56,392 - INFO - COM26: Link established&lt;br /&gt;2020-04-01 17:53:56,393 - INFO - COM26: Link established&lt;br /&gt;2020-04-01 17:53:56,449 - INFO - COM26: Received capabilities&lt;br /&gt;2020-04-01 17:53:56,451 - INFO - COM26: Number of elements: 1&lt;br /&gt;2020-04-01 17:53:56,453 - INFO - COM26: Received capabilities&lt;br /&gt;2020-04-01 17:53:56,455 - INFO - COM26: Number of elements: 1&lt;br /&gt;2020-04-01 17:53:56,458 - INFO - COM26: OobUse: {&amp;#39;context&amp;#39;: 0}&lt;br /&gt;2020-04-01 17:53:56,460 - ERROR - COM26: OobUse: ERROR_INVALID_STATE&lt;br /&gt;2020-04-01 17:53:56,677 - INFO - COM26: ECDH request received&lt;br /&gt;2020-04-01 17:53:56,680 - INFO - COM26: ECDH request received&lt;br /&gt;2020-04-01 17:53:56,687 - INFO - COM26: EcdhSecret: {&amp;#39;context&amp;#39;: 0}&lt;br /&gt;2020-04-01 17:53:56,691 - ERROR - COM26: EcdhSecret: ERROR_INVALID_STATE&lt;br /&gt;2020-04-01 17:53:57,124 - INFO - COM26: Provisioning complete&lt;br /&gt;2020-04-01 17:53:57,126 - INFO - COM26: Address(es): 0x10-0x10&lt;br /&gt;2020-04-01 17:53:57,129 - INFO - COM26: Device key: ae0186015fc75d35b46cd5fa5ecdca40&lt;br /&gt;2020-04-01 17:53:57,131 - INFO - COM26: Network key: 18eed9c2a56add85049ffc3c59ad0e12&lt;br /&gt;2020-04-01 17:53:57,134 - INFO - COM26: Adding device key to subnet 0&lt;br /&gt;2020-04-01 17:53:57,138 - INFO - COM26: Adding publication address of root element&lt;br /&gt;2020-04-01 17:53:57,141 - ERROR - COM26: Exception in pkt handler &amp;lt;bound method Provisioner.__event_handler of &amp;lt;mesh.provisioning.Provisioner object at 0x0000025DE2E7F688&amp;gt;&amp;gt;&lt;br /&gt;2020-04-01 17:53:57,179 - ERROR - COM26: traceback: Traceback (most recent call last):&lt;br /&gt; File &amp;quot;C:\Users\jcris\Desktop\Mesh_V4\nrf5_SDK_for_Mesh_v4.0.0_src\scripts\interactive_pyaci\aci\aci_uart.py&amp;quot;, line 88, in process_packet&lt;br /&gt; fun(packet)&lt;br /&gt; File &amp;quot;C:\Users\jcris\Desktop\Mesh_V4\nrf5_SDK_for_Mesh_v4.0.0_src\scripts\interactive_pyaci\mesh\provisioning.py&amp;quot;, line 337, in __event_handler&lt;br /&gt; self.store(self.__session_data)&lt;br /&gt; File &amp;quot;C:\Users\jcris\Desktop\Mesh_V4\nrf5_SDK_for_Mesh_v4.0.0_src\scripts\interactive_pyaci\mesh\provisioning.py&amp;quot;, line 346, in store&lt;br /&gt; self.prov_db.nodes.append(mt.Node(**self.__session_data))&lt;br /&gt;TypeError: __init__() missing 5 required positional arguments: &amp;#39;UUID&amp;#39;, &amp;#39;unicast_address&amp;#39;, &amp;#39;net_keys&amp;#39;, &amp;#39;config_complete&amp;#39;, and &amp;#39;security&amp;#39;&lt;/p&gt;
&lt;p&gt;2020-04-01 17:53:57,184 - INFO - COM26: Provisioning complete&lt;br /&gt;2020-04-01 17:53:57,185 - INFO - COM26: Address(es): 0x10-0x10&lt;br /&gt;2020-04-01 17:53:57,186 - INFO - COM26: Device key: ae0186015fc75d35b46cd5fa5ecdca40&lt;br /&gt;2020-04-01 17:53:57,188 - INFO - COM26: Network key: 18eed9c2a56add85049ffc3c59ad0e12&lt;br /&gt;2020-04-01 17:53:57,189 - INFO - COM26: Adding device key to subnet 0&lt;br /&gt;2020-04-01 17:53:57,190 - INFO - COM26: Adding publication address of root element&lt;br /&gt;2020-04-01 17:53:57,195 - INFO - COM26: DevkeyAdd: {&amp;#39;devkey_handle&amp;#39;: 8}&lt;br /&gt;2020-04-01 17:53:57,197 - INFO - COM26: AddrPublicationAdd: {&amp;#39;address_handle&amp;#39;: 0}&lt;br /&gt;2020-04-01 17:53:57,201 - ERROR - COM26: DevkeyAdd: ERROR_REJECTED&lt;br /&gt;2020-04-01 17:53:57,206 - INFO - COM26: AddrPublicationAdd: {&amp;#39;address_handle&amp;#39;: 0}&lt;br /&gt;2020-04-01 17:53:57,294 - INFO - COM26: Provisioning link closed&lt;br /&gt;2020-04-01 17:53:57,295 - INFO - COM26: Provisioning link closed&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Interactive PyACI</title><link>https://devzone.nordicsemi.com/thread/242817?ContentTypeID=1</link><pubDate>Wed, 01 Apr 2020 03:00:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1134577f-75e5-4cd1-897d-6b33f1ecab8b</guid><dc:creator>Sebastien Mackaie</dc:creator><description>&lt;p&gt;Hello John, this is an issue with Jlink 6.7.x, please downgrade your Jlink to version&amp;nbsp;6.54c or older. and try again&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>