<?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>connection interval error</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/95585/connection-interval-error</link><description>Hi, 
 nrf SDK 17.1.0 
 Why am I restricted to keep the connection interval as mentioned in the examples ? 
 
 
 For example, in the template example, it is restricting the user to keep the interval between 0.1 and 0.2. But the BLE spec allows between</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 06 Mar 2023 18:55:23 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/95585/connection-interval-error" /><item><title>RE: connection interval error</title><link>https://devzone.nordicsemi.com/thread/413635?ContentTypeID=1</link><pubDate>Mon, 06 Mar 2023 18:55:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c8d9ad2d-f0b7-46fd-b6f7-fe548a7035fa</guid><dc:creator>treTreTo-IoT</dc:creator><description>&lt;p&gt;Had the same problem. Needed to increase CONN_SUP_TIMEOUT. Seems like&amp;nbsp;&amp;nbsp;&lt;span&gt;CONN_SUP_TIMEOUT &amp;gt; 2*MAX_CONN_INTERVAL&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: connection interval error</title><link>https://devzone.nordicsemi.com/thread/405851?ContentTypeID=1</link><pubDate>Fri, 20 Jan 2023 13:59:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e7ba2953-6b95-44ff-b690-e8f74f48aa9e</guid><dc:creator>DanisXZ</dc:creator><description>&lt;p&gt;Hi Joakim,&lt;/p&gt;
