Can GPIO buttons realize shutdown and restart functions?

⚠️
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 https://www.dialog-semiconductor.com/support . We’ll be fixing bugs / optimising the searching and tagging over the coming days.
12 posts / 0 new
Last post
xuguodong
Offline
Last seen: 7 months 3 days ago
Joined: 2020-06-04 13:34
Can GPIO buttons realize shutdown and restart functions?

Hi Diaglog teams,

HW:DA14683BB
SW:DA1468x_DA15xxx_SDK_1.0.14.1081

Can GPIO buttons realize shutdown and restart feature?

if it is ok, can you share daemon code of the aboving feature?

 

Thanks.

Device: 
PM_Dialog
Offline
Last seen: 5 months 2 weeks ago
Staff
Joined: 2018-02-08 11:03
Hi xuguodong,

Hi xuguodong,

Could you please clarify your question? What do you mean with “GPIO button0s realize shutdown and restart feature”?

Thanks, PM_Dialog

xuguodong
Offline
Last seen: 7 months 3 days ago
Joined: 2020-06-04 13:34
Yes my question is that“GPIO

Yes my question is that“GPIO button0s realize shutdown and restart feature".

PM_Dialog
Offline
Last seen: 5 months 2 weeks ago
Staff
Joined: 2018-02-08 11:03
Hi xuguodong,

Hi xuguodong,

Could you please explain what you mean with the “  GPIO button0s realize shutdown and restart feature “ ? Would it be possible to make clarify  what you would like to accomplish?

Thanks, PM_Dialog

xuguodong
Offline
Last seen: 7 months 3 days ago
Joined: 2020-06-04 13:34
Hi Dialog teams,

Hi Dialog teams,

power off the DA14683 by pressing the key.

通过GPIO按键实现关机功能。

PM_Dialog
Offline
Last seen: 5 months 2 weeks ago
Staff
Joined: 2018-02-08 11:03
Hi xuguodong,

Hi xuguodong,

Do you mean any of the available sleep modes?

Thanks, PM_Dialog

xuguodong
Offline
Last seen: 7 months 3 days ago
Joined: 2020-06-04 13:34
Does DA4683 have shutdown

Does DA4683 have shutdown mode except sleep mode?

除了sleep modes,有专门的关机模式吗?

PM_Dialog
Offline
Last seen: 5 months 2 weeks ago
Staff
Joined: 2018-02-08 11:03
Hi xuguodong,

Hi xuguodong,

What do you mean with the “shut down” mode? Please refer to the datasheet to find more information on DA1468x product family.

Additionally, the following document will help you to have a clear overview on the SDK architecture.

Thanks, PM_Dialog

xuguodong
Offline
Last seen: 7 months 3 days ago
Joined: 2020-06-04 13:34
Additionally, the following

Additionally, the following document will help you to have a clear overview on the SDK architecture.

where is the following document ???

PM_Dialog
Offline
Last seen: 5 months 2 weeks ago
Staff
Joined: 2018-02-08 11:03
Hi There,
xuguodong
Offline
Last seen: 7 months 3 days ago
Joined: 2020-06-04 13:34
I just want example code for

I just want example code for go into sleep. I've read all the documents you provided.

Thanks.

PM_Dialog
Offline
Last seen: 5 months 2 weeks ago
Staff
Joined: 2018-02-08 11:03
Hi There,

Hi There,

Please take a look at External Interruption Tutorial tutorial.  It demonstrates how to use the wake up controller in order to wake up via a GPIO. You should use the pm_set_sleep_mode() API in order to configure the sleep mode.

Thanks, PM_Dialog