<?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>connection parameter update request</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/16783/connection-parameter-update-request</link><description>Hello, 
 I made an application inspired from the ble_uart example project. 
 I encounter now a problem that I don&amp;#39;t have with the ble_uart example. 
 I found that after few minutes, the connection is lost with nRF Connect (Android). Using a debugger</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 05 Oct 2016 10:11:38 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/16783/connection-parameter-update-request" /><item><title>RE: connection parameter update request</title><link>https://devzone.nordicsemi.com/thread/64212?ContentTypeID=1</link><pubDate>Wed, 05 Oct 2016 10:11:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a27fbcb8-8159-42ed-9444-1a27ba9fe82c</guid><dc:creator>bloobird0</dc:creator><description>&lt;p&gt;excellent! Thanks a lot, it solved my problem. I called the gap_params_init() function after conn_params_init() for some reason.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: connection parameter update request</title><link>https://devzone.nordicsemi.com/thread/64211?ContentTypeID=1</link><pubDate>Wed, 05 Oct 2016 07:30:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:defa08f4-5824-4bd5-b3f0-a50b2e00891c</guid><dc:creator>FormerMember</dc:creator><description>&lt;p&gt;sd_ble_gap_ppcp_set(..) has to be called before conn_params_init(): conn_params_init() retrieves the set preferred connections parameters (ppcp) and use the retrieved parameters to check if, during a connection, the connection parameter are ok, see ble_conn_params_init(..) and conn_params_negotiation() --&amp;gt; is_conn_params_ok(..). Therefore, if sd_ble_gap_ppcp_set(..) is called after conn_params_init(), m_preferred_conn_params will not contain the ppcp, and hence, the device won&amp;#39;t initiate a connection parameter update.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: connection parameter update request</title><link>https://devzone.nordicsemi.com/thread/64210?ContentTypeID=1</link><pubDate>Tue, 04 Oct 2016 08:41:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:033acf0d-8975-4498-920c-3fb9353dae03</guid><dc:creator>bloobird0</dc:creator><description>&lt;p&gt;Yes this method is called before I connect.  sd_ble_gap_ppcp_set() is called with the valid parameters and returns 0x00.&lt;/p&gt;
&lt;p&gt;I can also read the GenericAccess service/Peripheral Preferred Connection Parameters with the correct values: 20ms/200ms/0/400.&lt;/p&gt;
&lt;p&gt;Can this sd_ble_gap_ppcp_set() function be called at anytime or should it be called absolutely before some other BLE initialization?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: connection parameter update request</title><link>https://devzone.nordicsemi.com/thread/64209?ContentTypeID=1</link><pubDate>Mon, 03 Oct 2016 08:04:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:80e393b6-6bec-4bae-9d78-725a6b2bc3bf</guid><dc:creator>FormerMember</dc:creator><description>&lt;p&gt;In your application, do you call gap_params_init(..)? In gap_params_init(..), the peripheral preferred connection parameters are set. Setting those parameters should apply those parameters during a connection parameter update.&lt;/p&gt;
&lt;p&gt;I would think that the reason for no connection parameter update when running ble_app_uart is that the original parameters set by the central is within the connection interval range for the peripheral.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>