Setting to Extended Sleep

⚠️
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.
2 posts / 0 new
Last post
Jun-ichi Tobe
Offline
Last seen:6 months 2 weeks ago
加入:2016-04-01 10:39
Setting to Extended Sleep

Hello support team.

I would like to set DA 14680 to Extended Sleep mode except Active mode.
我应该调用哪个API ?
Could you provide a sample project, or could you tell me where to reference the existing SDK samples?
I tried to execute "pm_set_sleep_mode (pm_mode_extended_sleep)" before starting the task scheduler,
advertise stopped and could not be set to sleep state.

Regards,

Jun-ichi

Device:
Qinjiny_Dialog
Offline
Last seen:1 month 1 day ago
工作人员
加入:2016-11-01 05:47
Hi Jun-ichi Tobe,

Hi Jun-ichi Tobe,

I think you already found what you need. To set the sleep mode for DA14681 you change the input param in functionpm_set_sleep_mode(sleep_mode_t mode)within pm_system_init in main.c

You can refer to projectextened_sleepin the SDK to see how it works