<?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>nRF51822(peripheral role): How to Update connection parameter?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/423/nrf51822-peripheral-role-how-to-update-connection-parameter</link><description>My test: PCA10000+Master Control Panel(3.4.0.8098) as central role, conninterval=20ms
nRF51822+softdevice(5.0) as peripheral role, conninterval=10ms
then sd_ble_gap_conn_param_update(), conninterval=50ms 
 Master Control Panel Display:
 First: 
</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 18 Sep 2013 07:17:07 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/423/nrf51822-peripheral-role-how-to-update-connection-parameter" /><item><title>RE: nRF51822(peripheral role): How to Update connection parameter?</title><link>https://devzone.nordicsemi.com/thread/2182?ContentTypeID=1</link><pubDate>Wed, 18 Sep 2013 07:17:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:056493b3-6cff-41f5-acfa-22b1b5e23437</guid><dc:creator>Artem Zemlyanukhin</dc:creator><description>&lt;p&gt;Thanks for fast response!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF51822(peripheral role): How to Update connection parameter?</title><link>https://devzone.nordicsemi.com/thread/2181?ContentTypeID=1</link><pubDate>Wed, 18 Sep 2013 07:01:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:98ad719e-cc40-4af3-a9e0-a448a6d9ac92</guid><dc:creator>Carles</dc:creator><description>&lt;p&gt;Those are internal Master Control Panel messages and are not relevant to your application or the BLE connection, you can safely ignore them.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF51822(peripheral role): How to Update connection parameter?</title><link>https://devzone.nordicsemi.com/thread/2180?ContentTypeID=1</link><pubDate>Wed, 18 Sep 2013 06:18:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f26f5f5b-0490-41fe-a53f-9c892846b655</guid><dc:creator>Artem Zemlyanukhin</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;could you tell me please what do the following events mean?&lt;/p&gt;
&lt;p&gt;3055;11:45:49.4300 [480100137] PacketQueueSearch skipped event code 0x0D
3056;11:45:49.4300 [480100137] PacketQueueSearch skipped event code 0x96&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF51822(peripheral role): How to Update connection parameter?</title><link>https://devzone.nordicsemi.com/thread/2179?ContentTypeID=1</link><pubDate>Mon, 09 Sep 2013 05:55:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d6473c33-1210-4aca-aa1b-7972066a8327</guid><dc:creator>Ole Morten</dc:creator><description>&lt;p&gt;As you can see in the comment on this field in the struct definition, setting it to NULL means that the module will go fetch the parameters from the stack:
&amp;quot;Pointer to the connection parameters desired by the application. When calling ble_conn_params_init, if this parameter is set to NULL, the connection parameters will be fetched from host.&amp;quot;&lt;/p&gt;
&lt;p&gt;Also, take a look at  lines 107-126 in ble_conn_params.c, where you can see how this is done.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m therefore still confident this is the cause of the behavior you&amp;#39;re seeing.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF51822(peripheral role): How to Update connection parameter?</title><link>https://devzone.nordicsemi.com/thread/2178?ContentTypeID=1</link><pubDate>Sun, 08 Sep 2013 22:20:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ec9f3380-1031-4c24-9a2c-9a04b18773e0</guid><dc:creator>bayi255</dc:creator><description>&lt;p&gt;But Most of the SDK examples ble_conn_params_init():
cp_init.p_conn_params = NULL;
not set connect interval!, then must other function do this.&lt;/p&gt;
&lt;p&gt;/**@brief Initialize the Connection Parameters module.
*/
static void conn_params_init(void)
{
uint32_t               err_code;
ble_conn_params_init_t cp_init;&lt;/p&gt;
&lt;p&gt;memset(&amp;amp;cp_init, 0, sizeof(cp_init));&lt;/p&gt;
&lt;p&gt;cp_init.p_conn_params                  = NULL;
cp_init.first_conn_params_update_delay = FIRST_CONN_PARAMS_UPDATE_DELAY;
cp_init.next_conn_params_update_delay  = NEXT_CONN_PARAMS_UPDATE_DELAY;
cp_init.max_conn_params_update_count   = MAX_CONN_PARAMS_UPDATE_COUNT;
cp_init.start_on_notify_cccd_handle    = BLE_GATT_HANDLE_INVALID;
cp_init.disconnect_on_fail             = false;
cp_init.evt_handler                    = on_conn_params_evt;
cp_init.error_handler                  = conn_params_error_handler;&lt;/p&gt;
&lt;p&gt;err_code = ble_conn_params_init(&amp;amp;cp_init);
APP_ERROR_CHECK(err_code);
}&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF51822(peripheral role): How to Update connection parameter?</title><link>https://devzone.nordicsemi.com/thread/2177?ContentTypeID=1</link><pubDate>Fri, 06 Sep 2013 06:21:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4d038685-e7bf-4ff4-961b-c862b25e1118</guid><dc:creator>Ole Morten</dc:creator><description>&lt;p&gt;This obviously shows that your application is sending another connection parameter update request. Most of the SDK examples include the ble_conn_params module, that can handle such update requests for you. I therefore suspect that it&amp;#39;s this module that sends the second request.&lt;/p&gt;
&lt;p&gt;To solve it, you can either make ble_conn_params request the parameters you actually want by modifying the parameters passed to ble_conn_params_init(), or just remove the entire module and handle it yourself.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>