Hello,
In the bsp_defaults.h file I find for dg_configBATTERY_LOW_LEVEL:* If not zero, this is the low limit of the battery voltage. If Vbat drops below this limit, the
* system enters hibernation mode, waiting either for the battery to the changed or recharged.
dg_configBATTERY_LOW_LEVEL is set to (2293) => 2.8V
However if I leave my system on (no BLE activity) it will discharge the battery al the way down to 1V.
我看到了定义used in sys_power_mgr.c, could it be that power management is not active? Should I enable something?
What am I doing wrong here.
- we have a rechargeable battery
- we are not using SOC
- we don't put the system into sleep mode (yet)
- charging itself works fine
Thanks.
Keywords:
Device:
Hi Myken,
Since you mention that you dont use the sleep mode, i suppose that you have set the default sleep mode (pm_set_sleep_mode()) in pm_mode_active or pm_mode_idle, is that correct ? If that is the case then with no sleep mode the SDK will never check the condition regarding lowest battery voltage in the apply_wfi() function of the sys_power_mgr.c and will never force the device into hibernation mode, try to set the sleep mode in pm_mode_extended_sleep.
Thanks MT_dialog
I also have the same problem.
I also have set pm_set_sleep_mode(pm_mode_extended_sleep); but still it is not going to hibernation when voltage is reached.
Hi mahmed106,
In order to put the device in hibernation mode, you should use the pm_set_sleep_mode(pm_mode_hibernation) and not the pm_set_sleep_mode(pm_mode_extended_sleep).
Thanks, PM_Dialog