Add nrf52 power management for RAK3401#1984
Conversation
|
Will get a verified commit pushed up shortly EDIT: Done! |
c9c33fb to
5646ae4
Compare
5646ae4 to
bfdbcd8
Compare
| ;-D MESH_DEBUG=1 | ||
| build_src_filter = ${rak3401.build_src_filter} | ||
| +<helpers/ui/SSD1306Display.cpp> | ||
| +<../examples/simple_sensor> No newline at end of file |
There was a problem hiding this comment.
can remove if desired. I have a pretty minimal VSCode setup and I'm pretty sure this is just the default so maybe work keeping?
| } | ||
|
|
||
| #ifdef NRF52_POWER_MANAGEMENT | ||
| void RAK3401Board::initiateShutdown(uint8_t reason) { |
There was a problem hiding this comment.
had to move the block for power_config to be defined before begin and figured it made sense to just move it all
|
I gather this fixes the issue where the RAK 3401 goes into deep sleep when the battery voltage drops below 3.3v and then never recovers when the battery comes back up above that? I'm currently following the Austin Mesh guidelines using a USB battery pack that shuts off when it drops below 5v (the Voltaic brand packs), but being able to use a battery pack directly connected to the RAK would be great. |
Not sure actually. As I understand it, continuous monitoring hasn't been implemented and what exists right now is an on boot check that sets up a hook for when the battery comes back up that will wake things back up. I'm not sure if that would trigger for the case you're seeing unless the battery is dropping low enough that it reboots. I tested with a power supply and wasn't able to trigger any kind of shutoff until I hit like 2.9v |
Summary
Test plan