<?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>Is there any relation between connection parameters and occasionally disconnection</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/25556/is-there-any-relation-between-connection-parameters-and-occasionally-disconnection</link><description>I have a system, with cc2540 as central and n51822 as peripheral with s130. Sometimes while they are close to each other, the connection link gets lost.
I disabled updating the connection parameters on the client(cc2540), and I set them just on peripheral</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 02 Oct 2017 11:59:42 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/25556/is-there-any-relation-between-connection-parameters-and-occasionally-disconnection" /><item><title>RE: Is there any relation between connection parameters and occasionally disconnection</title><link>https://devzone.nordicsemi.com/thread/100760?ContentTypeID=1</link><pubDate>Mon, 02 Oct 2017 11:59:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aa5afd31-4adc-4ff9-8bea-20c22e13019c</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;Ok. If you get BLE_HCI_CONNECTION_TIMEOUT on the nRF peripheral, it is either not able to receive packets from the central, or the central isn&amp;#39;t sending out packets, and the it hits he supervision timeout. Have you tested the nRF peripheral with another central? For example nRF Connect on Android? Does it disconnect then? If not I would suspect that the issue is with the central device. This could be confirmed with doing a sniffer trace, to see what is actually happening on air.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is there any relation between connection parameters and occasionally disconnection</title><link>https://devzone.nordicsemi.com/thread/100759?ContentTypeID=1</link><pubDate>Mon, 02 Oct 2017 11:45:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2dcbe646-9f6e-4fec-aa67-8f5d0d0ad0d4</guid><dc:creator>Sansei</dc:creator><description>&lt;p&gt;Yes, as I said previously in question I get timeout error (0x8) exactly on BLE_GAP_EVT_DISCONNECTED event. No, it doesn&amp;#39;t reset and there is no error somewhere really.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is there any relation between connection parameters and occasionally disconnection</title><link>https://devzone.nordicsemi.com/thread/100756?ContentTypeID=1</link><pubDate>Mon, 02 Oct 2017 10:14:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:670de0a6-2053-4b46-a80d-3c1cb356c584</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;Then it is probably not the connection parameters that is the culprit. Do you get a BLE_GAP_EVT_DISCONNECTED event? Have you checked the disconnect reason? &lt;a href="https://devzone.nordicsemi.com/question/60125/my-device-is-freezing-and-restarting/"&gt;Have you checked that APP_ERROR_CHECK() isn&amp;#39;t called with an error somewhere? And the device resets?&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is there any relation between connection parameters and occasionally disconnection</title><link>https://devzone.nordicsemi.com/thread/100758?ContentTypeID=1</link><pubDate>Mon, 02 Oct 2017 09:38:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b9f0395d-85cd-4ca3-a778-97a13dfe395f</guid><dc:creator>Sansei</dc:creator><description>&lt;p&gt;Thanks again. Actually, regardless of setting any value for CST (6S - 20S) when I set Connection Interval &amp;gt;= 600 ms I will get disconnection event in about 5 minutes after establishing the connection. Having a stable connection is very critical for us. At the second step, we also have to save the Battery as far as possible.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is there any relation between connection parameters and occasionally disconnection</title><link>https://devzone.nordicsemi.com/thread/100753?ContentTypeID=1</link><pubDate>Mon, 02 Oct 2017 07:46:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5219f92b-d9d5-4753-af78-9ca934e08688</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;Ok. So it seems the peripheral is sending a &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.api.v5.0.0/group___b_l_e___g_a_p___c_p_u___m_s_c.html?cp=2_3_0_1_0_2_1_3_9"&gt;connection parameter update request&lt;/a&gt;, and the central is accepting it, sends a &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.api.v5.0.0/group___b_l_e___g_a_p___c_e_n_t_r_a_l___c_p_u___m_s_c.html?cp=2_3_0_1_0_2_1_3_2"&gt;connection parameter update&lt;/a&gt;, and the connection parameters are updated.&lt;/p&gt;
&lt;p&gt;If you think the connection parameters are the reason for why you get a disconnect (I&amp;#39;m not sure why you think this?) just change the parameters that you include in the connection parameter update request from the peripheral. Or don&amp;#39;t send a CPU request at all, then you will just keep the connection parameters used when connecting (CM = 100 ms, SL = 0, CST = 20 S).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is there any relation between connection parameters and occasionally disconnection</title><link>https://devzone.nordicsemi.com/thread/100761?ContentTypeID=1</link><pubDate>Fri, 29 Sep 2017 17:25:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d48ae084-b168-4789-9598-2c799d7810ac</guid><dc:creator>Sansei</dc:creator><description>&lt;p&gt;Yes, I think I know them.
These are what I set on peripheral:
Minimum Connection interval = 500 ms;
Maximum Connection interval = 1000 ms;
Slave Latency     = 0;
Connection supervision timeout  = 6 S&lt;/p&gt;
&lt;p&gt;Values I received on BLE_GAP_EVT_CONNECTED event:
Minimum Connection interval = 100 ms;
Maximum Connection interval = 100 ms;
Slave Latency     = 0;
Connection supervision timeout  = 20 S;&lt;/p&gt;
&lt;p&gt;Values I received on BLE_GAP_EVT_CONN_PARAM_UPDATE event:
Minimum Connection interval = 500 ms;
Maximum Connection interval = 500 ms;
Slave Latency     = 0;
Connection supervision timeout  = 6 S;&lt;/p&gt;
&lt;p&gt;Crashing our system because of abnormal disconnection is fatal. Currently, timeout is the reason of crashing our system, on both client and peripheral, while they are really in the response range and are close to each other.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is there any relation between connection parameters and occasionally disconnection</title><link>https://devzone.nordicsemi.com/thread/100754?ContentTypeID=1</link><pubDate>Fri, 29 Sep 2017 11:57:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2d957ce3-41d9-44cc-b394-625d2e5d8262</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;You need to find a balance between the connection interval and the supervision timeout. There is no best values, you have to tune them to your use case. What kind of connection interval are you using? What have you set supervision timeout to? Do you know the meaning of these?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is there any relation between connection parameters and occasionally disconnection</title><link>https://devzone.nordicsemi.com/thread/100757?ContentTypeID=1</link><pubDate>Fri, 29 Sep 2017 11:14:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:624e7ba8-4ded-44f4-802e-8601649072ab</guid><dc:creator>Sansei</dc:creator><description>&lt;p&gt;Thanks for your response... I will check parameters as the way you mentioned. But please let me know what are best values to avoid occasionally disconnection problem while I need to get the feedback of true disconnection (when really I get out from the response range by leaving the place/room) as much as fast.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is there any relation between connection parameters and occasionally disconnection</title><link>https://devzone.nordicsemi.com/thread/100755?ContentTypeID=1</link><pubDate>Fri, 29 Sep 2017 08:58:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c89dd321-5b7d-47b8-9778-1a155a48d43e</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;It is the central device that dictates the connection parameters (when connection is established), it can then choose to do a connection parameter update to change them.&lt;/p&gt;
&lt;p&gt;What are your actual connection parameters? See &lt;a href="https://devzone.nordicsemi.com/question/56471/check-ble-connection-interval/"&gt;this&lt;/a&gt; for how to check. What are the connection parameters when you get the BLE_GAP_EVT_CONNECTED event? Do you get any BLE_GAP_EVT_CONN_PARAM_UPDATE events? What are the connection parameters then?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>