<?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>Frequent disconnects</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/113148/frequent-disconnects</link><description>Hello, I&amp;#39;m getting these series of events often when the client is sending data to client. This is the the nRF SDK 17. 
 
 If I add a delay on the client app that is talking to the device, these message seems to go away for example 95% of the time. The</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 18 Jul 2024 12:50:30 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/113148/frequent-disconnects" /><item><title>RE: Frequent disconnects</title><link>https://devzone.nordicsemi.com/thread/494579?ContentTypeID=1</link><pubDate>Thu, 18 Jul 2024 12:50:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1b919e74-4641-4517-8b1e-5880d85dc862</guid><dc:creator>jerome.sc</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;No this is with a custom board. I found that requesting the MTU size to something smaller, seems to have fixed the problem. &lt;/p&gt;
&lt;p&gt;However, I&amp;#39;m not sure how this relates to disconnecting, considering the MTU size can be handled as other commands the app sends are much larger, e.g. 237 bytes.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Frequent disconnects</title><link>https://devzone.nordicsemi.com/thread/494544?ContentTypeID=1</link><pubDate>Thu, 18 Jul 2024 11:18:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:52c3f594-97a3-417b-891c-8b8c1b7ba498</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Are you testing this on a custom board or a Nordic development kit, and which LF clock source have you selected (internal RC oscillator or the crystal oscillator)? If you are using the internal RC oscillator, please post the clock configuration parameters. Connection timeouts (disconnect reason &amp;#39;8&amp;#39;) can often be a symptom of excessive drift on the slow clock, causing the devices to lose the connection sync between each other.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;
&lt;p&gt;Edit:&amp;nbsp;&lt;strong&gt;&lt;/strong&gt;It would also be interesting to know if you experience these&amp;nbsp;connection timeouts if using the nRF connect app on Android or iOS.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Frequent disconnects</title><link>https://devzone.nordicsemi.com/thread/494478?ContentTypeID=1</link><pubDate>Thu, 18 Jul 2024 06:46:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1f19cfdf-85d7-4a88-b1f6-fdc758e541ff</guid><dc:creator>jerome.sc</dc:creator><description>&lt;p&gt;So I think the problem has to do with the connection parameter update.&lt;br /&gt;&lt;br /&gt;My parameters are:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;#define FIRST_CONN_PARAMS_UPDATE_DELAY APP_TIMER_TICKS(5000) /**&amp;lt; Time from initiating event (connect or start of notification) to first time sd_ble_gap_conn_param_update is called (5 seconds). */
#define NEXT_CONN_PARAMS_UPDATE_DELAY APP_TIMER_TICKS(30000) /**&amp;lt; Time between each call to sd_ble_gap_conn_param_update after the first call (30 seconds). */
#define MAX_CONN_PARAMS_UPDATE_COUNT 3                       /**&amp;lt; Number of attempts before giving up the connection parameter negotiation. */&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;For the&amp;nbsp;FIRST_CONN_PARAMS_UPDATE_DELAY I&amp;#39;ve tried a low value at 500, and a high value of 10000 but the results are the same, where it will disconnect with the debug message shown in the above post.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;If I look at the nRF app logs, it says Error 8 (0x8): GATT CONN Timeout.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>