<?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>Timer not going off for 7-50 seconds</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/21987/timer-not-going-off-for-7-50-seconds</link><description>Hi, 
 We&amp;#39;re working on the connection params negotiation. Therefore we need a timer to go off 2 seconds after connecting to send a conn params change request. 
 Most of the time this works as expected. We toggle some pins at timer start and in the handler</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 25 May 2017 09:57:10 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/21987/timer-not-going-off-for-7-50-seconds" /><item><title>RE: Timer not going off for 7-50 seconds</title><link>https://devzone.nordicsemi.com/thread/86278?ContentTypeID=1</link><pubDate>Thu, 25 May 2017 09:57:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:92fdada2-8c15-44f6-beb2-70f98fc940d5</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;It looks good Thomas.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Timer not going off for 7-50 seconds</title><link>https://devzone.nordicsemi.com/thread/86277?ContentTypeID=1</link><pubDate>Wed, 24 May 2017 12:39:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a72fc962-586b-4ac8-b793-9c32ce5650ad</guid><dc:creator>Thomas</dc:creator><description>&lt;p&gt;Thanks! This seems to work. I&amp;#39;ve pushed the changes I&amp;#39;ve made (based on your changes) to &lt;a href="https://github.com/thburghout/nrf51-ble-dongle/commit/32ca6b7cd65560e1e9cbc53d7c6c5009cc965ca9"&gt;my repo&lt;/a&gt;. I&amp;#39;m assuming I configured it okay, can you confirm this?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Timer not going off for 7-50 seconds</title><link>https://devzone.nordicsemi.com/thread/86276?ContentTypeID=1</link><pubDate>Wed, 24 May 2017 11:45:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9e9c6b48-51bf-44c0-82bb-2e247c1264c6</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi again Thomas,&lt;/p&gt;
&lt;p&gt;Attached is the quick test with SDK v11 and app_timer from SDK v13. It seems to fix the issue. You can have a look:
&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/ble_5F00_app_5F00_uart-_2D00_-TestAppTimer.zip"&gt;ble_app_uart - TestAppTimer.zip&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Timer not going off for 7-50 seconds</title><link>https://devzone.nordicsemi.com/thread/86274?ContentTypeID=1</link><pubDate>Wed, 24 May 2017 11:08:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0f201259-374b-4a54-8d2b-51d61d61a9fe</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Could you try to test if you can use the app_timer from SDK v13 in SDK v10 ? As far as I can see, the only thing you need to change is the interrupt priority (nRF52 has 8 priority when nRF51 has 4) Make sure you update the app.timer.h also.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Timer not going off for 7-50 seconds</title><link>https://devzone.nordicsemi.com/thread/86273?ContentTypeID=1</link><pubDate>Wed, 24 May 2017 11:02:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cdd652b1-1751-47e0-b96a-c05017d8c8b1</guid><dc:creator>Thomas</dc:creator><description>&lt;p&gt;We&amp;#39;re using SDK 10.0.0 since we&amp;#39;re developing for a nrf51822.
So we can&amp;#39;t expect a fix from Nordic any time soon?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Timer not going off for 7-50 seconds</title><link>https://devzone.nordicsemi.com/thread/86272?ContentTypeID=1</link><pubDate>Wed, 24 May 2017 10:55:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bfe07b89-cc50-4343-8a9e-019aff3e0ce7</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Thomas,&lt;/p&gt;
&lt;p&gt;Which SDK are testing with  ? We got another report about a similar problem &lt;a href="https://devzone.nordicsemi.com/question/135420/indicating-advertisement-with-a-timer/"&gt;here&lt;/a&gt;. The issue happens when you start/stop app_timer inside an event handler.&lt;/p&gt;
&lt;p&gt;We found that after the update of the app_timer in SDK v13, the issue was fixed. I don&amp;#39;t think it would works out of the box when back port it to SDK v11 or earlier for nRF51 , but it worth to try.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Timer not going off for 7-50 seconds</title><link>https://devzone.nordicsemi.com/thread/86275?ContentTypeID=1</link><pubDate>Wed, 24 May 2017 08:59:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0ec580c5-7f9a-4351-bd18-c4bc969e8d88</guid><dc:creator>Thomas</dc:creator><description>&lt;p&gt;@hungbui I&amp;#39;ve updated the question, can you take a look? We&amp;#39;re suspecting a bug in the library but I&amp;#39;m curious what you think.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Timer not going off for 7-50 seconds</title><link>https://devzone.nordicsemi.com/thread/86271?ContentTypeID=1</link><pubDate>Fri, 19 May 2017 11:11:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d971b991-573f-4dfc-8187-080d46e9a724</guid><dc:creator>Thomas</dc:creator><description>&lt;p&gt;Okay, we don&amp;#39;t seem to reproduce the issue on the ble_app_hrs example. Thus we don&amp;#39;t know what is causing this and we&amp;#39;re gonna investigate our own code. I&amp;#39;ll post updates here.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Timer not going off for 7-50 seconds</title><link>https://devzone.nordicsemi.com/thread/86270?ContentTypeID=1</link><pubDate>Tue, 16 May 2017 14:22:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d316be0a-9ab3-43b6-ab1a-9d30f1340126</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;@Thomas: This looks very strange. Which SDK are you testing with ?&lt;/p&gt;
&lt;p&gt;If you try on a fresh SDK and simply modify main.c of ble_app_hrs example to start a timer e.g m_battery_timer_id when in BLE_GAP_EVT_CONNECTED event in on_ble_evt() , would you see the same issue ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Timer not going off for 7-50 seconds</title><link>https://devzone.nordicsemi.com/thread/86269?ContentTypeID=1</link><pubDate>Fri, 12 May 2017 13:39:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8da14534-b29f-4d1f-b32b-10bf8004e149</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Thomas,&lt;/p&gt;
&lt;p&gt;Please post your code, on how you initialize the timer. How often is that &amp;quot;sometimes&amp;quot; ? What would trigger that ?
Have you tried to test with our example, such as the ble_app_hrs. We have a timer to send battery notification, you can use that to check if it has the same issue.&lt;/p&gt;
&lt;p&gt;The ble_conn_params won&amp;#39;t trigger the time if the connection parameter match with what the chip expected. Please have a look at conn_params_negotiation() function.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>