[quote userid="20690" url="~/f/nordic-q-a/95585/connection-interval-error/405559"]&lt;p&gt;Do you have a Nordic DK available to test on?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;[/quote]
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I tested with nRF52 DK and I face the same issue.&lt;/p&gt;
&lt;p&gt;SW package:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;nRF5_SDK_17.1.0_ddde560\examples\ble_peripheral\ble_app_hrs\pca10040\s132\ses&lt;/p&gt;
&lt;p&gt;I changed the code like given below it fails as explained before:&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1674239679865v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;I found that the issue is not happening if MAX_CONN_INTERVAL is less than 2000. But&amp;nbsp;&lt;span&gt;sd_ble_gap_ppcp_set() fails if&amp;nbsp;MAX_CONN_INTERVAL&amp;nbsp; &amp;gt;= 2000&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: connection interval error</title><link>https://devzone.nordicsemi.com/thread/405559?ContentTypeID=1</link><pubDate>Wed, 18 Jan 2023 20:50:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:71dde9c3-0944-4b00-b908-03b652f302dc</guid><dc:creator>Joakim Jakobsen</dc:creator><description>&lt;p&gt;Sorry about the delay.&lt;/p&gt;
&lt;p&gt;I can&amp;#39;t see any issues when testing this myself.&amp;nbsp; &lt;/p&gt;
[quote user="DanisXZ"]Custom board based on nRF52810.&amp;nbsp;[/quote]
&lt;p&gt;I haven&amp;#39;t tested with the nRF52810. Do you have a Nordic DK available to test on?&lt;/p&gt;
&lt;p&gt;Br, &lt;br /&gt;Joakim&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: connection interval error</title><link>https://devzone.nordicsemi.com/thread/404839?ContentTypeID=1</link><pubDate>Fri, 13 Jan 2023 14:32:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5da991f1-4be8-450d-83e5-448bd6fdbdbe</guid><dc:creator>DanisXZ</dc:creator><description>[quote userid="20690" url="~/f/nordic-q-a/95585/connection-interval-error/404838"]&lt;p&gt;Let me do some further research on the issue and get back to you.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;[/quote]
&lt;p&gt;Okay&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: connection interval error</title><link>https://devzone.nordicsemi.com/thread/404838?ContentTypeID=1</link><pubDate>Fri, 13 Jan 2023 14:26:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ae583c40-c0a4-4ea2-8c55-c8872e369760</guid><dc:creator>Joakim Jakobsen</dc:creator><description>&lt;p&gt;Thanks.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I was concerned that you might violate the below:&lt;/p&gt;
&lt;p&gt;* @note&amp;nbsp; If both conn_sup_timeout and max_conn_interval are specified, then the following constraint applies:&lt;br /&gt;&amp;nbsp;*&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; conn_sup_timeout * 4 &amp;gt; (1 + slave_latency) * max_conn_interval&lt;br /&gt;&amp;nbsp;*&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; that corresponds to the following Bluetooth Spec requirement:&lt;br /&gt;&amp;nbsp;*&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; The Supervision_Timeout in milliseconds shall be larger than&lt;br /&gt;&amp;nbsp;*&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (1 + Conn_Latency) * Conn_Interval_Max * 2, where Conn_Interval_Max is given in milliseconds.&lt;/p&gt;
&lt;p&gt;But it seems that the values are within the allowed values.&lt;/p&gt;
&lt;p&gt;Let me do some further research on the issue and get back to you.&lt;/p&gt;
&lt;p&gt;The values you listed below (2500/3000/4000) causes the &lt;span&gt;sd_ble_gap_ppcp_set&lt;/span&gt;() function to return with the invalid param error?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Br, &lt;br /&gt;Joakim&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: connection interval error</title><link>https://devzone.nordicsemi.com/thread/404374?ContentTypeID=1</link><pubDate>Wed, 11 Jan 2023 14:39:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:90c21ee4-0141-464e-8cc7-6e0399c58854</guid><dc:creator>DanisXZ</dc:creator><description>&lt;p&gt;Hi Joakim,&lt;/p&gt;
&lt;p&gt;Thank you for your reply.&lt;/p&gt;
[quote userid="20690" url="~/f/nordic-q-a/95585/connection-interval-error/404361"]&lt;p&gt;Maybe you could add some more information about your setup? Which device etc.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;[/quote]
&lt;p&gt;Custom board based on nRF52810.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;SDK 17.1.0&lt;/p&gt;
&lt;p&gt;SD112&lt;/p&gt;
[quote userid="20690" url="~/f/nordic-q-a/95585/connection-interval-error/404361"]&lt;p&gt;Have you made any other changes to the example, other than changing the connection interval?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;[/quote]
&lt;p&gt;I didn&amp;#39;t do any change other than the connection interval. I made change as given below.&lt;/p&gt;
&lt;p&gt;&lt;code&gt;#define MIN_CONN_INTERVAL MSEC_TO_UNITS(2500, UNIT_1_25_MS) /**&amp;lt; Minimum acceptable connection interval (0.1 seconds). */&lt;/code&gt;&lt;br /&gt;&lt;code&gt;#define MAX_CONN_INTERVAL MSEC_TO_UNITS(3000, UNIT_1_25_MS) /**&amp;lt; Maximum acceptable connection interval (0.2 second). */&lt;/code&gt;&lt;br /&gt;&lt;code&gt;#define SLAVE_LATENCY 0 /**&amp;lt; Slave latency. */&lt;/code&gt;&lt;br /&gt;&lt;code&gt;#define CONN_SUP_TIMEOUT MSEC_TO_UNITS(4000, UNIT_10_MS) /**&amp;lt; Connection supervisory timeout (4 seconds). */&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I get an error code of 0x7 for&amp;nbsp;sd_ble_gap_ppcp_set() function in&amp;nbsp; gap_params_init();&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt; &lt;/code&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: connection interval error</title><link>https://devzone.nordicsemi.com/thread/404361?ContentTypeID=1</link><pubDate>Wed, 11 Jan 2023 14:21:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3a13dfda-ee2b-4a65-a76d-639c20042156</guid><dc:creator>Joakim Jakobsen</dc:creator><description>&lt;p&gt;Hi.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I tested the template example and I had no issues changing the min/max connection interval to lower values using nRF5 SDK v.17.1.0.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Maybe you could add some more information about your setup? Which device etc.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Have you made any other changes to the example, other than changing the connection interval?&lt;/p&gt;
&lt;p&gt;Br,&amp;nbsp;&lt;br /&gt;Joakim&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>