<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://test-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>low power modes with zephyr and HCI</title><link>https://test-devzone.nordicsemi.com/f/nordic-q-a/87466/low-power-modes-with-zephyr-and-hci</link><description>Hello, I am looking into using zephyr with a host controller configuration on separate chips, where the controller is an nrf52832 chip. I was wondering how would the power control work in that case. are there any specific commands to turn off the ble</description><dc:language>en-US</dc:language><generator>Telligent Community 13 Non-Production</generator><lastBuildDate>Tue, 03 May 2022 08:12:19 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://test-devzone.nordicsemi.com/f/nordic-q-a/87466/low-power-modes-with-zephyr-and-hci" /><item><title>RE: low power modes with zephyr and HCI</title><link>https://test-devzone.nordicsemi.com/thread/365895?ContentTypeID=1</link><pubDate>Tue, 03 May 2022 08:12:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2ffd87bd-635a-4096-a3ac-1cb8ab83f35e</guid><dc:creator>user75734</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;I see, thank you for explaining. The HCI power control is for changing the TX power dynamically, and not the actual power consumption of an HCI device. I think you need to set the nRF52832 to&amp;nbsp;a low power mode somehow when it&amp;#39;s done with BLE communication.&lt;/p&gt;
&lt;p&gt;You can check out the &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/samples/bluetooth/hci_lpuart/README.html"&gt;Bluetooth HCI low power UART sample&lt;/a&gt; that is based on the HCI UART sample you linked to, but using the &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/drivers/uart_nrf_sw_lpuart.html#uart-nrf-sw-lpuart"&gt;Low power UART driver&lt;/a&gt; for HCI UART communication. This should result in lower power consumption as you can shut down the HF clock when the UART is in an idle state. When using the Low power UART driver, I guess you could tell the NRF52 to go to sleep whenever the UART goes idle, and wake up on activity on the UART line for example.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: low power modes with zephyr and HCI</title><link>https://test-devzone.nordicsemi.com/thread/365831?ContentTypeID=1</link><pubDate>Mon, 02 May 2022 15:32:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d93a39e4-7db3-448a-9660-76106d0b7417</guid><dc:creator>user8033</dc:creator><description>&lt;p&gt;thank you for your answer.&lt;/p&gt;
&lt;p&gt;what I meant is run the ble host on the nrf52 (&lt;a href="https://docs.zephyrproject.org/2.7.0/samples/bluetooth/hci_uart/README.html"&gt;this sample from zephyr&lt;/a&gt;), then run the application on a separate processor most likely an stm32.&lt;br /&gt;and connect both over HCI.&lt;br /&gt;in such a configuration I was wondering if the linked sample above takes care of the low power control or is there any additional steps that needs to be taken on the application side to turn off the bluetooth chip.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: low power modes with zephyr and HCI</title><link>https://test-devzone.nordicsemi.com/thread/365780?ContentTypeID=1</link><pubDate>Mon, 02 May 2022 12:50:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f7fa59bf-1644-4b7b-9d24-6c8a5b7fadfc</guid><dc:creator>user75734</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;I&amp;#39;m not sure I understand what you mean here. You would use the nRF52832 as the BLE module in this configuration, right? You will need to call a sleep function in order to go to the lowest power modes indeed. You can see for example the &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/samples/boards/nrf/system_off/README.html"&gt;nRF5x system off demo&lt;/a&gt; that shows you how to go to system OFF on an nRF5x series device. In short the k_sleep() function is what is used to put the device to sleep.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>