<?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>Weird behaviour when dynamic updating connection parameters</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/82121/weird-behaviour-when-dynamic-updating-connection-parameters</link><description>Hi all, 
 I&amp;#39;m working on a project using the nrf52832 with SDK 15.3.0. Our device is battery powered and in peripheral mode. When a central connects it sends +- 300 bytes and disconnects. Then the device goes back to sleep and advertises itself at a slow</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 01 Dec 2021 10:06:02 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/82121/weird-behaviour-when-dynamic-updating-connection-parameters" /><item><title>RE: Weird behaviour when dynamic updating connection parameters</title><link>https://devzone.nordicsemi.com/thread/341469?ContentTypeID=1</link><pubDate>Wed, 01 Dec 2021 10:06:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bfae7541-bf09-4f14-9598-c3049b9b9c6a</guid><dc:creator>Jur</dc:creator><description>&lt;p&gt;Fair enough! Thanks a lot for taking the time to look into this!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Weird behaviour when dynamic updating connection parameters</title><link>https://devzone.nordicsemi.com/thread/341443?ContentTypeID=1</link><pubDate>Wed, 01 Dec 2021 08:07:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f26f1ff8-5fa0-462d-b74b-f1b60e5d11fa</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Good to hear you have solved the issue.&lt;/p&gt;
&lt;p&gt;A peripheral device can only request the central device to initiate a connection parameter update, so that should explain your UPDATE 1.&lt;/p&gt;
&lt;p&gt;Typically a central device will re-connect using the previously used connection parameters yes.&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Weird behaviour when dynamic updating connection parameters</title><link>https://devzone.nordicsemi.com/thread/341387?ContentTypeID=1</link><pubDate>Tue, 30 Nov 2021 19:16:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4ffd7ea0-4c9e-4977-ae54-ea510f16299b</guid><dc:creator>Jur</dc:creator><description>&lt;p&gt;UPDATE: it seems like I needed to use&amp;nbsp;&lt;pre class="ui-code" data-mode="c_cpp"&gt;ble_conn_params_change_conn_params&lt;/pre&gt;&amp;nbsp;instead of&amp;nbsp;&lt;pre class="ui-code" data-mode="c_cpp"&gt;sd_ble_gap_conn_param_update&lt;/pre&gt;!&lt;br /&gt;It seems to work OK now, thanks for looking into this :)&lt;br /&gt;&lt;br /&gt;UPDATE2:&lt;br /&gt;&lt;br /&gt;I have one more question. ble_conn_params_change_conn_params takes a connection parameter, and when a device disconnects i would like to reset the desired connection parameters back to the original fast parameters. How would I do this without an active connection?&lt;br /&gt;&lt;br /&gt;UPDATE3:&lt;br /&gt;&lt;br /&gt;This seems to be the default behaviour :)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Weird behaviour when dynamic updating connection parameters</title><link>https://devzone.nordicsemi.com/thread/341384?ContentTypeID=1</link><pubDate>Tue, 30 Nov 2021 19:03:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a3239e41-a355-4288-9e2f-2c9549619cf9</guid><dc:creator>Jur</dc:creator><description>&lt;p&gt;Hi Kenneth,&lt;br /&gt;&lt;br /&gt;A little change: The low power connection parameters are now applied after the central writes a certain payload to the main characteristic, instead of enabling notifications:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1638298204025v1.png" alt=" " /&gt;&lt;br /&gt;You can see the L2CAP package after the payload is sent. The problem is that right after the LE Connection Update Complete package, my device is sending a NEW L2CAP which requests to go back to the previous settings..&lt;br /&gt;&lt;br /&gt;I do not understand why this is happening at all. Could this have something to do with the values passed to ble_conn_params_init ?&lt;br /&gt;&lt;br /&gt;Here is a PCAP containing the communication.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/connparams2.pcap"&gt;devzone.nordicsemi.com/.../connparams2.pcap&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Weird behaviour when dynamic updating connection parameters</title><link>https://devzone.nordicsemi.com/thread/341273?ContentTypeID=1</link><pubDate>Tue, 30 Nov 2021 12:27:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:80a417a1-3775-4f4d-a957-bcdf372f64db</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Can you share your sniffer log? Then I can show you how to find it.&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Weird behaviour when dynamic updating connection parameters</title><link>https://devzone.nordicsemi.com/thread/341243?ContentTypeID=1</link><pubDate>Tue, 30 Nov 2021 10:39:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5f6db437-4aaf-4e0b-a274-b97421fbd920</guid><dc:creator>Jur</dc:creator><description>&lt;p&gt;Hi Kenneth, Thanks for your reply! Would you happen to have any indication of how long this is supposed to take?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Weird behaviour when dynamic updating connection parameters</title><link>https://devzone.nordicsemi.com/thread/341135?ContentTypeID=1</link><pubDate>Mon, 29 Nov 2021 16:28:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6db72cb4-cb9f-468e-a6b5-c85101a61135</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Typically when agreeing on new connection parameters, these parameters will take affect some time in future (look for connection event), this is to ensure if there is packet loss/re-transmissions, that they will not loose connection due to difference in connection parameters.&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>