<?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 Disconnect seems to stop first application timer</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/66289/gap-disconnect-seems-to-stop-first-application-timer</link><description>Using SDK 15.3 and S132. 
 I&amp;#39;m having similar behavior to the thread below: 
 https://devzone.nordicsemi.com/f/nordic-q-a/12066/gap-disconnect-stops-app-timer 
 After disconnecting with my nrf52 devkit, the conn_parameters module seems to stop my timer</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 28 Sep 2020 08:33:20 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/66289/gap-disconnect-seems-to-stop-first-application-timer" /><item><title>RE: GAP Disconnect seems to stop first application timer</title><link>https://devzone.nordicsemi.com/thread/271696?ContentTypeID=1</link><pubDate>Mon, 28 Sep 2020 08:33:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a4039662-499f-411f-b554-b0633da42cf7</guid><dc:creator>Ivan Herrera</dc:creator><description>&lt;p&gt;I&amp;#39;m just going to port everything to the latest SDK and verify all the code. I&amp;#39;ll let you know if the issue persists.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GAP Disconnect seems to stop first application timer</title><link>https://devzone.nordicsemi.com/thread/271521?ContentTypeID=1</link><pubDate>Fri, 25 Sep 2020 13:00:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4d6f8898-4853-4bea-8f06-f0cd20fa6f73</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Is there some way for me to reproduce this on an nRF52 DK?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GAP Disconnect seems to stop first application timer</title><link>https://devzone.nordicsemi.com/thread/271472?ContentTypeID=1</link><pubDate>Fri, 25 Sep 2020 09:26:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e8ac8369-9a93-4c74-867b-500bd4b33d86</guid><dc:creator>Ivan Herrera</dc:creator><description>&lt;p&gt;After a little bit more of debugging I found out that initially the timers start out with different ID&amp;#39;s, but that after starting and stopping several timers, the pointer of the conn_params_instance gets changed to either another timer (my application timer in this case), or by 0x00000000. This is caused by app_timer.c&amp;#39;s &amp;#39;timer_list_insert&amp;#39; function, which is modifying p_timer-&amp;gt;next. Still figuring out why that is happening.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/Schermafbeelding-2020_2D00_09_2D00_25-om-11.21.26.png" alt=" " /&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GAP Disconnect seems to stop first application timer</title><link>https://devzone.nordicsemi.com/thread/271391?ContentTypeID=1</link><pubDate>Thu, 24 Sep 2020 16:14:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:956deeab-f5fb-4f15-8e60-3c12162bc59a</guid><dc:creator>Ivan Herrera</dc:creator><description>&lt;p&gt;No, you are correct. After some more debugging this is what seems to be happening.&lt;/p&gt;
&lt;p&gt;1. I start my application timer&lt;/p&gt;
&lt;p&gt;2. I connect to my DK. ble_conn_params starts a timer &amp;#39;update_timeout_handler&amp;#39;. (p_instance-&amp;gt;timer_id)&lt;/p&gt;
&lt;p&gt;3. I disconnect within a couple seconds. ble_conn_params cancels&amp;nbsp;&lt;span&gt;p_instance-&amp;gt;timer_id, but that now&amp;nbsp;doesn&amp;#39;t seem to be the original timer, but it seems to cancel one of my application timers?&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;4. After another second, my application errors because the &amp;#39;update_timeout_handler&amp;#39; wasn&amp;#39;t properly cancelled -&amp;gt; tried to update parameters on an instance which had no running connection.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I will report back once I find out more&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GAP Disconnect seems to stop first application timer</title><link>https://devzone.nordicsemi.com/thread/271346?ContentTypeID=1</link><pubDate>Thu, 24 Sep 2020 13:13:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ff7df48a-eb51-4479-aa03-485462ed1928</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote user=""]Why does my application timer and the conn_params_timer have the same ID?&amp;nbsp;[/quote]
&lt;p&gt;&amp;nbsp;Do they? How did you initialize them?&lt;/p&gt;
&lt;p&gt;The ble_conn_params.c should use it&amp;#39;s own instance of app_timers. It has one app_timer for every connection interval.&lt;/p&gt;
&lt;p&gt;Is there some way for me to reproduce this on a DK?&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>