<?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>keeping connection alive for long times</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/5496/keeping-connection-alive-for-long-times</link><description>Hello, 
 I am using the nRf8001 and successfully connecting to an android device, but I still have some doubts related to the BLE protocol itself, specifically to the connection interval. 
 Suppose I want to send some data to the central device once</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 14 Sep 2022 06:36:07 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/5496/keeping-connection-alive-for-long-times" /><item><title>RE: keeping connection alive for long times</title><link>https://devzone.nordicsemi.com/thread/386086?ContentTypeID=1</link><pubDate>Wed, 14 Sep 2022 06:36:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b1430391-8b5e-4156-9ee2-f1bffa707759</guid><dc:creator>Norandy</dc:creator><description>&lt;p&gt;Hi guys, I know this is a old topic :) but I would like to know if it is possible to share your configuration regarding the way to keep a connection&amp;nbsp;alive a long times. Let me know if I could do anything in that way. Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: keeping connection alive for long times</title><link>https://devzone.nordicsemi.com/thread/19181?ContentTypeID=1</link><pubDate>Fri, 13 Feb 2015 14:52:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e5bbeab3-4c7e-4590-9664-5dcae62535f8</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;@Jaciroscar : it&amp;#39;s pretty normal to have RSSI at -45 dbm. You will see that with our development board as well.&lt;/p&gt;
&lt;p&gt;Yes, you can send the board to us and we will do the antenna tuning and optimize the board for you. It&amp;#39;s free and take about 3-4 weeks.&lt;/p&gt;
&lt;p&gt;I would suggest you to create a support case on MyPage (on Nordic website ) for the request. Our hardware experts will take it from there.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: keeping connection alive for long times</title><link>https://devzone.nordicsemi.com/thread/19180?ContentTypeID=1</link><pubDate>Fri, 13 Feb 2015 06:27:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6cde9e64-5499-4c2c-aa96-a3f648e32a68</guid><dc:creator>spmbx</dc:creator><description>&lt;p&gt;Thanks for the explanation, things are clearer to me now. I tweaked with these settings and were able to improve the connection time to a few hours. But I am suspecting there is something wrong with the board layout that is causing the packet loss. For instance, the maximum RSSI level I´m getting is -45 dbm, when it is supposed to be 0 dbm. Can I send the PCB layout to Nordic analyse if there is any error?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: keeping connection alive for long times</title><link>https://devzone.nordicsemi.com/thread/19179?ContentTypeID=1</link><pubDate>Thu, 12 Feb 2015 15:00:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:075c2b6e-4313-40ba-9b27-859a0d919f1f</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Yes, by theory even without any activity the connection should be kept. (Empty payload packets are automatically sent on every connection event to keep the connection)
Your supervision timeout is pretty short if there are only several packet drop it would cause connection timeout.&lt;/p&gt;
&lt;p&gt;And please noted that the maximum and minimum connection interval is only used as the preferred request from peripheral, it depend on the central to decide which connection interval will be used. So there is a chance the actual connection interval is not between 12.5ms and 22.5ms (with most Android phone it won&amp;#39;t be in that range).
I would suggest you to change supervision timeout to 1 to 4 seconds for example.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: keeping connection alive for long times</title><link>https://devzone.nordicsemi.com/thread/19178?ContentTypeID=1</link><pubDate>Tue, 10 Feb 2015 17:24:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8f17f402-d5da-4b67-8932-93b85bc70084</guid><dc:creator>spmbx</dc:creator><description>&lt;p&gt;Hi Hung Bui, Unfortunatelly I don´t have a packet snnifer. Just to confirm, even without data transfer, the connection should be kept alive for hours/days ideally? My current parameters are Maximum connection interval=22.5ms; Minimum connection interval=12.5ms; Slave latency=0; Connection Supervision timeout=100ms.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: keeping connection alive for long times</title><link>https://devzone.nordicsemi.com/thread/19177?ContentTypeID=1</link><pubDate>Tue, 10 Feb 2015 11:28:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0298ccdb-b9a7-4e33-8143-99f7f7033e96</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Jaciroscar,&lt;/p&gt;
&lt;p&gt;Could you give me more information on the connection parameters (connection interval, slave latency, connection timeout) that you used for your device ?&lt;/p&gt;
&lt;p&gt;If you have connection timeout = 100ms and if you have connection interval = 35ms for example, the connection may be timed out if there are 3 packets drop. This could very easily happens if there is some interference.
If you can provide a &lt;a href="https://www.nordicsemi.com/eng/Products/Bluetooth-Smart-Bluetooth-low-energy/nRF-Sniffer/(language)/eng-GB"&gt;sniffer trace&lt;/a&gt;, it would be useful.&lt;/p&gt;
&lt;p&gt;I do agree that it&amp;#39;s not very stable on some Android phones to keep the connection for a long time, but I&amp;#39;m talking about several hours or days not just few minutes as in your case.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: keeping connection alive for long times</title><link>https://devzone.nordicsemi.com/thread/19176?ContentTypeID=1</link><pubDate>Mon, 09 Feb 2015 04:15:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:079025ad-e475-431e-904e-dd92fcee1e73</guid><dc:creator>spmbx</dc:creator><description>&lt;p&gt;Hi Locky,
Do you think the correct behavior would be to the connection be maintained even without data transfer? I&amp;#39;ve tried it with Sony Z2 and M2 Aqua, both running Android 4.4.4 and a Galaxy S&amp;quot;x&amp;quot; with Kitkat (I dont remember the exact model and Android version, and I&amp;#39;m not with the phone here right now). Regards&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: keeping connection alive for long times</title><link>https://devzone.nordicsemi.com/thread/19175?ContentTypeID=1</link><pubDate>Mon, 09 Feb 2015 04:00:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a960cc8b-a78b-4823-b362-cbaee010845c</guid><dc:creator>Locky</dc:creator><description>&lt;p&gt;Which Android device are you connecting to?   Do not rule out the phone itself as there are several Android phones (even high end ones; Nexus 4, HTC One M8) which have trouble keeping a BLE connection for long.   Also which version of Android does this phone have?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>