<?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>Why waking up every conn_interval even with slave latency?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/10665/why-waking-up-every-conn_interval-even-with-slave-latency</link><description>I have a min connection interval of 200ms and max of 250ms. I have set slave latency to 10. These parameters are set both on peripheral and on central. Still, after connecting peripheral nRF to oscilloscope I can see that it wakes up every connection</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 04 Dec 2015 14:32:57 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/10665/why-waking-up-every-conn_interval-even-with-slave-latency" /><item><title>RE: Why waking up every conn_interval even with slave latency?</title><link>https://devzone.nordicsemi.com/thread/39804?ContentTypeID=1</link><pubDate>Fri, 04 Dec 2015 14:32:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8b8ca3d7-a587-47a9-992a-a7b3241e7361</guid><dc:creator>Ole Bauck</dc:creator><description>&lt;p&gt;What was your previous supervision timeout? I thought you should get an error if the connection parameters where wrong, like described in the link.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Why waking up every conn_interval even with slave latency?</title><link>https://devzone.nordicsemi.com/thread/39803?ContentTypeID=1</link><pubDate>Fri, 04 Dec 2015 14:11:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:24774bdd-30f1-42a9-b36c-9959d766c978</guid><dc:creator>Primož Kralj</dc:creator><description>&lt;p&gt;I think I got the parameters somehow wrong. It now works with latency 60, conn interval [200,250ms] and supervision timeout BLE_GAP_CP_CONN_SUP_TIMEOUT_MAX (~32sec). Future readers check &lt;a href="https://devzone.nordicsemi.com/question/14029/slave-latency-for-s110s120-connection/#14067"&gt;this answer&lt;/a&gt; too.&lt;/p&gt;
&lt;p&gt;Ole, I will do more tests next week to pinpoint exactly what went wrong and will post it here. Thanks for now, Nordic support is amazing!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Why waking up every conn_interval even with slave latency?</title><link>https://devzone.nordicsemi.com/thread/39802?ContentTypeID=1</link><pubDate>Fri, 04 Dec 2015 12:57:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ce11c052-3543-4e4a-8186-37a7ecaddf2e</guid><dc:creator>Ole Bauck</dc:creator><description>&lt;p&gt;ok, then the central is accepting every connection parameter update requests. The sniffer log you gave me was too short, connection parameter update request usually happens some time after the connection. If you are using the ble_conn_params library, it happens FIRST_CONN_PARAMS_UPDATE_DELAY after the connection.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Why waking up every conn_interval even with slave latency?</title><link>https://devzone.nordicsemi.com/thread/39801?ContentTypeID=1</link><pubDate>Fri, 04 Dec 2015 12:48:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:49740cbb-b826-4d58-ab02-f3cf811c2c97</guid><dc:creator>Primož Kralj</dc:creator><description>&lt;p&gt;I am running heavily modified omnipresent UART example (I can upload it though). I have sniffed the link though, pcap log is &lt;a href="https://www.dropbox.com/s/o3cjnm1vsn8ze6g/capture.pcap?dl=0"&gt;here&lt;/a&gt;. I am not very keen with reading the packets yet, though.&lt;/p&gt;
&lt;p&gt;The only thing happening on central in &lt;strong&gt;BLE_GAP_EVT_CONN_PARAM_UPDATE_REQUEST&lt;/strong&gt; event is:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;err_code = sd_ble_gap_conn_param_update(p_gap_evt-&amp;gt;conn_handle, &amp;amp;p_gap_evt-&amp;gt;params.conn_param_update_request.conn_params);
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Why waking up every conn_interval even with slave latency?</title><link>https://devzone.nordicsemi.com/thread/39805?ContentTypeID=1</link><pubDate>Fri, 04 Dec 2015 12:03:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3371c43b-9c27-478b-8a87-560c1c67f39f</guid><dc:creator>Ole Bauck</dc:creator><description>&lt;p&gt;Are you running any example? Could you check what is done in &lt;code&gt;BLE_GAP_EVT_CONN_PARAM_UPDATE_REQUEST&lt;/code&gt; event on the central? Or even better if you manage to sniff the connect request packet, see &lt;a href="https://www.nordicsemi.com/eng/Products/Bluetooth-Smart-Bluetooth-low-energy/nRF-Sniffer"&gt;sniffer&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Why waking up every conn_interval even with slave latency?</title><link>https://devzone.nordicsemi.com/thread/39807?ContentTypeID=1</link><pubDate>Fri, 04 Dec 2015 11:46:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ea146ff3-035e-40fe-8881-54ced4a3368c</guid><dc:creator>Primož Kralj</dc:creator><description>&lt;p&gt;I have played a bit more and found out that slave latency param has no effect. I am setting the connection parameters on both devices (both nRF51) with &lt;strong&gt;ble_gap_conn_params_t&lt;/strong&gt;; on central with &lt;strong&gt;sd_ble_gap_connect&lt;/strong&gt;() and on peripheral with &lt;strong&gt;sd_ble_gap_ppcp_set&lt;/strong&gt;(). For clock I am using &lt;strong&gt;NRF_CLOCK_LFCLKSRC_RC_250_PPM_4000MS_CALIBRATION&lt;/strong&gt; and I can see it triggering properly.&lt;/p&gt;
&lt;p&gt;But these spikes (wakeups) are the same as connection interval, always. Is it possible that central device discards the latency setting and sets it to 0 internally in softdevice? Do you have any other idea? Thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Why waking up every conn_interval even with slave latency?</title><link>https://devzone.nordicsemi.com/thread/39806?ContentTypeID=1</link><pubDate>Fri, 04 Dec 2015 10:32:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a3e44a02-9ed3-4229-a841-730d78b2c793</guid><dc:creator>Ole Bauck</dc:creator><description>&lt;p&gt;Are you sure that all the connection parameters are accepted at the central? Some devices may not accept this combination of connection interval and slave latency (e.g. iphone).&lt;/p&gt;
&lt;p&gt;What are the current measurements at this intervals? Can it be something else like a repeating task started by app_timer? If you are using RC LFCLK, the clock will be started regulary for calibration. Are you using NRF_CLOCK_LFCLKSRC_RC_250_PPM_250MS_CALIBRATION?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>