<?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>how to change the connection interval  dynamically</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/69179/how-to-change-the-connection-interval-dynamically</link><description>Hello , 
 I am using nRF52832 , sdk 16version. I want to set the BLE connection interval via BLE using application. How to do that? I tried to assign the variable to the min connection interval and assigned the value via BLE command , but didn&amp;#39;t work</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 09 Dec 2020 15:49:56 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/69179/how-to-change-the-connection-interval-dynamically" /><item><title>RE: how to change the connection interval  dynamically</title><link>https://devzone.nordicsemi.com/thread/284150?ContentTypeID=1</link><pubDate>Wed, 09 Dec 2020 15:49:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3a9b2cbb-c3bc-417e-ab73-435127880a50</guid><dc:creator>Karl Ylvisaker</dc:creator><description>[quote user="saral"]I will send these commands from central application, if I send 10?ms then it should change from default connection interval to 10ms connection interval either disconnecting or or in connection mode.Is it possible??&amp;nbsp;[/quote]
&lt;p&gt;This is possible, yes.&lt;br /&gt;For this, you can use the s&lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.s132.api.v7.2.0%2Fgroup___b_l_e___g_a_p___f_u_n_c_t_i_o_n_s.html&amp;amp;cp=4_7_3_1_2_1_3_12&amp;amp;anchor=gaf89b434841998ab384e0612dca9e12f8"&gt;d_ble_gap_conn_params_update&lt;/a&gt; function.&lt;br /&gt;The sequence is described in &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.api.v7.2.0/group___b_l_e___g_a_p___c_e_n_t_r_a_l___c_p_u___m_s_c.html"&gt;the Central Connection Parameter Update sequence messaging chart&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;I do not understand what you mean when you say &amp;quot;either disconnecting or or in connection mode&amp;quot;, but if you are referencing what I said in my last post, then you may indeed either configure your peripheral to accept or decline the update request. If it declines, it will then disconnect.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to change the connection interval  dynamically</title><link>https://devzone.nordicsemi.com/thread/284021?ContentTypeID=1</link><pubDate>Wed, 09 Dec 2020 11:19:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6dfd0482-30fd-4a4f-9e59-1cc85c0027cb</guid><dc:creator>ps_anu</dc:creator><description>&lt;p&gt;&amp;nbsp;The device is working as peripheral,&amp;nbsp; I want to change the connection interval for 10 , 20,30ms as per my requirement.&amp;nbsp; I will send these commands from central application, if I send 10?ms then it should change from default connection interval to 10ms connection interval either disconnecting or or in connection mode.Is it possible??&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to change the connection interval  dynamically</title><link>https://devzone.nordicsemi.com/thread/283636?ContentTypeID=1</link><pubDate>Mon, 07 Dec 2020 16:16:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:288b9997-ff71-4b4b-b4d3-92afacbe33c6</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello pspavi,&lt;/p&gt;
[quote user=""]I am using nRF52832 , sdk 16version. I want to set the BLE connection interval via BLE&amp;nbsp; &amp;nbsp;using application. How to do that? I tried to assign the variable&amp;nbsp; to the min connection interval and assigned the value via BLE command , but didn&amp;#39;t work . please suggest me . Is it possible ?[/quote]
&lt;p&gt;Will the device be working as a central or peripheral?&lt;br /&gt;I am not sure I understand what you have tried previously, could you elaborate on which functions you were using?&lt;br /&gt;&lt;br /&gt;If the device is working as a peripheral it can not determine what the connection parameters should be, but it could try to negotiate with the central using connection parameter update requests, and then disconnect if the negotiation is unsuccessful. You could see this demonstrated in &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.2/ble_sdk_app_hrs.html"&gt;the Heart Rate example in the SDK&lt;/a&gt;&amp;nbsp;- the specific update procedure happens as part of the ble_conn_params.c file&amp;#39;s&amp;nbsp;&lt;em&gt;update_timeout_handler&amp;nbsp;&lt;/em&gt;function.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>