<?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>Multilink Central Example does not work with high connection intervals</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/6981/multilink-central-example-does-not-work-with-high-connection-intervals</link><description>If I set the centrals connection intervals values higher as a specific value it won&amp;#39;t any longer find/connect/enable notifications on my peripheral. 
 0x00A0/0x0050/ 400/700 /0/8100 working 
 0x00A0/0x0050/ 400/800 /0/8100 not working. 
 0x00A0/0x0050</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 19 May 2015 14:48:10 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/6981/multilink-central-example-does-not-work-with-high-connection-intervals" /><item><title>RE: Multilink Central Example does not work with high connection intervals</title><link>https://devzone.nordicsemi.com/thread/24624?ContentTypeID=1</link><pubDate>Tue, 19 May 2015 14:48:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7881387c-c888-4ca6-9e82-4c8096b79673</guid><dc:creator>muhkuhns</dc:creator><description>&lt;p&gt;I see. Great post! Thank you! But you also just mention advertising interval and scan interval/window. But   also if I only change min/max connection interval from 500/500 to 4000/4000 the time it takes for the first measurement to show up increases from ~15seconds to slightly over 2 minutes. And this is what I can&amp;#39;t explain by myself. I just went home now and left my setup at the university. I will play around with the values again tomorrow to see what I can achieve.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;Advertising intervall 20ms and 
