<?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>S110 Disconnects when in connection with S120</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/2509/s110-disconnects-when-in-connection-with-s120</link><description>I have a peripheral based on S110 that is connected to by a central running S120. 
 The connection is established, the S120 interrogates the service and enables notification on the correct characteristic. At this time, the peripheral isn&amp;#39;t actually generating</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 15 Mar 2016 18:53:20 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/2509/s110-disconnects-when-in-connection-with-s120" /><item><title>RE: S110 Disconnects when in connection with S120</title><link>https://devzone.nordicsemi.com/thread/10060?ContentTypeID=1</link><pubDate>Tue, 15 Mar 2016 18:53:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b0b07df5-061f-47e6-be91-3b4f7b04344a</guid><dc:creator>Andy</dc:creator><description>&lt;p&gt;Based on Pal&amp;#39;s response, this &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s130.api.v2.0.0/group___b_l_e___g_a_p___c_p_u___m_s_c.html"&gt;GAP Message Sequence Chart&lt;/a&gt; is incorrrect. The S110 peripheral cannot handle variant #3, where the Central ignore&amp;#39;s the request. Instead of a timeout and BLE_GAP_EVT_CONN_PARAM_UPDATE event, the connection is dropped (BLE_HCI_LOCAL_HOST_TERMINATED_CONNECTION).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: S110 Disconnects when in connection with S120</title><link>https://devzone.nordicsemi.com/thread/10059?ContentTypeID=1</link><pubDate>Tue, 13 May 2014 12:35:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:02bbebfd-b905-4b52-895c-808f1c12cc48</guid><dc:creator>P&amp;#229;l H&amp;#229;land</dc:creator><description>&lt;p&gt;Hi, this disconnection a stack handled timer that disconnect the connection because no response have been given on the L2CAP Connection Parameter Update Request. This timer is at 30 seconds, and if no response is given within that timeframe from the central device. Then the stack initiates the disconnection. This is the reason why I said that the app on the s120 device had to handle the BLE_GAP_EVT_CONN_PARAM_UPDATE_REQUEST.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: S110 Disconnects when in connection with S120</title><link>https://devzone.nordicsemi.com/thread/10058?ContentTypeID=1</link><pubDate>Tue, 13 May 2014 12:10:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6dea72bc-09db-4399-b6c9-67d7ef757e94</guid><dc:creator>Phil Beeson</dc:creator><description>&lt;p&gt;Hi Pål ,&lt;/p&gt;
&lt;p&gt;Thanks for your response.   You seem to be right about it being related to connection parameter renegotiation, if I change my min &amp;amp; max connection parameters on the peripheral to be within the range initially established when the S120 connects then the link stays active.&lt;/p&gt;
&lt;p&gt;Can you explain this further though.   Is this timeout in the soft device itself?   In the peripheral code (which is based on the HRS example)   the connection parameter&amp;#39;s &lt;strong&gt;disconnect_on_fail&lt;/strong&gt; parameter is set false, and I have confirmed with the debugger that neither of the calls to sd_ble_gap_disconnect()  [in update_timeout_handler/ble_conn_params.c  or on_conn_params_evt/main.c] are  being called.&lt;/p&gt;
&lt;p&gt;Thanks for again for your help and insight.&lt;/p&gt;
&lt;p&gt;Phil.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;
static void conn_params_init(void)
{
    uint32_t               err_code;
    ble_conn_params_init_t cp_init;

    memset(&amp;amp;cp_init, 0, sizeof(cp_init));

    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;

    err_code = ble_conn_params_init(&amp;amp;cp_init);
    APP_ERROR_CHECK(err_code);
}
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: S110 Disconnects when in connection with S120</title><link>https://devzone.nordicsemi.com/thread/10057?ContentTypeID=1</link><pubDate>Tue, 13 May 2014 10:19:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:06dd5963-3376-426a-9bcb-8d24fd15cadd</guid><dc:creator>P&amp;#229;l H&amp;#229;land</dc:creator><description>&lt;p&gt;You can remove the .txt and open it in wireshark&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: S110 Disconnects when in connection with S120</title><link>https://devzone.nordicsemi.com/thread/10056?ContentTypeID=1</link><pubDate>Tue, 13 May 2014 10:18:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b5e61fea-5db4-403b-b60d-d935c127a568</guid><dc:creator>Wojtek</dc:creator><description>&lt;p&gt;I don&amp;#39;t have software to analyze this packet at the moment, but what is exact specification of Your service? Does it only use notification?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: S110 Disconnects when in connection with S120</title><link>https://devzone.nordicsemi.com/thread/10055?ContentTypeID=1</link><pubDate>Tue, 13 May 2014 10:18:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e27e8f84-7a61-4468-b264-19d5da3ecd6a</guid><dc:creator>P&amp;#229;l H&amp;#229;land</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;at packet 674 I see that the peripheral send some data on L2CAP (Looks like garbled data) and 30 seconds after that a timer triggers, causing the disconnection.&lt;/p&gt;
&lt;p&gt;Do the peripheral do a Connection Parameter Update Request? In that case the central should handle the event BLE_GAP_EVT_CONN_PARAM_UPDATE_REQUEST, and issue a sd_ble_gap_conn_param_update. (To respond to the request)&lt;/p&gt;
&lt;p&gt;BR
Pål&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>