<?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>Can&amp;#39;t connect to nrf52840 after a few days of advertising</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/68693/can-t-connect-to-nrf52840-after-a-few-days-of-advertising</link><description>I have a NRF52840 device which advertises connectable every 2 seconds for unlimited time. 
 I&amp;#39;m running a custom service (based mostly on this code https://github.com/NordicPlayground/nRF5x-custom-ble-service-tutorial ). 
 After a day or two some of the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 25 Nov 2020 19:02:35 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/68693/can-t-connect-to-nrf52840-after-a-few-days-of-advertising" /><item><title>RE: Can't connect to nrf52840 after a few days of advertising</title><link>https://devzone.nordicsemi.com/thread/281907?ContentTypeID=1</link><pubDate>Wed, 25 Nov 2020 19:02:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b2978682-036b-43d3-84f8-7bb6af251c5b</guid><dc:creator>riataman</dc:creator><description>&lt;p&gt;I tracked this down to the following:&lt;/p&gt;
&lt;p&gt;I had a inactivity app_timer that started at 15 minutes when someone connected to the device. I tracked the issue to this timer triggering immediately on start (on connection) .&lt;/p&gt;
&lt;p&gt;I found a bunch of people with the same problem on this forum and I fixed it by having a repeated timer constantly running to work around this app_timer bug.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can't connect to nrf52840 after a few days of advertising</title><link>https://devzone.nordicsemi.com/thread/281586?ContentTypeID=1</link><pubDate>Tue, 24 Nov 2020 13:45:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:de456bd8-1b77-44dd-a2be-4264bbde4fac</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Rataman,&lt;/p&gt;
&lt;p&gt;The tutorial is pretty old. I would suggest to have a look at our ble_app_uart example as the reference code for developing custom service.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;What I can find in the sniffer trace is that the nrf52840 device request a connection termination right after a few packets after the connection established with the code: Remote user terminated connection (0x13).&lt;br /&gt;&lt;br /&gt;I don&amp;#39;t know why it did that. Could be that in your code you have a call to softdevice API to disconnect the connection.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Please try testing on the ble_app_uart and check if you get the same issue.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>