#define SCAN_INTERVAL                    0x0029
#define SCAN_WINDOW                      0x0028 
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;shouldn*t this connect in no time? still takesmore than 20seconds after the central starts scanning&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Multilink Central Example does not work with high connection intervals</title><link>https://devzone.nordicsemi.com/thread/24623?ContentTypeID=1</link><pubDate>Tue, 19 May 2015 14:43:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a48acd4d-1862-47b7-a98e-df4727f3a87b</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;I updated my answer above.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Multilink Central Example does not work with high connection intervals</title><link>https://devzone.nordicsemi.com/thread/24622?ContentTypeID=1</link><pubDate>Tue, 19 May 2015 13:41:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6291e0f6-e5e5-4961-82d9-590010c8d9c9</guid><dc:creator>muhkuhns</dc:creator><description>&lt;p&gt;Yeah sorry, I had something checkd in the search tab by mistake but found it just one second later. I&amp;#39;m a bit exhausted already. If I am not mistaken, it just started working now after some time!&lt;/p&gt;
&lt;p&gt;Yeah it takes some time, as you mentioned in your original answer. But it works! Gonna try lower PPM settings now and see what is the lowest that works. Thank you so much so far! Looks like it starts working with &amp;gt;=100 PPM&lt;/p&gt;
&lt;p&gt;(How) Can I speed up the initial connection process? Or in other words: Why does it take so long for the first measurement compared to lower connection intervals?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Multilink Central Example does not work with high connection intervals</title><link>https://devzone.nordicsemi.com/thread/24621?ContentTypeID=1</link><pubDate>Tue, 19 May 2015 13:35:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2da8c6e4-b841-405d-8a04-0720035d43bd</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;Just search for &amp;#39;SOFTDEVICE_HANDLER_INIT&amp;#39; in main.c and change&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;SOFTDEVICE_HANDLER_INIT(NRF_CLOCK_LFCLKSRC_XTAL_20_PPM, false);
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;to&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;SOFTDEVICE_HANDLER_INIT(NRF_CLOCK_LFCLKSRC_XTAL_500_PPM, false);
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Multilink Central Example does not work with high connection intervals</title><link>https://devzone.nordicsemi.com/thread/24620?ContentTypeID=1</link><pubDate>Tue, 19 May 2015 13:32:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f27a0c0f-2816-4548-8f67-7ff1b84f4403</guid><dc:creator>muhkuhns</dc:creator><description>&lt;p&gt;Yeah, I also found this topic, but the devices are lying next to each other on my table. And it does work perfectly with lower intervals. I tried it with the 500PPM settings. Still doesn*t seem to work :/&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Multilink Central Example does not work with high connection intervals</title><link>https://devzone.nordicsemi.com/thread/24619?ContentTypeID=1</link><pubDate>Tue, 19 May 2015 13:26:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cc02aa85-c84c-4db6-843e-7f6aab27c9a0</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;Error 0x0008 corresponds to BLE_HCI_CONNECTION_TIMEOUT. &lt;a href="https://devzone.nordicsemi.com/question/6223/how-to-determine-if-a-disconnection-is-due-to-a-bad-signal-signal-loss/"&gt;Some people experience&lt;/a&gt; this when their device goes out of range.&lt;/p&gt;
&lt;p&gt;Another possible solution might be timing issues caused by poor accuracy on the low frequency 32,768Hz crystal on the Seeed BLE Micro. According to the &lt;a href="http://www.seeedstudio.com/wiki/File:BLE_Micro.pdf"&gt;Seeed BLE Micro schematic&lt;/a&gt; there is a crystal, but it doesn&amp;#39;t say anything about the accuracy. Try to increase the ppm value in &lt;code&gt;SOFTDEVICE_HANDLER_INIT();&lt;/code&gt;. Try the largest value first: &lt;em&gt;NRF_CLOCK_LFCLKSRC_XTAL_500_PPM&lt;/em&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Multilink Central Example does not work with high connection intervals</title><link>https://devzone.nordicsemi.com/thread/24617?ContentTypeID=1</link><pubDate>Tue, 19 May 2015 09:51:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:34255983-3611-40a0-865a-c3eb8565937d</guid><dc:creator>muhkuhns</dc:creator><description>&lt;p&gt;This is #1 on my schedule for today when I finally finished running around looking for a pressure-tight case. I will update this.&lt;/p&gt;
&lt;p&gt;Tested. Does not work. Please see edited questions for logfiles.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Multilink Central Example does not work with high connection intervals</title><link>https://devzone.nordicsemi.com/thread/24618?ContentTypeID=1</link><pubDate>Tue, 19 May 2015 09:10:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2e63398a-3808-48bf-972e-69f2cc31d4da</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;Have you tried to run the example codes &amp;quot;as is&amp;quot;, without your own code? And then use the parameters you mention above? It would be a quick way to see if your problem lies in your own application. I&amp;#39;m afraid the code you attached is too extensive for me to test or go through. Are you also able to debug your code and see if you get any asserts?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Multilink Central Example does not work with high connection intervals</title><link>https://devzone.nordicsemi.com/thread/24616?ContentTypeID=1</link><pubDate>Wed, 13 May 2015 13:51:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:37c2d21a-3574-40ad-a15f-e52cf145e1e6</guid><dc:creator>muhkuhns</dc:creator><description>&lt;p&gt;Thanks for your answer! But too bad they don&amp;#39;t work for me, and I don&amp;#39;t know what I could&amp;#39;ve changed that could cause this.. :( Oh. And of course I am using v2.0.0 my Bad... I waited up to 5 minutes and nothing happened. But why does connection interval influences the time they need to connect anyway? Shouldn&amp;#39;t only advertising and scanning affect this?&lt;/p&gt;
&lt;p&gt;I tested it now again for 10 Minutes with the following settings:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;Peripheral: advinterval:500, min/max conn:2000/4000 timeout 8100
Central: scanning interval/window A0/50 min/max/timeout as above.
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;As far as my RTT Output goes the central starts scanning but then nothing more is happening.. If I change the centrals min/max conn. to e.g. 200/400 it connects and enables notifications in a few seconds.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Multilink Central Example does not work with high connection intervals</title><link>https://devzone.nordicsemi.com/thread/24615?ContentTypeID=1</link><pubDate>Wed, 13 May 2015 13:43:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ae542d62-c38d-44d0-82f3-e8eb4e048477</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Error 0x0008 corresponds to BLE_HCI_CONNECTION_TIMEOUT. A common source for this error is timing issues caused by poor accuracy on the low frequency 32,768Hz crystal. According to the Seeed BLE Micro schematic there is an external crystal, but it doesn&amp;#39;t say anything about the accuracy. Try to increase the ppm value in &lt;code&gt;SOFTDEVICE_HANDLER_INIT()&lt;/code&gt; called in &lt;em&gt;main.c&lt;/em&gt;. Try the largest value first: NRF_CLOCK_LFCLKSRC_XTAL_500_PPM.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/question/953/what-low-frequency-clock-sources-can-i-use/"&gt;Here&lt;/a&gt; is a great thread explaining a bit about various low frequency clock sources.&lt;/p&gt;
&lt;p&gt;The reasons why I suspect a timing issue is that your values work fine on my own development kits from Nordic (with known clock accuracies). It just takes a long time for the devices to connect (a few seconds to a couple of minutes). On the peripheral side I have a PCA10001 kit with S110 V7.1 and SDK V6.1. On the central side I have a nRF51 Dongle (also tried DK) with S120 V2.0.0 and SDK V8.1 (also tried V8.0).&lt;/p&gt;
&lt;p&gt;To understand why it takes so long for your two devices to connect you can have a look at &lt;a href="https://devzone.nordicsemi.com/question/2535/what-is-the-minimum-time-for-a-app-and-a-peripheral-to-create-a-connection/"&gt;this thread&lt;/a&gt;. Your advertise interval is pretty high and your scan interval/window pretty low. Hence it will take a while before the peripheral is advertising and the central is listening at the same time (To make absolutely sure that the windows and intervals eventually overlap a small &lt;a href="https://devzone.nordicsemi.com/question/7740/accuracy-ble-advertising/"&gt;random delay&lt;/a&gt; is added to the advertisement interval).&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/question/12545/update-connection-parameter-programmatically/"&gt;Here&lt;/a&gt; is a little more info about intervals etc.&lt;/p&gt;
&lt;p&gt;To speed up the connection time you can experiment with decreasing the adv interval or maybe also increase the scan interval and/or window. However this will draw power, as you know. In the end you will have to compromise. If you plan to stay most of the time advertising then maybe a long adv interval is best. If you, on the other hand, stay connected most of the time you can have short adv intervals and long connection intervals.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>