<?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>L2CAP Connection Parameter update request by peripheral</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/99161/l2cap-connection-parameter-update-request-by-peripheral</link><description>Hello, 
 I am using nrf52832 as a peripheral and running SD S112, nordic UART Profile and SDK 17.1.0 on it. 
 I have set the min connection interval to 10ms and max connection interval to 500ms. 
 When connecting to android initially android is setting</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 09 May 2023 11:59:13 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/99161/l2cap-connection-parameter-update-request-by-peripheral" /><item><title>RE: L2CAP Connection Parameter update request by peripheral</title><link>https://devzone.nordicsemi.com/thread/424515?ContentTypeID=1</link><pubDate>Tue, 09 May 2023 11:59:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c4d450f3-dd0a-4e60-b1bb-f37bfa12b253</guid><dc:creator>Karl Ylvisaker</dc:creator><description>[quote user="johnmjustin"]Thank you for working on this.[/quote]
&lt;p&gt;No problem at all, I am happy to help! :)&amp;nbsp;&lt;/p&gt;
[quote user="johnmjustin"]Yes I did remove all of these and tested but the connection breaks/disconnects after negotiation.[/quote]
&lt;p&gt;What was the reason given for the disconnection? Was it the peripheral that terminated the connection?&lt;br /&gt;I will check whether the SoftDevice always assumes that an update request will be sent if the parameters used are outside of the specified preference for the peripheral.&lt;/p&gt;
[quote user="johnmjustin"]&lt;p&gt;This works and the update parameter request doesn&amp;#39;t happen.&lt;/p&gt;
&lt;p&gt;I have set Minimum connection interval to 7.5ms&lt;/p&gt;
&lt;p&gt;#define MIN_CONN_INTERVAL&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;MSEC_TO_UNITS(&lt;span&gt;7.5&lt;/span&gt;, UNIT_1_25_MS)&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Is setting to 7.5ms legal value and soft device recognize it?&lt;/p&gt;[/quote]
&lt;p&gt;Great, I&amp;#39;m glad to hear that this negates your issue - there should indeed not be any connection parameter update requests if the connection parameters in use are within the preferences of the peripheral.&lt;br /&gt;&lt;br /&gt;A 7.5 ms connection interval is the shortest legal interval, so this is an acceptable value for the MIN_CONN_INTERVAL.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: L2CAP Connection Parameter update request by peripheral</title><link>https://devzone.nordicsemi.com/thread/424374?ContentTypeID=1</link><pubDate>Mon, 08 May 2023 20:13:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bfb8e02c-7ee4-4815-a525-d3f47d7a1142</guid><dc:creator>Justin</dc:creator><description>&lt;p&gt;Thank you for working on this.&lt;/p&gt;
[quote userid="87869" url="~/f/nordic-q-a/99161/l2cap-connection-parameter-update-request-by-peripheral/424170"]Did you remove all of these when you tested this last?[/quote]
&lt;p&gt;Yes I did remove all of these and tested but the connection breaks/disconnects after negotiation.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote userid="87869" url="~/f/nordic-q-a/99161/l2cap-connection-parameter-update-request-by-peripheral/424170"]An alternative way to stop these updates is just to increase the preferences of the peripheral to span the whole possible range (7.5 ms to 4 s) so that whatever connection parameters the central chooses will be within the peripheral preferences.[/quote]
&lt;p&gt;This works and the update parameter request doesn&amp;#39;t happen.&lt;/p&gt;
&lt;p&gt;I have set Minimum connection interval to 7.5ms&lt;/p&gt;
&lt;p class="p1"&gt;#define MIN_CONN_INTERVAL&lt;span class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;MSEC_TO_UNITS(&lt;span class="s1"&gt;7.5&lt;/span&gt;, UNIT_1_25_MS)&lt;/p&gt;
&lt;p class="p1"&gt;&lt;/p&gt;
&lt;p class="p1"&gt;Is setting to 7.5ms legal value and soft device recognize it?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: L2CAP Connection Parameter update request by peripheral</title><link>https://devzone.nordicsemi.com/thread/424170?ContentTypeID=1</link><pubDate>Mon, 08 May 2023 08:37:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6c578a52-ab69-47a1-a9c0-d9c5438000ba</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello again, Justin&lt;br /&gt;&lt;br /&gt;Thank you for your patience with this - I was out of office last week, but now I am back.&lt;/p&gt;
[quote user="johnmjustin"]Can you please check in the soft device code what triggers the parameter update request call ?[/quote]
&lt;p&gt;The peripheral&amp;#39;s parameter update request is configured using the following:&lt;br /&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;    cp_init.first_conn_params_update_delay = FIRST_CONN_PARAMS_UPDATE_DELAY;
    cp_init.next_conn_params_update_delay  = NEXT_CONN_PARAMS_UPDATE_DELAY;
    cp_init.max_conn_params_update_count   = MAX_CONN_PARAMS_UPDATE_COUNT;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Did you remove all of these when you tested this last?&lt;br /&gt;&lt;br /&gt;An alternative way to stop these updates is just to increase the preferences of the peripheral to span the whole possible range (7.5 ms to 4 s) so that whatever connection parameters the central chooses will be within the peripheral preferences.&lt;/p&gt;
