<?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>Random BLE Disconnects + PWM</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/76725/random-ble-disconnects-pwm</link><description>Recently our Device started exhibiting random BLE disconnect problems. 
 It&amp;#39;s really hard to debug as not all of our devices are exhibiting this issue and in generally so far I&amp;#39;ve been unsuccessful in reproducing this bug. 
 The symptoms are as follows</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 30 Jun 2021 19:54:16 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/76725/random-ble-disconnects-pwm" /><item><title>RE: Random BLE Disconnects + PWM</title><link>https://devzone.nordicsemi.com/thread/318047?ContentTypeID=1</link><pubDate>Wed, 30 Jun 2021 19:54:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8170b2f7-02b5-4dd4-96e2-89047429f58d</guid><dc:creator>Sigurd</dc:creator><description>[quote user=""]The FW update after which this issue seems to have been introduced[/quote]
&lt;p&gt;&amp;nbsp;&lt;span&gt;Without any logs it is difficult to figure out what the root cause is. If you have the firmware before and after the update, you might want to do a review and look more into what other changes the update did in your firmware, but if it was a very big update with a lot of changes, some nrf_logs that shows the failure might be needed to figure this one out.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Random BLE Disconnects + PWM</title><link>https://devzone.nordicsemi.com/thread/317767?ContentTypeID=1</link><pubDate>Tue, 29 Jun 2021 14:40:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a0271727-d989-4ccb-aa1a-34f524f2e42c</guid><dc:creator>nikolozka</dc:creator><description>&lt;p&gt;We&amp;#39;re using SDK 15.3 with S132v6.1&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Random BLE Disconnects + PWM</title><link>https://devzone.nordicsemi.com/thread/317751?ContentTypeID=1</link><pubDate>Tue, 29 Jun 2021 14:06:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:66af4617-dd1c-4ea6-a2b4-5ce8c8c78abd</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Ok. What nRF5-SDK version, and what SoftDevice variant and version are you using?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Random BLE Disconnects + PWM</title><link>https://devzone.nordicsemi.com/thread/317735?ContentTypeID=1</link><pubDate>Tue, 29 Jun 2021 13:18:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:53812d91-a35e-4797-889a-c6a79661a79a</guid><dc:creator>nikolozka</dc:creator><description>&lt;p&gt;That is my suspicion as well, Though I haven&amp;#39;t been able to observe this with either the debugger or nrf connect or packet sniffer connected. The test devices I&amp;#39;m working this haven;t exhibited this behavior, but It does happen on deployed devices from time to time.&lt;br /&gt;To add some more info we&amp;#39;re using:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;NRF_SDH_CLOCK_LF_SRC 0&lt;/li&gt;
&lt;li&gt;NRF_SDH_CLOCK_LF_ACCURACY 1&lt;/li&gt;
&lt;li&gt;NRF_SDH_CLOCK_LF_RC_TEMP_CTIV 2&lt;/li&gt;
&lt;li&gt;NRF_SDH_CLOCK_LF_RC_CTIV 16&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The connection parameters are pretty standard too:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;MIN_CONN_INTERVAL MSEC_TO_UNITS(15, UNIT_1_25_MS)&lt;/li&gt;
&lt;li&gt;MAX_CONN_INTERVAL MSEC_TO_UNITS(45, UNIT_1_25_MS)&lt;/li&gt;
&lt;li&gt;SLAVE_LATENCY 3&amp;nbsp;&lt;/li&gt;
&lt;li&gt;CONN_SUP_TIMEOUT MSEC_TO_UNITS(6000, UNIT_10_MS)&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The disconnects happen both on android and IOS, in our production app as well as our internal test app that usesdifferent bluetooth implementation. So there&amp;#39;s a high likelyhood of the diconnect originating on the HW side&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Random BLE Disconnects + PWM</title><link>https://devzone.nordicsemi.com/thread/317731?ContentTypeID=1</link><pubDate>Tue, 29 Jun 2021 13:10:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:48de314f-14d0-45f4-a5e5-81877ad8f81b</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user=""]the connection gets dropped immediately[/quote]
&lt;p&gt;Do you know what the disconnect reason is when this happens? Based on your description, I assume it&amp;#39;s 8 (&lt;span&gt;BLE_HCI_CONNECTION_TIMEOUT) ?&lt;/span&gt;&lt;/p&gt;
[quote user=""]&lt;strong&gt;NRF_DRV_PWM_INSTANCE(0);&lt;/strong&gt; it has recently caught my attention that this could be using TIMER0[/quote]
&lt;p&gt;&amp;nbsp;No, the PWM&amp;nbsp;peripheral is clocked directly from the clock tree, it does not use the TIMER.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Random BLE Disconnects + PWM</title><link>https://devzone.nordicsemi.com/thread/317034?ContentTypeID=1</link><pubDate>Thu, 24 Jun 2021 13:51:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8a660445-9bc0-4902-8ee0-8a79d3c4d882</guid><dc:creator>nikolozka</dc:creator><description>&lt;p&gt;The device doesn&amp;#39;t crash nor restart.&lt;/p&gt;
&lt;p&gt;Its keeps advertising but becoms &amp;quot;unconnectable&amp;quot; untill it goes to sleep after we stop attempting to connect.&lt;/p&gt;
&lt;p&gt;This is triggered from BLE_ADV_EVT_IDLE if certain interrupts haven&amp;#39;t been received for a while.&lt;/p&gt;
&lt;p&gt;Sleep mode in our case is just disabling peripherals &amp;amp; going to WFE() (no going to POWEROFF or any such operation)&lt;/p&gt;
&lt;p&gt;it seems like BLE_ADV_EVT_IDLE + restarting advertising clears the issue but it&amp;#39;s hard to tell for certain what is causing this behavior&amp;nbsp;&lt;/p&gt;
&lt;p&gt;There is logging functionality on the HW side ofcourse but I haven&amp;#39;t been able to reproduce this behavior under test conditions / with debugger connected&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Random BLE Disconnects + PWM</title><link>https://devzone.nordicsemi.com/thread/317029?ContentTypeID=1</link><pubDate>Thu, 24 Jun 2021 13:40:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:480e6d0c-d22b-4e81-81ce-ae8f4282717e</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;Is the device crashing &amp;amp; restarting ?&lt;/p&gt;
[quote userid="95197" url="~/f/nordic-q-a/76725/random-ble-disconnects-pwm"]The App side logs seem to indicate that the diconnection comes from the HW side[/quote]
&lt;p&gt;Do you have some HW side logs ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>