Commit 1dfb6d7
committed
simple_repeater: Allow to idle the CPU for powersaving
Use the idle.interval parameter to stall the loop to save power. The
loop is halted for the given amount of seconds before continuing the
processing. Only receiving packets will cause an interruption of the
idling.
Unfortunately it's not easily possible to interrupt the idling on user
input such as CLI activity or user button inputs as those things are
currently not interrupt-driven. Therefore the UI and the CLI will
remain unresponsive during sleep. After booting the CLI will be
available for three minutes before the first sleep interval and if
a CLI command is issued this period will be extended for another three
minutes.
On a RAK4631 repeater this can reduce the power consumption during RX
mode from around 12 mA to around 7.5 mA.
Signed-off-by: Frieder Schrempf <[email protected]>1 parent 0ea376f commit 1dfb6d7
1 file changed
+16
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
22 | 28 | | |
23 | 29 | | |
24 | 30 | | |
| |||
82 | 88 | | |
83 | 89 | | |
84 | 90 | | |
| 91 | + | |
85 | 92 | | |
86 | 93 | | |
87 | 94 | | |
| |||
103 | 110 | | |
104 | 111 | | |
105 | 112 | | |
| 113 | + | |
| 114 | + | |
106 | 115 | | |
107 | 116 | | |
108 | 117 | | |
| |||
117 | 126 | | |
118 | 127 | | |
119 | 128 | | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
120 | 136 | | |
0 commit comments