[quote user="johnmjustin"]This happens only with the android and not seeing the parameter update request on windows BLE.&amp;nbsp;[/quote]
&lt;p&gt;Do you have sniffer traces of this? The peripheral does not know if it is connected to an android or a windows PC, so I would assume that this means that the connection to Windows already is using parameters within the preferred range of the peripheral.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: L2CAP Connection Parameter update request by peripheral</title><link>https://devzone.nordicsemi.com/thread/423336?ContentTypeID=1</link><pubDate>Tue, 02 May 2023 14:05:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0371aa94-0d8f-478d-ad27-ca3ad5283133</guid><dc:creator>Justin</dc:creator><description>&lt;p&gt;Hello Karl,&lt;/p&gt;
&lt;p&gt;Any update on this out be great :)&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: L2CAP Connection Parameter update request by peripheral</title><link>https://devzone.nordicsemi.com/thread/423143?ContentTypeID=1</link><pubDate>Mon, 01 May 2023 19:20:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:10afd63b-955c-43fc-ad5c-69abfa87471d</guid><dc:creator>Justin</dc:creator><description>&lt;p&gt;Hi Karl,&lt;/p&gt;
&lt;p&gt;Removing it is not solving the issue. The parameter update request is still being sent within a second after connection. Looks like removing it initializes the parameter with value zero.&lt;/p&gt;
&lt;p&gt;Can you please check in the soft device code what triggers the parameter update request call ?&lt;/p&gt;
&lt;p&gt;This happens only with the android and not seeing the parameter update request on windows BLE.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Justin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: L2CAP Connection Parameter update request by peripheral</title><link>https://devzone.nordicsemi.com/thread/422905?ContentTypeID=1</link><pubDate>Fri, 28 Apr 2023 08:30:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e2cd0f8f-aa02-4ebe-a729-3a4cbe0d12fd</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;If you remove it from the conn_params_init it will default to not being sent.&lt;br /&gt;&lt;br /&gt;Give this a try and do not hesitate to let me know if you encounter any issues or questions! :)&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: L2CAP Connection Parameter update request by peripheral</title><link>https://devzone.nordicsemi.com/thread/422836?ContentTypeID=1</link><pubDate>Thu, 27 Apr 2023 17:10:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d37c1301-ec15-440f-a100-b77808755580</guid><dc:creator>Justin</dc:creator><description>[quote userid="87869" url="~/f/nordic-q-a/99161/l2cap-connection-parameter-update-request-by-peripheral/422690"]You can disable this request, which is configured in &lt;em&gt;conn_params_init&lt;/em&gt;, if you would like to, or ignore it on the central side.[/quote]
&lt;p&gt;How can I disable the request?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;On the central side which is an android app we don&amp;#39;t have easy way to ignore the request.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: L2CAP Connection Parameter update request by peripheral</title><link>https://devzone.nordicsemi.com/thread/422690?ContentTypeID=1</link><pubDate>Thu, 27 Apr 2023 09:55:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6b0b335d-961e-4656-b5db-dd4450cd3b90</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello,&lt;br /&gt;&lt;br /&gt;The default behavior of the BLE UART peripheral example in the nRF5 SDK is to send a connection parameter update request 5 seconds into the connection, as configured by the FIRST_CONN_PARAMS_UPDATE_DELAY define. You can disable this request, which is configured in &lt;em&gt;conn_params_init&lt;/em&gt;, if you would like to, or ignore it on the central side.&lt;br /&gt;&lt;br /&gt;The peripheral may only ever&amp;nbsp;&lt;em&gt;request&amp;nbsp;&lt;/em&gt;an update of the parameters, but the central can for any reason reject this request and continue to use whichever parameters it would like.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>