<?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 disconnects connection after 1 min</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/11144/nrf51822-disconnects-connection-after-1-min</link><description>I&amp;#39;m using a custom designed PCB around the NRF51822 that broadcasts accelerometer readouts on a characteristic.
The application is based on s110 uart example and has been working fine. However, I am experiencing connection issues with a specific program</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 05 Jan 2016 16:16:39 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/11144/nrf51822-disconnects-connection-after-1-min" /><item><title>RE: NRF51822 disconnects connection after 1 min</title><link>https://devzone.nordicsemi.com/thread/41769?ContentTypeID=1</link><pubDate>Tue, 05 Jan 2016 16:16:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ac1df484-9ccc-4107-806d-15143d02bfc3</guid><dc:creator>Ole Bauck</dc:creator><description>&lt;p&gt;Connection parameter update request is implemented to allow the peripheral to request connection parameters that makes it use the least amount of power, as the peripheral most often has limited power (small battery) and the central has more power (large battery). Removing the conn_param module will make the central in full charge of the connection parameters, while the peripheral have nothing to say. See &lt;a href="https://devzone.nordicsemi.com/question/60/what-is-connection-parameters/"&gt;this post&lt;/a&gt; for more.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF51822 disconnects connection after 1 min</title><link>https://devzone.nordicsemi.com/thread/41770?ContentTypeID=1</link><pubDate>Tue, 05 Jan 2016 15:34:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:180828eb-a823-4bad-bb8f-ca6bb0520501</guid><dc:creator>Pim</dc:creator><description>&lt;p&gt;Wauw, thank you so much! Removing the call to conn_params_init() solved the issue :) Just out of curiosity: does this have any negative effects on the long term?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF51822 disconnects connection after 1 min</title><link>https://devzone.nordicsemi.com/thread/41768?ContentTypeID=1</link><pubDate>Tue, 05 Jan 2016 13:46:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:efaa9a01-6d75-4e2c-af9b-1b3bae7d7e3c</guid><dc:creator>Ole Bauck</dc:creator><description>&lt;p&gt;There is also one in &lt;code&gt;static void update_timeout_handler(void * p_context)&lt;/code&gt; in ble_conn_params.c. You can disable the connection request by not calling conn_params_init() in main.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF51822 disconnects connection after 1 min</title><link>https://devzone.nordicsemi.com/thread/41767?ContentTypeID=1</link><pubDate>Tue, 05 Jan 2016 13:37:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:20936003-10fa-4171-a229-50d5a676c2db</guid><dc:creator>Pim</dc:creator><description>&lt;p&gt;Thank you Ole for the quick reply! I think that you are right and that this is indeed the case. My settings are as follows, I did not make a change, they are the same as in the example:
&lt;code&gt;#define FIRST_CONN_PARAMS_UPDATE_DELAY APP_TIMER_TICKS(5000, APP_TIMER_PRESCALER)&lt;/code&gt;
&lt;code&gt;#define NEXT_CONN_PARAMS_UPDATE_DELAY APP_TIMER_TICKS(30000, APP_TIMER_PRESCALER)&lt;/code&gt;
&lt;code&gt;#define MAX_CONN_PARAMS_UPDATE_COUNT 3&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;I only find sd_ble_gap_disconnect twice, once in &lt;code&gt;static void on_conn_params_evt(ble_conn_params_evt_t * p_evt)&lt;/code&gt; and once in &lt;code&gt;void bsp_event_handler(bsp_event_t event)&lt;/code&gt;. Both are not fired during a debug session with a breakpoint attached.&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t think it is possible to make the master respond to the update request. Would it be possible to disable the request altogether on the NRF? Of just ignore the fact that no answer is received so that it will not disconnect?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF51822 disconnects connection after 1 min</title><link>https://devzone.nordicsemi.com/thread/41766?ContentTypeID=1</link><pubDate>Tue, 05 Jan 2016 11:54:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:925d5f9e-a54d-4bb3-aa05-d4a1d15d52f4</guid><dc:creator>Ole Bauck</dc:creator><description>&lt;p&gt;I suspect that the reason has to do with parameter update request not being answered by the master. I see from the wireshark cap that the disconnect happens almost accurately 60s after connection parameter update request is sent. What is your update delay and update count used in conn param module?&lt;/p&gt;
&lt;p&gt;You can also check where the disconnect is called by searching for sd_ble_gap_disconnect, set a breakpoint at each and run the application in debug mode.&lt;/p&gt;
&lt;p&gt;A tip with wireshark: Remove all the empty packets by typing &amp;quot;btle.data_header.length != 0&amp;quot; in the filter field.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>