<?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>Softdevice proper re-enable services initialization problems</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/47146/softdevice-proper-re-enable-services-initialization-problems</link><description>Hi, I&amp;#39;m having problems with proper softdevice reinitialization. What I&amp;#39;m trying to do is work out proper reinit solution - what I&amp;#39;m doing is enabling BLE_stack and all the other things in main.c and start advertising for 10 seconds. After 10 secons I</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 14 May 2019 15:48:47 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/47146/softdevice-proper-re-enable-services-initialization-problems" /><item><title>RE: Softdevice proper re-enable services initialization problems</title><link>https://devzone.nordicsemi.com/thread/187057?ContentTypeID=1</link><pubDate>Tue, 14 May 2019 15:48:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:61926d24-7309-4851-b8aa-e1b896fddf71</guid><dc:creator>XorLabs</dc:creator><description>&lt;p&gt;Thank you for all your suggestions, will use disconnect and stop advertising solution :) also changed clock accuracy as you&amp;#39;ve mentioned, thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Softdevice proper re-enable services initialization problems</title><link>https://devzone.nordicsemi.com/thread/186424?ContentTypeID=1</link><pubDate>Fri, 10 May 2019 12:26:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7dab4811-1d87-4280-80c7-befa53c09e62</guid><dc:creator>Sigurd</dc:creator><description>[quote userid="77163" url="~/f/nordic-q-a/47146/softdevice-proper-re-enable-services-initialization-problems/186404"]this is the scenario I think would be most energy effective.[/quote]
&lt;p&gt;The Softdevice is powered optimized, and you will not save any significant amunt of energy by&amp;nbsp;disabling it. You only need to disconnect from the central, and turn off advertising. You start your 3 hour timer, and when the timer expires, you start the advertising again. There is no need to disable the softdevice to save energy.&lt;/p&gt;
&lt;p&gt;Some additional notes:&lt;/p&gt;
&lt;p&gt;Remember to turn off logging to save power, i.e. set&amp;nbsp;NRF_LOG_ENABLED to 0 in sdk_config.h&lt;/p&gt;
&lt;p&gt;Your clock configuration is not correct, when using the internal RC oscillator as LF clock source, you need to set the accuracy to&amp;nbsp;&lt;span&gt;NRF_CLOCK_LF_ACCURACY_500_PPM.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Softdevice proper re-enable services initialization problems</title><link>https://devzone.nordicsemi.com/thread/186404?ContentTypeID=1</link><pubDate>Fri, 10 May 2019 11:49:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:413c9c68-1a49-4ed6-9525-be13960ab392</guid><dc:creator>XorLabs</dc:creator><description>&lt;p&gt;Hi, thanks for your response.&lt;/p&gt;
&lt;p&gt;10 secs is just for testing purposes, on my main application I would need to disable softdevice, go to sleep for about 3 hours, wake up, take measurements, enable soft device, start advertising, go into connection with central send data, switch off softdevice and go back to sleep for next 3 hours (with system ON solution for keeping RTC alive).&lt;/p&gt;
&lt;p&gt;The fact is I&amp;#39;m beginner with nrf development and this is the scenario I think would be most energy effective. I may be in a mistake so if you could provide me better and more logical solution I would be very grateful. The device will be battery powered.&lt;br /&gt;&lt;br /&gt;Thanks&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Softdevice proper re-enable services initialization problems</title><link>https://devzone.nordicsemi.com/thread/186396?ContentTypeID=1</link><pubDate>Fri, 10 May 2019 11:36:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d7bbcdf6-4f55-4709-bd8b-dde4bb93a3e1</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Before looking into the issue, could you explain why you need to disable and enable the softdevice every 10 sec?&lt;/p&gt;
&lt;p&gt;It&amp;#39;s possible to stop the advertising, change the advertisng data, update&amp;nbsp;characteristics data, start advertising again, etc, etc, etc, without &lt;span&gt;disabling/enabling the SoftDevice...&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Softdevice proper re-enable services initialization problems</title><link>https://devzone.nordicsemi.com/thread/186390?ContentTypeID=1</link><pubDate>Fri, 10 May 2019 11:28:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:37614ce9-27fc-4a45-bba0-1da21941d746</guid><dc:creator>XorLabs</dc:creator><description>&lt;p&gt;I&amp;#39;ve noticed that advertising_init() and services_init() generate the problems. If I comment out both softdevice works fine except that services aren&amp;#39;t available. So I think that advertising init should be removed permanently, but I don&amp;#39;t know what to do about services_init(). There has to be something that has to be done differently in order to enable services correctly.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>