<?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>nRF52840 BLE disconnect after 2 minutes</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/68944/nrf52840-ble-disconnect-after-2-minutes</link><description>I have a custom board with nRF52840 (with SDKv17.0.0 + s140_7.0.1). I&amp;#39;m making a BLE peripheral out of it, but it disconnects after 2 minutes. Things seem to work fine during these two minutes and I&amp;#39;m able to stream notifications. I don&amp;#39;t believe it&amp;#39;s</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 03 Dec 2020 05:28:56 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/68944/nrf52840-ble-disconnect-after-2-minutes" /><item><title>RE: nRF52840 BLE disconnect after 2 minutes</title><link>https://devzone.nordicsemi.com/thread/282975?ContentTypeID=1</link><pubDate>Thu, 03 Dec 2020 05:28:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1e7a57ab-9c62-4c64-b06b-ba86af455283</guid><dc:creator>Tosa</dc:creator><description>&lt;p&gt;It was an application error in my port from the nRF52832 board to the nRF52840 board. The power management chip had changed and I had changed some startup code incorrectly, leading to a call for advertising to restart, and hence the disconnect.&amp;nbsp;RTT Viewer showed NRF_ERR_CONN_COUNT, helping me to trace down this error. Thanks for your tips in looking for&amp;nbsp;application rather than crystal issues.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 BLE disconnect after 2 minutes</title><link>https://devzone.nordicsemi.com/thread/282677?ContentTypeID=1</link><pubDate>Tue, 01 Dec 2020 13:23:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a91ff4da-93a5-40a3-8a1b-c9fd849a803e</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;The unmodified HRS example shouldn&amp;#39;t disconnect after 2 minutes. Does it do that in your case?&lt;/p&gt;
&lt;p&gt;Possible reasons:&lt;/p&gt;
&lt;p&gt;-As &lt;a href="https://devzone.nordicsemi.com/members/awneil"&gt;awneil&lt;/a&gt; says, most examples go to sleep if they don&amp;#39;t connect within a couple of minutes (180 seconds to be accurate). This comes from the advertising timeout event. So if you e.g. added support for more connections, and start advertising after you have connected, and this advertisement times out the timeout event may still trigger sleep mode (which is basically turning off the chip). Perhaps this is what&amp;#39;s going on?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;-Another reason may be that the peripheral doesn&amp;#39;t like the connection parameters (connection interval is not within the min-max settings), and the peripheral decides to disconnect after a couple of retries.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;-Some other kind of timeout.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Can you please check the log from the nRF? Do you see the disconnect event, or do you just see a reset?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;If you see a disconnect, can you please check the disconnect reason? (Let me know if you don&amp;#39;t know how to check this on the nRF. It should be mentioned in a fair amount of tickets here on DevZone).&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 BLE disconnect after 2 minutes</title><link>https://devzone.nordicsemi.com/thread/282568?ContentTypeID=1</link><pubDate>Tue, 01 Dec 2020 02:03:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e235cbd4-3123-4c48-9988-4c5d360cf630</guid><dc:creator>Tosa</dc:creator><description>&lt;p&gt;it is a custom FW (that is based on the HRS example). It does not go to sleep nor disconnect on my nRF52832&amp;nbsp;system, so I don&amp;#39;t expect it to disconnect on the nRF52840 system either.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 BLE disconnect after 2 minutes</title><link>https://devzone.nordicsemi.com/thread/282562?ContentTypeID=1</link><pubDate>Tue, 01 Dec 2020 00:54:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0d945ecc-eb05-4db5-8575-a659a1cd38b7</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;Are you basing your work on a Nordic example?&lt;/p&gt;
&lt;p&gt;Lots of the Nordic examples do go to sleep after something like 2 minutes - have you left that in ... ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>