|
| 1 | +.. _os-power-mgr-sample: |
| 2 | + |
| 3 | +OS Power management demo |
| 4 | +########################### |
| 5 | + |
| 6 | +Overview |
| 7 | +******** |
| 8 | + |
| 9 | +This sample demonstrates OS managed power saving mechanism through the sample |
| 10 | +application which will periodically go sleep there by invoking the idle thread |
| 11 | +which will call the _sys_soc_suspend() to enter into low power states. The Low |
| 12 | +Power state will be selected based on the next timeout event. |
| 13 | + |
| 14 | +Requirements |
| 15 | +************ |
| 16 | + |
| 17 | +This application uses nrf52 DK board for the demo. |
| 18 | + |
| 19 | +Building, Flashing and Running |
| 20 | +****************************** |
| 21 | + |
| 22 | +.. zephyr-app-commands:: |
| 23 | + :zephyr-app: samples/subsys/power/power_mgr |
| 24 | + :board: nrf52_pca10040 |
| 25 | + :goals: build flash |
| 26 | + :compact: |
| 27 | + |
| 28 | +Running: |
| 29 | + |
| 30 | +1. Open UART terminal. |
| 31 | +2. Power Cycle Device. |
| 32 | +3. Device will enter into Low Power Modes periodically. |
| 33 | + |
| 34 | + |
| 35 | +Sample Output |
| 36 | +================= |
| 37 | +nrf52 core output |
| 38 | +----------------- |
| 39 | + |
| 40 | +.. code-block:: console |
| 41 | +
|
| 42 | + ***OS Power Management Demo on arm**** |
| 43 | + Demo Description |
| 44 | + Application creates Idleness, Due to which System Idle Thread is |
| 45 | + scheduled and it enters into various Low Power States. |
| 46 | +
|
| 47 | + <-- App doing busy wait for 10 Sec --> |
| 48 | +
|
| 49 | + <-- App going to sleep for 6000 msec --> |
| 50 | + Entering Low Power state (0) |
| 51 | + Entering Low Power state (0) |
| 52 | + Entering Low Power state (0) |
| 53 | + Entering Low Power state (0) |
| 54 | +
|
| 55 | + <-- App doing busy wait for 10 Sec --> |
| 56 | +
|
| 57 | + <-- App going to sleep for 11000 msec --> |
| 58 | + Entering Low Power state (1) |
| 59 | + Entering Low Power state (1) |
| 60 | + Entering Low Power state (1) |
| 61 | + Entering Low Power state (1) |
| 62 | +
|
| 63 | + <-- App doing busy wait for 10 Sec --> |
| 64 | +
|
| 65 | + <-- App going to sleep for 6000 msec --> |
| 66 | + Entering Low Power state (0) |
| 67 | + Entering Low Power state (0) |
| 68 | + Entering Low Power state (0) |
| 69 | + Entering Low Power state (0) |
| 70 | +
|
| 71 | + <-- App doing busy wait for 10 Sec --> |
| 72 | +
|
| 73 | + <-- App going to sleep for 11000 msec --> |
| 74 | + Entering Low Power state (1) |
| 75 | + Entering Low Power state (1) |
| 76 | + Entering Low Power state (1) |
| 77 | + Entering Low Power state (1) |
| 78 | + OS managed Power Management Test completed |
| 79 | +
|
0 commit comments