Wakeup from sleep by Timeout

12 posts / 0 new
Last post
TreehouseAndSky
Offline
Last seen:6 years 10 months ago
加入:2014-03-13 14:45
Wakeup from sleep by Timeout

Hi there,

I actually have the same question as JoichiIto asked february 4th, but the topic is locked (http://support.dialog-semiconductor.com/can-da14580-wake-extended-or-dee...)

How would you use the Wakeup timer (or any driver from the API) to let the application sleep a predefined time (e.g. 1 or 2 seconds) and then wakeup again? AK_Dialog answered that the registers shouldn't be used.

I'd like to use this for energy efficiency.
Thanks in advance

AK_Dialog
Offline
Last seen:2 months 2 weeks ago
Staff
加入:2013-12-16 15:49
Hi Lars,

Hi Lars,

On this Dialog Semiconductor forum website you can find a document called : UM-B-006 : User Manual - Sleep mode configuration.
Here can can find the answer how to configure the DA14580 for different sleep modes.

Best regards,
Dialog Support Team.

Kim
Offline
Last seen:6 years 11 months ago
加入:2014-03-14 14:55
Hi,

Hi,

How do we do this exactly?
We can't use timer0 when in sleep and the documentation about wkupct isn't clear to us. (in peripheral drivers)
We were able to use the interrupt on timer0, but like I said, it doesn't work when sleeping.

AK_Dialog
Offline
Last seen:2 months 2 weeks ago
Staff
加入:2013-12-16 15:49
Hi Lars,

Hi Lars,

To wake-up the DA14580 by a timer, you have to use the BLE timer: This depends on the connection interval and slave latency.
The master will set the connection interval and slave latency, but the slave (peripheral) can send a request for a certain timing (for instance 1 second) which the master can agree or not.

Best regards,
Dialog Support Team.

ejong69
Offline
Last seen:1 year 11 months ago
加入:2014-06-23 07:11
Hi Dialog Support Team

Hi Dialog Support Team
To use app_timer_set function is right way to wake up from EXTENDED or DEEP sleep?
Is it use BLE timer?

AK_Dialog
Offline
Last seen:2 months 2 weeks ago
Staff
加入:2013-12-16 15:49
That's right you have to set

That's right you have to set the BLE timer to wake up from sleep mode after a certain time, use app_timer_set function .

Best regards,

Dialog Support team.

shuixiu
Offline
Last seen:4 years 7 months ago
加入:2014-09-18 07:00
Hi, AK_Dialog

Hi, AK_Dialog
I use the app_timer_set function to wake up da14580,but it doesn't work,i just wonder how to use the app_timer_set function to set a certain time for waking it up.and i do not need external GPIO to wake up system .
like this?
int led_flash_timer_handle(ke_msg_id_t const msgid,
void const *param,
ke_task_id_t const dest_id,
ke_task_id_t const src_id)
{
periph_init();
if(GPIO_GetPinStatus( GPIO_LED_PORT , GPIO_LED_PIN ))
{
GPIO_SetInactive( GPIO_LED_PORT , GPIO_LED_PIN );
}
else
{
GPIO_SetActive( GPIO_LED_PORT , GPIO_LED_PIN );
}
app_timer_set(LED_FLASH_TIMER,TASK_APP,100);
return (KE_MSG_CONSUMED);
}

JE_Dialog
Offline
Last seen:4 weeks 14 hours ago
Staff
加入:2013-12-05 14:02
HI There, please refer to

HI There, please refer to this FAQ which covers this topic. This example is based on putting a beacon into extended sleep for extended sleep for a fixed amount of time (during which time no advertising is used).

BR JE_Dialog

http://support.dialog-semiconductor.com/faq-page#n1545

shuixiu
Offline
Last seen:4 years 7 months ago
加入:2014-09-18 07:00
Hi JE_Dialog

Hi JE_Dialog
Thanks! I got it .And I have another problem ,when the DA14580 configured as extended sleep, my mobile phone could connect with DA14580, but I can not send data to it, which I can send data when DA is out of sleep?

MT_dialog
Offline
Last seen:2 months 3 days ago
Staff
加入:2015-06-08 11:34
Hi shuixiu

Hi shuixiu

Do you mean that if you define CFG_EXT_SLEEP the phone connects but not sending data, and when you disable sleep the application works properly?

Thanks MT_dialog

wuxin
Offline
Last seen:5 years 2 weeks ago
加入:2015-11-19 05:27
Hi,I meet the same question

Hi,I meet the same question ashttp://support.dialog-semiconductor.com/wakeup-sleep-timeout. I follow the steps ashttp://support.dialog-semiconductor.com/faq-page#n1545. but I am also confused. Could you give me more instruction. Thank you.(The code is upload)

MT_dialog
Offline
Last seen:2 months 3 days ago
Staff
加入:2015-06-08 11:34
Hi wuxin,

Hi wuxin,

It would help, if you let us know what is your problem is, what confuses you ? You can find an implementation of how to place a kernel timer in your project in the custom profile project which is a simple project. Please have a look at the document AN-B-029 and in the Support files as well.

Thanks MT_dialog