<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Wireless MCUのトピックSleep/Low power mode not working in openthread example with k32w061</title>
    <link>https://community.nxp.com/t5/Wireless-MCU/Sleep-Low-power-mode-not-working-in-openthread-example-with/m-p/1342023#M12055</link>
    <description>&lt;P&gt;Hello everybody,&lt;/P&gt;&lt;P&gt;i am working on a projekt based on the openthread example lped_bm. I am using the nxp OM15076-3 board with the router application as connection point and a slef made device with the AW-CU484 Module(Based on k32w061).&lt;BR /&gt;I can establish a conection between the two devices and transmit data sucessfully.&lt;BR /&gt;The power down mode is enabled by the following defines:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;/* Enable low power module */
#define gLpmIncluded_d 1

/* Disable BLE support in low power module */
#define gSupportBle 0

#if gLpmIncluded_d
#define cPWR_UsePowerDownMode TRUE
#define cPWR_FullPowerDownMode TRUE
#endif&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have the problem that the device doesn't go to the power down mode, as expected.&lt;/P&gt;&lt;P&gt;If I set a breakpoint in the function APP_HandleLowPowerOnIdle() in app_init.c I can see, that the low power mode is never activated by calling the PWR_EnterLowPower(). I think the reason is, that the bSleepAllowed variable is set to FALSE and is not set back to TRUE.&lt;BR /&gt;I searched for the functions, that act with the bSleepAllowed variable which are App_AllowDeviceToSleep() and App_DisallowDeviceToSleep(). There is no call of these functions, but the initial state of bSleepAllowed is changed and the power down mode is never activated.&lt;/P&gt;&lt;P&gt;Has anybody sucessfully used the lped_bm example with the power down mode?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Micha&lt;/P&gt;</description>
    <pubDate>Fri, 17 Sep 2021 07:55:45 GMT</pubDate>
    <dc:creator>Micha1</dc:creator>
    <dc:date>2021-09-17T07:55:45Z</dc:date>
    <item>
      <title>Sleep/Low power mode not working in openthread example with k32w061</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/Sleep-Low-power-mode-not-working-in-openthread-example-with/m-p/1342023#M12055</link>
      <description>&lt;P&gt;Hello everybody,&lt;/P&gt;&lt;P&gt;i am working on a projekt based on the openthread example lped_bm. I am using the nxp OM15076-3 board with the router application as connection point and a slef made device with the AW-CU484 Module(Based on k32w061).&lt;BR /&gt;I can establish a conection between the two devices and transmit data sucessfully.&lt;BR /&gt;The power down mode is enabled by the following defines:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;/* Enable low power module */
#define gLpmIncluded_d 1

/* Disable BLE support in low power module */
#define gSupportBle 0

#if gLpmIncluded_d
#define cPWR_UsePowerDownMode TRUE
#define cPWR_FullPowerDownMode TRUE
#endif&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have the problem that the device doesn't go to the power down mode, as expected.&lt;/P&gt;&lt;P&gt;If I set a breakpoint in the function APP_HandleLowPowerOnIdle() in app_init.c I can see, that the low power mode is never activated by calling the PWR_EnterLowPower(). I think the reason is, that the bSleepAllowed variable is set to FALSE and is not set back to TRUE.&lt;BR /&gt;I searched for the functions, that act with the bSleepAllowed variable which are App_AllowDeviceToSleep() and App_DisallowDeviceToSleep(). There is no call of these functions, but the initial state of bSleepAllowed is changed and the power down mode is never activated.&lt;/P&gt;&lt;P&gt;Has anybody sucessfully used the lped_bm example with the power down mode?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Micha&lt;/P&gt;</description>
      <pubDate>Fri, 17 Sep 2021 07:55:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/Sleep-Low-power-mode-not-working-in-openthread-example-with/m-p/1342023#M12055</guid>
      <dc:creator>Micha1</dc:creator>
      <dc:date>2021-09-17T07:55:45Z</dc:date>
    </item>
    <item>
      <title>Re: Sleep/Low power mode not working in openthread example with k32w061</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/Sleep-Low-power-mode-not-working-in-openthread-example-with/m-p/1343417#M12067</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope you are doing well. The &lt;FONT color="#3366FF"&gt;&lt;EM&gt;APP_HandleLowPowerOnIdle&lt;/EM&gt;&lt;/FONT&gt; function checks if the device can go to sleep, to enter the low power mode.&lt;/P&gt;
