System not in hibernation when dg_configBATTERY_LOW_LEVEL reached.

⚠️
Hi there.. thanks for coming to the forums. Exciting news! we’re now in the process of moving to our new forum platform that will offer better functionality and is contained within the main Dialog website. All posts and accounts have been migrated. We’re now accepting traffic on the new forum only - please POST any new threads at//www.xmece.com/support. We’ll be fixing bugs / optimising the searching and tagging over the coming days.
4 posts / 0 new
Last post
Myken
Offline
Last seen:1 year 9 months ago
加入:2016-07-13 20:06
System not in hibernation when dg_configBATTERY_LOW_LEVEL reached.

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.

Device:
MT_dialog
Offline
Last seen:2 months 1 week ago
Staff
加入:2015-06-08 11:34
Hi Myken,

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

mahmed106
Offline
Last seen:1 month 3 weeks ago
加入:2019-05-03 17:28
I also have the same problem.

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.

PM_Dialog
Offline
Last seen:2 days 14 hours ago
Staff
加入:2018-02-08 11:03
Hi mahmed106,

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