<?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 handle BLE_GAP_EVT_CONN_PARAM_UPDATE and BLE_GAP_EVT_CONN_PARAM_UPDATE_REQUEST events ?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/8736/how-to-handle-ble_gap_evt_conn_param_update-and-ble_gap_evt_conn_param_update_request-events</link><description>I am working on s120(central) and s130(central/peripheral). I am getting
BLE_GAP_EVT_CONN_PARAM_UPDATE_REQUEST event after updating conn_parameters w.r.t to peer using sd_ble_gap_conn_param_update i am getting
BLE_GAP_EVT_CONN_PARAM_UPDATE event. How</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 14 Aug 2015 22:12:32 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/8736/how-to-handle-ble_gap_evt_conn_param_update-and-ble_gap_evt_conn_param_update_request-events" /><item><title>RE: How to handle BLE_GAP_EVT_CONN_PARAM_UPDATE and BLE_GAP_EVT_CONN_PARAM_UPDATE_REQUEST events ?</title><link>https://devzone.nordicsemi.com/thread/32046?ContentTypeID=1</link><pubDate>Fri, 14 Aug 2015 22:12:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e11c04e8-f706-460d-ac62-2d4f2d1ebaa3</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;The first.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to handle BLE_GAP_EVT_CONN_PARAM_UPDATE and BLE_GAP_EVT_CONN_PARAM_UPDATE_REQUEST events ?</title><link>https://devzone.nordicsemi.com/thread/32045?ContentTypeID=1</link><pubDate>Fri, 14 Aug 2015 17:17:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:846f9829-f55f-4908-93d3-b4d745c9f491</guid><dc:creator>Siva Subrahmanyam</dc:creator><description>&lt;p&gt;if central should update the connection parameters by peripheral requests.
of the two below which connection parameters should be used?&lt;/p&gt;
&lt;p&gt;sd_ble_gap_conn_param_update(p_gap_evt-&amp;gt;conn_handle, &amp;amp;p_gap_evt-&amp;gt;params.conn_param_update_request.conn_params);&lt;/p&gt;
&lt;p&gt;sd_ble_gap_conn_param_update(p_gap_evt-&amp;gt;conn_handle, &amp;amp;p_gap_evt-&amp;gt;params.conn_param_update.conn_params);&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to handle BLE_GAP_EVT_CONN_PARAM_UPDATE and BLE_GAP_EVT_CONN_PARAM_UPDATE_REQUEST events ?</title><link>https://devzone.nordicsemi.com/thread/32044?ContentTypeID=1</link><pubDate>Fri, 14 Aug 2015 13:20:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c0d5ca51-6d15-49d1-aea2-814251da8cb7</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;If the central should accept whatever connection parameters the peripheral requests you can use it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to handle BLE_GAP_EVT_CONN_PARAM_UPDATE and BLE_GAP_EVT_CONN_PARAM_UPDATE_REQUEST events ?</title><link>https://devzone.nordicsemi.com/thread/32043?ContentTypeID=1</link><pubDate>Fri, 14 Aug 2015 13:13:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1ff879b9-ff2b-47f3-8b49-2016c1be07d0</guid><dc:creator>Siva Subrahmanyam</dc:creator><description>&lt;p&gt;So on central we can ignore BLE_GAP_EVT_CONN_PARAM_UPDATE event.&lt;/p&gt;
&lt;p&gt;on  central for  BLE_GAP_EVT_CONN_PARAM_UPDATE_REQUEST can we use below update function
with request parameters.
sd_ble_gap_conn_param_update(p_gap_evt-&amp;gt;conn_handle, &amp;amp;p_gap_evt-&amp;gt;params.conn_param_update_request.conn_params);&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to handle BLE_GAP_EVT_CONN_PARAM_UPDATE and BLE_GAP_EVT_CONN_PARAM_UPDATE_REQUEST events ?</title><link>https://devzone.nordicsemi.com/thread/32042?ContentTypeID=1</link><pubDate>Fri, 14 Aug 2015 11:26:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dbba8005-0de5-42ed-9408-4c8fad2d1c9d</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;The peripheral can request an update of the connection parameters by calling sd_ble_gap_conn_param_update(). Then the central will receive the BLE_GAP_EVT_CONN_PARAM_UPDATE_REQUEST event. The central can then&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Accept the request and respond with sd_ble_gap_conn_param_update(connection parameters) to update the connection parameters&lt;/li&gt;
&lt;li&gt;Reject the request and respond with sd_ble_gap_conn_param_update(NULL)&lt;/li&gt;
&lt;li&gt;Ignore it.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Please see &lt;a href="http://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.s130.api.v1.0.0%2Fgroup___b_l_e___g_a_p___c_p_u___m_s_c.html&amp;amp;cp=2_7_2_1_0_2_1_0_2"&gt;this&lt;/a&gt; MSC for more information.&lt;/p&gt;
&lt;p&gt;The central can update the connection parameters by calling sd_ble_gap_conn_param_update(). Then the peripheral and the central will get the BLE_GAP_EVT_CONN_PARAM_UPDATE event. The peripheral can check the new connection parameters and if they are unacceptable it can do a disconnect or something else, or if they are acceptable, it can ignore it.&lt;/p&gt;
&lt;p&gt;Please see &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s130.api.v1.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_7_2_1_0_2_1_0_21"&gt;this&lt;/a&gt; MSC for more information.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>