&lt;P&gt;In the &lt;EM&gt;&lt;FONT color="#3366FF"&gt;main_task&lt;/FONT&gt;&lt;/EM&gt; function, the &lt;EM&gt;&lt;FONT color="#3366FF"&gt;PWR_DisallowDeviceToSleep&lt;/FONT&gt;&lt;/EM&gt; function is called, so the &lt;EM&gt;&lt;FONT color="#3366FF"&gt;PWR_AllowDeviceToSleep&lt;/FONT&gt;&lt;/EM&gt; function must be called to allow to enter sleep mode, and this function is called in the &lt;FONT color="#3366FF"&gt;&lt;EM&gt;Stack_to_APP_Handler&lt;/EM&gt;&lt;/FONT&gt; (case &lt;EM&gt;&lt;STRONG&gt;OT_DEVICE_ROLE_CHILD&lt;/STRONG&gt;&lt;/EM&gt;).&lt;/P&gt;
&lt;P&gt;I have tried with reed_bm example on a K32W and the lped_bm example on another K32W, and I can get into this Low Power Mode.&lt;/P&gt;
&lt;P&gt;Could you please check if the &lt;EM&gt;&lt;FONT color="#3366FF"&gt;PWR_AllowDeviceToSleep&lt;/FONT&gt;&lt;/EM&gt; function is called?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Ricardo&lt;/P&gt;</description>
      <pubDate>Tue, 21 Sep 2021 17:19:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/Sleep-Low-power-mode-not-working-in-openthread-example-with/m-p/1343417#M12067</guid>
      <dc:creator>Ricardo_Zamora</dc:creator>
      <dc:date>2021-09-21T17:19:21Z</dc:date>
    </item>
    <item>
      <title>Re: Sleep/Low power mode not working in openthread example with k32w061</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/Sleep-Low-power-mode-not-working-in-openthread-example-with/m-p/1343752#M12071</link>
      <description>&lt;P&gt;Hi Recardo,&lt;/P&gt;&lt;P&gt;thanks for the reply. To make sure, I don't have any trouble with my board I switched over to the NXP demo Board. I used the example application lped_bm. In this setting I have the same problem. The PWR_EnterLowPower() is not called, because the bSleepAllowed is False(0). The board is connected to a router demo application and I can send messages from the demo board to the router. Do I have to change any define/setting at the demo application to get it working? I am using SDK version 2.6.3. Which version are you using?&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;&lt;P&gt;Micha&lt;/P&gt;</description>
      <pubDate>Wed, 22 Sep 2021 06:47:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/Sleep-Low-power-mode-not-working-in-openthread-example-with/m-p/1343752#M12071</guid>
      <dc:creator>Micha1</dc:creator>
      <dc:date>2021-09-22T06:47:37Z</dc:date>
    </item>
    <item>
      <title>Re: Sleep/Low power mode not working in openthread example with k32w061</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/Sleep-Low-power-mode-not-working-in-openthread-example-with/m-p/1344369#M12078</link>
      <description>&lt;P&gt;Hi Micha,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I didn't change any configuration of the example. I am also using version 2.6.3. Can you identify where the &lt;STRONG&gt;&lt;EM&gt;&lt;FONT color="#3366FF"&gt;bSleepAllowed&lt;/FONT&gt; &lt;/EM&gt;&lt;/STRONG&gt;is changed to FALSE? I am using the example and it has not been changed anywhere.&lt;/P&gt;
&lt;P&gt;With the reed_bm on a K32W and the lped_bm on another, the program executes this function:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Ricardo_Zamora_2-1632339527656.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/156853i16F25BD1BBCA3F72/image-size/large?v=v2&amp;amp;px=999" role="button" title="Ricardo_Zamora_2-1632339527656.png" alt="Ricardo_Zamora_2-1632339527656.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Of course, after the lped is attached to a parent in the network (&lt;FONT color="#3366FF"&gt;&lt;EM&gt;Stack_to_APP_Handler&lt;/EM&gt;&lt;/FONT&gt; (case &lt;EM&gt;&lt;FONT color="#3366FF"&gt;OT_DEVICE_ROLE_CHILD&lt;/FONT&gt;&lt;/EM&gt;)).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Ricardo&lt;/P&gt;</description>
      <pubDate>Wed, 22 Sep 2021 19:39:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/Sleep-Low-power-mode-not-working-in-openthread-example-with/m-p/1344369#M12078</guid>
      <dc:creator>Ricardo_Zamora</dc:creator>
      <dc:date>2021-09-22T19:39:51Z</dc:date>
    </item>
    <item>
      <title>Re: Sleep/Low power mode not working in openthread example with k32w061</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/Sleep-Low-power-mode-not-working-in-openthread-example-with/m-p/1344624#M12081</link>
      <description>&lt;P&gt;Hi Ricardo,&lt;/P&gt;&lt;P&gt;you are absolutely right. I searched for the bSleepAllowed and only found two funktions, writing to the variable bSleepAllowed:&lt;/P&gt;&lt;P&gt;App_AllowDeviceToSleep() and App_DisallowDeviceToSleep().&lt;/P&gt;&lt;P&gt;If it set a break Point to the function, I can see that it is called and it sets the value to false. The thing i don't understand is that the thwo functions are never called anywhere in the project. So maybe the call comes from a precompiled library function.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Micha&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Sep 2021 05:21:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/Sleep-Low-power-mode-not-working-in-openthread-example-with/m-p/1344624#M12081</guid>
      <dc:creator>Micha1</dc:creator>
      <dc:date>2021-09-23T05:21:32Z</dc:date>
    </item>
    <item>
      <title>Re: Sleep/Low power mode not working in openthread example with k32w061</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/Sleep-Low-power-mode-not-working-in-openthread-example-with/m-p/1346499#M12102</link>
      <description>&lt;P&gt;Hi Ricardo,&lt;/P&gt;&lt;P&gt;I checked the calling of the &lt;EM&gt;&lt;FONT color="#3366FF"&gt;PWR_AllowDeviceToSleep&lt;/FONT&gt;&lt;/EM&gt; funktion. It is called as expected and the function PWR_CheckIfDeviceCanGoToSleep() is returning True. So the Problem is the bSleepAllowed flag, which is set to False. If I comment out the bSleepAllowed flag, the sleep is called.&lt;/P&gt;&lt;P&gt;Kind Regards&lt;/P&gt;&lt;P&gt;Michal&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Sep 2021 05:25:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/Sleep-Low-power-mode-not-working-in-openthread-example-with/m-p/1346499#M12102</guid>
      <dc:creator>Micha1</dc:creator>
      <dc:date>2021-09-27T05:25:39Z</dc:date>
    </item>
  </channel>
</rss>

