<?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>GAP CONNECT MAX INTERVAL PARMTERS ERROR(errCode = 7)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/35069/gap-connect-max-interval-parmters-error-errcode-7</link><description>1. nrf51822-qfaa 
 2. sdk10.0 &amp;amp; sd8.00 
 Q: 
 If the MAX_CONN_INTERVAL is set to greater than 200, NRF_ERROR_INVALID_PARAM will be returned when called sd_ble_gap_ppcp_set(). 
 
 core v4.0:</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 06 Jun 2018 06:08:04 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/35069/gap-connect-max-interval-parmters-error-errcode-7" /><item><title>RE: GAP CONNECT MAX INTERVAL PARMTERS ERROR(errCode = 7)</title><link>https://devzone.nordicsemi.com/thread/134826?ContentTypeID=1</link><pubDate>Wed, 06 Jun 2018 06:08:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:33e04272-24db-4bdc-a133-f3c4e2ea2519</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Glad it worked out. You must have a conn_sup_timeout &amp;gt; 2 * max_conn_interval. If not, missing even one packet will cause the link to be lost, which is probably why it is a requirement in the BLE specification.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GAP CONNECT MAX INTERVAL PARMTERS ERROR(errCode = 7)</title><link>https://devzone.nordicsemi.com/thread/134812?ContentTypeID=1</link><pubDate>Tue, 05 Jun 2018 20:44:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:47e08af0-1b79-42fa-a7f5-87667d6170aa</guid><dc:creator>Corey</dc:creator><description>&lt;p&gt;Hi, Edvin&lt;/p&gt;
&lt;p&gt;Thanks for your help, increase the conn_sup_timeout can slove this problem.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GAP CONNECT MAX INTERVAL PARMTERS ERROR(errCode = 7)</title><link>https://devzone.nordicsemi.com/thread/134766?ContentTypeID=1</link><pubDate>Tue, 05 Jun 2018 13:54:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d4e44b9e-ed31-4277-b98c-e29597c5f126</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;The problem is that the&amp;nbsp;CONN_SUP_TIMEOUT is too short in your connection parameter settings.&lt;/p&gt;
&lt;p&gt;If you look in the file ble_gap.h, you will see some constraints from line 711:&lt;/p&gt;
&lt;p&gt;&lt;em&gt; * @note If both conn_sup_timeout and max_conn_interval are specified, then the following constraint applies:&lt;/em&gt;&lt;br /&gt;&lt;em&gt; * conn_sup_timeout * 4 &amp;gt; (1 + slave_latency) * max_conn_interval&lt;/em&gt;&lt;br /&gt;&lt;em&gt; * that corresponds to the following Bluetooth Spec requirement:&lt;/em&gt;&lt;br /&gt;&lt;em&gt; * The Supervision_Timeout in milliseconds shall be larger than&lt;/em&gt;&lt;br /&gt;&lt;em&gt; * (1 + Conn_Latency) * Conn_Interval_Max * 2, where Conn_Interval_Max is given in milliseconds.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;A bit confusing, but we have two constraints here. It seems that your slave_latency = conn_latency = 0.&lt;/p&gt;
&lt;p&gt;1st condition: conn_sup_timeout * 4 &amp;gt; max_conn_interval.&lt;/p&gt;
&lt;p&gt;2nd condition: conn_sup_timeout &amp;gt; (1 + 0) * max_conn_interval*2 = 2*max_conn_interval.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;These constraints might seem a bit contradicting, but I assume (not 100% sure) that slave_latency = 0 counts as &amp;quot;not specified&amp;quot;, and hence, the 2nd condition applies. Hence, you can&amp;#39;t have a conn_sup_timeout &amp;lt; 2 * max_conn_interval.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;So try to increase the conn_sup_timeout (to e.g. 4000 = 4 sec).&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>