<?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>Bluetooth Mesh example: Interactive PyACI timeout</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/34382/bluetooth-mesh-example-interactive-pyaci-timeout</link><description>Hi, 
 I&amp;#39;m having problems to run the Loopback example in the Bluetooth Mesh SDK: 
 infocenter.nordicsemi.com/index.jsp 
 I&amp;#39;m receiving a timeout. 
 My setup is as follows: 
 
 Ubuntu Bionic (18.04 LTS) 64-bit 
 My user is added to the dialout group (for</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 08 Jun 2018 00:01:14 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/34382/bluetooth-mesh-example-interactive-pyaci-timeout" /><item><title>RE: Bluetooth Mesh example: Interactive PyACI timeout</title><link>https://devzone.nordicsemi.com/thread/135269?ContentTypeID=1</link><pubDate>Fri, 08 Jun 2018 00:01:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:84e10d42-7418-472d-a217-35e21dabc5ed</guid><dc:creator>pwgh</dc:creator><description>&lt;p&gt;I&amp;#39;ve also been running into this issue since version 1.0 of the mesh SDK. I&amp;#39;m pretty sure this isn&amp;#39;t a problem with my computer,&amp;nbsp; the OS or any software on it. My setup is pretty similar to TYRI&amp;#39;s except for Arch Linux.&lt;/p&gt;
&lt;p&gt;The serial example seems to work once out of every ten tries. When it works, it continues to work until the board is turned off.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve tried the following and nothing seems to have an effect:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Resetting with nrfjprog -r or -p&lt;/li&gt;
&lt;li&gt;Using the switch to turn the board off and on&lt;/li&gt;
&lt;li&gt;Unplugging the board from the USB port&lt;/li&gt;
&lt;li&gt;Reflashing the serial example&lt;/li&gt;
&lt;li&gt;Doing --eraseall then reflashing&lt;/li&gt;
&lt;li&gt;Rebooting my computer&lt;/li&gt;
&lt;li&gt;Switching&amp;nbsp;between my desktop to my laptop&lt;/li&gt;
&lt;li&gt;Running in debugging mode in Embedded studio&lt;/li&gt;
&lt;li&gt;Leaving the board unplugged without a battery for several minutes&lt;/li&gt;
&lt;li&gt;Switching between different devkit boards&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Despite any of this,&amp;nbsp;sending even a trivial Echo command to the board fails most of the time.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Sometimes when the example works I see the following error when starting&amp;nbsp;interactive_pyaci.py:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;2018-06-07 16:15:48,254 - ERROR - ttyACM0: Exception in pkt handler &amp;lt;bound method Interactive.__event_handler of &amp;lt;__main__.Interactive object at 0x7f4d97d5eef0&amp;gt;&amp;gt;
2018-06-07 16:15:48,261 - ERROR - ttyACM0: traceback: Traceback (most recent call last):
  File &amp;quot;/home/patonw/code/nordic/nrf5_sdk_for_mesh/scripts/interactive_pyaci/aci/aci_uart.py&amp;quot;, line 88, in process_packet
    fun(packet)
  File &amp;quot;interactive_pyaci.py&amp;quot;, line 164, in __event_handler
    if self._event_filter_enabled and event._opcode in self._event_filter:
AttributeError: &amp;#39;Interactive&amp;#39; object has no attribute &amp;#39;_event_filter_enabled&amp;#39;
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I need to spend more time with the debugger but my hunch is that something is not getting initialized in the mesh SDK. When the serial example behaves normally, it will trigger a breakpoint in&amp;nbsp;serial_bearer_rx_get with&amp;nbsp;the following call stack (doing this from memory since I can&amp;#39;t get the example to work again):&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;bearer_event.c: EVENT_IRQHandler&lt;/li&gt;
&lt;li&gt;&lt;span&gt;bearer_event.c:&amp;nbsp;&lt;/span&gt;bearer_event_handler&lt;/li&gt;
&lt;li&gt;&lt;span&gt;bearer_event.c:&amp;nbsp;&lt;/span&gt;call_callback&lt;/li&gt;
&lt;li&gt;serial.c:&amp;nbsp;serial_process&lt;/li&gt;
&lt;li&gt;serial.c:&amp;nbsp;serial_process_cmd&lt;/li&gt;
&lt;li&gt;serial_bearer.c: serial_bearer_rx_get&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;However, when the example fails to run none of these functions are invoked,&amp;nbsp;aside from&amp;nbsp;&lt;span&gt;EVENT_IRQHandler which is getting called constantly, regardless.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bluetooth Mesh example: Interactive PyACI timeout</title><link>https://devzone.nordicsemi.com/thread/133855?ContentTypeID=1</link><pubDate>Tue, 29 May 2018 14:06:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:26acd682-393e-417f-a826-11f87b803b47</guid><dc:creator>Mttrinh</dc:creator><description>&lt;p&gt;See if this &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/34448/mesh-dfu-dfu_cmd_handler_set-always-failing/133754#133754" target="_blank" rel="noopener noreferrer"&gt;post&lt;/a&gt; could be of any help.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bluetooth Mesh example: Interactive PyACI timeout</title><link>https://devzone.nordicsemi.com/thread/133451?ContentTypeID=1</link><pubDate>Fri, 25 May 2018 14:09:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6e99ed47-68b6-43d3-977b-658ac3eb4de2</guid><dc:creator>TYRI</dc:creator><description>&lt;p&gt;Thank you for the information. I&amp;#39;ve tried what you mentioned except for using the earlier SEGGER version. One thing to note is that ninja is calling /usr/bin/python which makes it harder to use a virtual python environment. i.e. it doesn&amp;#39;t just call &amp;#39;python&amp;#39; and hence bypasses the python selected by virtualenv (prepended to PATH).&lt;br /&gt;I don&amp;#39;t know if this is per default by ninja or due to your configuration of the build.&lt;/p&gt;
&lt;p&gt;Please let me know if the situation improves.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bluetooth Mesh example: Interactive PyACI timeout</title><link>https://devzone.nordicsemi.com/thread/133292?ContentTypeID=1</link><pubDate>Thu, 24 May 2018 15:17:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1a0a7766-4c94-4d6e-b6a0-7ab4c04499d9</guid><dc:creator>Mttrinh</dc:creator><description>&lt;p&gt;This is a virtual com port issue. We don&amp;#39;t have a specific fix for this unfortunately. You can try installing a different SEGGER J-LINK version, Jlink v6.16c, and give access to the COM port by adding the user to the dialout group: sudo adduser&amp;nbsp;$USER dialout.&lt;/p&gt;
&lt;p&gt;Also try plugging your board in and out or reflashing, see if that helps.&lt;/p&gt;
&lt;p&gt;Another tip is to use a virtual environment when working with Python. It allows you to use multiple Python installations on one machine quite effortlessly. A guide for it is found &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.meshsdk.v2.0.1/md_doc_getting_started_how_to_debian_tools.html?cp=4_1_0_3_0_1" target="_blank" rel="noopener noreferrer"&gt;here&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bluetooth Mesh example: Interactive PyACI timeout</title><link>https://devzone.nordicsemi.com/thread/132498?ContentTypeID=1</link><pubDate>Fri, 18 May 2018 12:14:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:340ff4cf-7c73-4f0d-9ce4-fc9b11e9cd15</guid><dc:creator>TYRI</dc:creator><description>&lt;p&gt;Unfortunately I still receive the timeout.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bluetooth Mesh example: Interactive PyACI timeout</title><link>https://devzone.nordicsemi.com/thread/132313?ContentTypeID=1</link><pubDate>Wed, 16 May 2018 14:20:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ab61b231-a7af-43ba-b005-fe0a0389a30b</guid><dc:creator>Mttrinh</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Are you using 32-bit python? If not, I would suggest you to do so and see if that help fix the issue.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>