<?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>[Current Time Service not found, device Reset, why?]</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/16350/current-time-service-not-found-device-reset-why</link><description>Hi, 
 i want to use a current time service in nordic app (nRF Toolbox) for the bgm profile.
I see, that when the cts service is not found, the micro reset. Why? 
 Someone, can please me give some information about that? 
 Thanks,
Anna</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 14 Sep 2016 08:43:05 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/16350/current-time-service-not-found-device-reset-why" /><item><title>RE: [Current Time Service not found, device Reset, why?]</title><link>https://devzone.nordicsemi.com/thread/62511?ContentTypeID=1</link><pubDate>Wed, 14 Sep 2016 08:43:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a4ea5d40-6d3e-4a4d-b96b-df767494f84f</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;@Ana: Do you know why you received the PM_EVT_CONN_SEC_SUCCEEDED event twice ?&lt;/p&gt;
&lt;p&gt;I assume you received 2 times the PM_EVT_CONN_SEC_SUCCEEDED because the phone updated the encryption key (which is quite rare) . You can use the procedure flag pm_evt.params.conn_sec_succeeded.procedure to distinguish if it&amp;#39;s the first encryption (PM_LINK_SECURED_PROCEDURE_BONDING) or it&amp;#39;s the updated encryption (PM_LINK_SECURED_PROCEDURE_ENCRYPTION)&lt;/p&gt;
&lt;p&gt;Or you can simply use your own flag to mark if it&amp;#39;s the first time so you only do service discovery once. Or you can also just ignore the error code busy.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [Current Time Service not found, device Reset, why?]</title><link>https://devzone.nordicsemi.com/thread/62513?ContentTypeID=1</link><pubDate>Wed, 14 Sep 2016 07:59:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:245ecb79-3596-4a42-b11b-8aefc1dc8623</guid><dc:creator>annapalu</dc:creator><description>&lt;p&gt;Hi,
the question now, is : What is the better moment to starts the db_discovery? Because in my example i use a peer manager ( in the example cts use a device manager). I understand that the problem of reset is: app send two times the event PM_EVT_CONN_SEC_SUCCEEDED, and so the code execute twice the ble_db_discovery_start(), the second time is busy and starts the reset::&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [Current Time Service not found, device Reset, why?]</title><link>https://devzone.nordicsemi.com/thread/62512?ContentTypeID=1</link><pubDate>Tue, 13 Sep 2016 13:41:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5b8e2e95-c17c-44df-bfc7-8625aa921491</guid><dc:creator>annapalu</dc:creator><description>&lt;p&gt;Thank you so much. It&amp;#39;s very useful,. In understand that is&amp;#39; the db discovery that is busy.Now i must understand i resolve the problem to void that the watchdog starts.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [Current Time Service not found, device Reset, why?]</title><link>https://devzone.nordicsemi.com/thread/62514?ContentTypeID=1</link><pubDate>Tue, 13 Sep 2016 12:57:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e3d2eb0c-abff-4d42-b1d5-7e828576970a</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;You may want to have a look &lt;a href="https://devzone.nordicsemi.com/question/60125/my-device-is-freezing-and-restarting/#60126"&gt;here&lt;/a&gt;.
You simply need to add the breakpoint inside the app_error_handler() to find out the file name and line and error code.
Also checking out what happens after you do service discovery and couldn&amp;#39;t find the service you expecting, would it trigger an assertion and then to a reset ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [Current Time Service not found, device Reset, why?]</title><link>https://devzone.nordicsemi.com/thread/62510?ContentTypeID=1</link><pubDate>Tue, 13 Sep 2016 12:48:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:73b8478b-327e-47b6-b2f8-9e0dee981ad8</guid><dc:creator>annapalu</dc:creator><description>&lt;p&gt;I see that the same behavior, it&amp;#39;s present if run only the ble_cts_service. First time connected and log that the cts is not present, second time reset the board.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [Current Time Service not found, device Reset, why?]</title><link>https://devzone.nordicsemi.com/thread/62508?ContentTypeID=1</link><pubDate>Tue, 13 Sep 2016 10:48:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:830915e9-2a27-4f3c-bef5-329cd32426c8</guid><dc:creator>annapalu</dc:creator><description>&lt;p&gt;Hi hung bui,&lt;/p&gt;
&lt;p&gt;i use the example ble_app_gls_s132 and add the cts service, using example the ble_cts_s132. The first one the connection be successful, and the log inform me that the app doesn&amp;#39;t have the cts service. If i disconnected and try to connect again the board reset. And i don&amp;#39;t understand why, i try to use a breakpoints but they don&amp;#39;t help me, if i press F10 to go on inside the code, the board reset,maybe, for the timer that are started!&lt;/p&gt;
&lt;p&gt;thanks,
Anna&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [Current Time Service not found, device Reset, why?]</title><link>https://devzone.nordicsemi.com/thread/62509?ContentTypeID=1</link><pubDate>Tue, 13 Sep 2016 10:26:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bce08a04-f2e5-4805-8b66-7f897230e1fb</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;@Anna: What exactly profile are you implementing ? You based on our example or you wrote your own ?
The chip resets most likely because of an assertion. I would suggest you to add a break point in the app error handler and see what cause assertion, which line, and which error code.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>