<?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 update issue</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/81361/connection-interval-update-issue</link><description>Hi I am trying to update the connection interval of a peripheral device (nRF52840 ) and I have followed the steps mentioned here . 
 After Enabling the ble on the device I read the connection interval at initialization by doing this 
 
 Then I used the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 09 Nov 2021 11:31:42 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/81361/connection-interval-update-issue" /><item><title>RE: Connection Interval update issue</title><link>https://devzone.nordicsemi.com/thread/338138?ContentTypeID=1</link><pubDate>Tue, 09 Nov 2021 11:31:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fae33bd9-9b63-4615-8349-79f70257aabb</guid><dc:creator>masterLee</dc:creator><description>&lt;p&gt;Ok I found this posti explaining it&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/23727/difference-between-ble-parameter-update-functions"&gt;devzone.nordicsemi.com/.../difference-between-ble-parameter-update-functions&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connection Interval update issue</title><link>https://devzone.nordicsemi.com/thread/338135?ContentTypeID=1</link><pubDate>Tue, 09 Nov 2021 11:10:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c614e760-cfb7-45fb-af3f-b2545f192d5c</guid><dc:creator>masterLee</dc:creator><description>&lt;p&gt;ok. It worked. One last question regarding the update&lt;/p&gt;
&lt;p&gt;What is the difference of&amp;nbsp;&lt;strong&gt;sd_ble_gap_conn_param_update()&lt;/strong&gt; and&amp;nbsp; &lt;strong&gt;ble_conn_params_change_conn_params()&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Thank you for your time&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connection Interval update issue</title><link>https://devzone.nordicsemi.com/thread/337970?ContentTypeID=1</link><pubDate>Mon, 08 Nov 2021 15:10:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4f23e882-e320-4955-9780-8965f0a349cd</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;You have to look for the&amp;nbsp;BLE_GAP_EVT_CONN_PARAM_UPDATE events on the peripheral.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connection Interval update issue</title><link>https://devzone.nordicsemi.com/thread/337855?ContentTypeID=1</link><pubDate>Mon, 08 Nov 2021 09:42:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:556e45e9-d4c5-46d8-85bf-dbb56e927b9b</guid><dc:creator>masterLee</dc:creator><description>&lt;p&gt;Hi, is there some way to check if the connection interval request from the peripheral to the mobile is accepted or not? Like a flag or something?&amp;nbsp; &lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connection Interval update issue</title><link>https://devzone.nordicsemi.com/thread/337738?ContentTypeID=1</link><pubDate>Fri, 05 Nov 2021 14:46:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bc39df4d-1c40-4339-9e01-4ac7d7d3f594</guid><dc:creator>masterLee</dc:creator><description>&lt;p&gt;It seems that I will need an adapter between the windows application and the peripheral devices where I can modify the connection Interval the way I want. Maybe an nRF52840 as central would be the solution here&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connection Interval update issue</title><link>https://devzone.nordicsemi.com/thread/337728?ContentTypeID=1</link><pubDate>Fri, 05 Nov 2021 14:20:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:12b499e1-060c-4fd7-b1fd-92d5d859a66b</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;If the&amp;nbsp; central is a mobile phone or a computer, it may not be that easy to actually change the connection interval. Although I am not exactly sure how it is set on computers. It may be adjustable in some app for peripherals with custom BLE Services, but I think that with e.g. HID over BLE, the computer want to keep the connection interval low, to reduce latency. In this case slave_latency can be applied in order to reduce current consumption. Perhaps you can look into that.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connection Interval update issue</title><link>https://devzone.nordicsemi.com/thread/337707?ContentTypeID=1</link><pubDate>Fri, 05 Nov 2021 13:17:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fe68980d-823e-40c2-8a28-24394611c4af</guid><dc:creator>masterLee</dc:creator><description>&lt;p&gt;Hi, &lt;/p&gt;
&lt;p&gt;The application that wrote the logs comes from the peripheral device (nRF52840) debugger.&lt;/p&gt;
&lt;p&gt;The central is not nRF device. It is a custom windows 10 desktop application&amp;nbsp; with an external BLE 5.0 usb adapter. &lt;br /&gt;&lt;br /&gt;I have already contacted the app developer and he is trying to find the configuration for the connection parameters.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connection Interval update issue</title><link>https://devzone.nordicsemi.com/thread/337704?ContentTypeID=1</link><pubDate>Fri, 05 Nov 2021 13:08:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:886afb92-af0d-406d-85a8-da279b477569</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;The application that wrote these logs, is that a peripheral or a central?&lt;/p&gt;
&lt;p&gt;It is always the central that has the final saying on the connection parameters. I guess that this is the peripheral. Are you developing the central as well? Or do you have access to the central source code? What is the preferred connection parameters on the central? I suspect it is maximum 12. If the central is another nRF, can you try to change the preferred connection interval to something else?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;BR,&lt;br /&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connection Interval update issue</title><link>https://devzone.nordicsemi.com/thread/337649?ContentTypeID=1</link><pubDate>Fri, 05 Nov 2021 10:20:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:be71c66d-b028-4ef6-8d98-d9a00d44777e</guid><dc:creator>masterLee</dc:creator><description>&lt;p&gt;Hi Edvin,&lt;/p&gt;
&lt;p&gt;Good news and bad news. The good news are that the values now make&lt;/p&gt;
&lt;p&gt;Bad news are that, after the first update event with the agreed connection interval value (30) which is inside the min max limits I have set , a second update event takes place automatically with another value (12) outside the defined limits,&amp;nbsp; as displayed next&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;&amp;lt;info&amp;gt; app: BLE GAP Connected
&amp;lt;info&amp;gt; app: Conn.Interval is initialized. Max: 0x24, Min: 0x24, Max: 36, Min: 36
&amp;lt;info&amp;gt; app: Data len is set to 0xF4(244)
&amp;lt;info&amp;gt; app: Data len is set to 0xF4(244)
&amp;lt;info&amp;gt; app: Request Bytes = 5
&amp;lt;info&amp;gt; app: Conn.Interval in function. Max: 0x20, Min: 0x18, Max: 32, Min: 24
&amp;lt;info&amp;gt; app: Conn.Interval is updated. Max: 0x1E, Min: 0x1E, Max: 30, Min: 30
&amp;lt;info&amp;gt; app: Conn.Interval is updated. Max: 0xC, Min: 0xC, Max: 12, Min: 12&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;How is it possible a second connection interval&amp;nbsp; update event to take place and change the value by its own?&lt;/p&gt;
&lt;p&gt;By repeating the process with different min max values for the connection interval, the first update event takes the values correctly and the agreed value is within the set limits and the second update that occurs automatically returns the set value back to 12.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connection Interval update issue</title><link>https://devzone.nordicsemi.com/thread/337567?ContentTypeID=1</link><pubDate>Thu, 04 Nov 2021 17:45:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8d0468c2-53ac-4e4f-a8f2-edb33f70b47d</guid><dc:creator>masterLee</dc:creator><description>&lt;p&gt;Hi Edvin, I will try it out first thing tomorrow morning and I will come back.&lt;br /&gt;Thank you for your time!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connection Interval update issue</title><link>https://devzone.nordicsemi.com/thread/337519?ContentTypeID=1</link><pubDate>Thu, 04 Nov 2021 14:22:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b453b7c4-d6fe-4448-b687-9400041287d4</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;In your last snippet (before the log snippet), you use the parameters from the connected event, while the event type is actually BLE_GAP_EVT_CONN_PARAM_UPDATE, so they will not be correctly populated.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Try replacing:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;case BLE_GAP_EVT_CONN_PARAM_UPDATE:
            if(userRequest == UR_CONNINUPDT)
            {
              uint16_t max =  p_ble_evt-&amp;gt;evt.gap_evt.params.connected.conn_params.max_conn_interval;
              uint16_t min =  p_ble_evt-&amp;gt;evt.gap_evt.params.connected.conn_params.min_conn_interval;
              NRF_LOG_INFO(&amp;quot;Conn.Interval is updated. Max: 0x%X, Min: 0x%X, Max: %d, Min: %d&amp;quot;, max, min, max, min);
              conn_params_updated = true;
            }
            break;&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;with:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;case BLE_GAP_EVT_CONN_PARAM_UPDATE:
            if(userRequest == UR_CONNINUPDT)
            {
              uint16_t max =  p_ble_evt-&amp;gt;evt.gap_evt.params.conn_param_update.conn_params.max_conn_interval;
              uint16_t min =  p_ble_evt-&amp;gt;evt.gap_evt.params.conn_param_update.conn_params.min_conn_interval;
              NRF_LOG_INFO(&amp;quot;Conn.Interval is updated. Max: 0x%X, Min: 0x%X, Max: %d, Min: %d&amp;quot;, max, min, max, min);
              conn_params_updated = true;
            }
            break;&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;And see if that solves it.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>