<?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>How to turn off BLE Device if it is connected?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/117906/how-to-turn-off-ble-device-if-it-is-connected</link><description>Hello, 
 I have a BLE device with the nRF Desktop application, and I want to turn off my device if it is not used, even if it is connected to my PC. I set my CONFIG_CAF_POWER_MANAGER_TIMEOUT=2 so it goes to STATE_SUSPENDED after 2 seconds and should remain</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 15 Jan 2025 11:27:07 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/117906/how-to-turn-off-ble-device-if-it-is-connected" /><item><title>RE: How to turn off BLE Device if it is connected?</title><link>https://devzone.nordicsemi.com/thread/518419?ContentTypeID=1</link><pubDate>Wed, 15 Jan 2025 11:27:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:66597b51-02be-4b01-b19b-51c941d30b52</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Yes. System off doesn&amp;#39;t really work when the device is running a debug session, which would be the case if you attach the RTT Viewer.&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><item><title>RE: How to turn off BLE Device if it is connected?</title><link>https://devzone.nordicsemi.com/thread/518295?ContentTypeID=1</link><pubDate>Tue, 14 Jan 2025 16:05:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:11a8ee2b-8af5-4111-bbc7-b0dc65f4150a</guid><dc:creator>bicanoff</dc:creator><description>&lt;p&gt;&lt;span&gt;Hello,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I tried that sample.&amp;nbsp;&lt;/span&gt;sys_poweroff()&lt;span&gt;&amp;nbsp;does work. However, I had to remove my debugger and close RTT Viewer; otherwise, my device restarts every time&amp;nbsp;&lt;/span&gt;sys_poweroff()&lt;span&gt;&amp;nbsp;is called.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Victor&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to turn off BLE Device if it is connected?</title><link>https://devzone.nordicsemi.com/thread/517974?ContentTypeID=1</link><pubDate>Fri, 10 Jan 2025 14:52:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c2829008-f779-4232-90f5-2ad574bb88da</guid><dc:creator>bicanoff</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I&amp;nbsp;am using NCS 2.6.1. Sorry, I meant&amp;nbsp;&lt;span&gt;CONFIG_CAF_POWER_MANAGER_TIMEOUT. Thank you for your advice. I will check this sample.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Victor&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to turn off BLE Device if it is connected?</title><link>https://devzone.nordicsemi.com/thread/517962?ContentTypeID=1</link><pubDate>Fri, 10 Jan 2025 14:14:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7b3903cc-ff8e-42d9-b2d6-1dfc4e1240a9</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;What NCS version are you using? I can&amp;#39;t find any references to CONFIG_POWER_MANAGER_TIMEOUT.&lt;/p&gt;
&lt;p&gt;I suggest that you check out the sample found in:&lt;/p&gt;
&lt;p&gt;NCS\zephyr\samples\boards\nordic\system_off&lt;/p&gt;
&lt;p&gt;This is a simple sample that just logs something using the uart console, and then enters system off.&amp;nbsp;&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>