General ArduinoGravity

SEN0539: Start awake and stay awake Arduino Uno

userHead David.Welch 2025-05-02 01:51:50 456 Views1 Replies

I'm looking for a way to start the device awake and keep it awake.  I've tried a few things that didn't work. I've experimented both in I2C and UART.
 

 

For starting awake:

Don't know the command for I2C

for UART
asr.settingCMD(DF2301Q_UART_MSG_CMD_SET_ENTERWAKEUP, 0);
doesn't seem to do anything
 

For staying awake 
I've tried a looping function that repeatedly calls either asr.setWakeTime(20) in I2C or   asr.settingCMD(DF2301Q_UART_MSG_CMD_SET_WAKE_TIME, 20); but these do not renew the wake time.

 

2025-05-02 04:25:49

Nevermind. I don't think I ultimately want this functionality.  It would be too sensitive and the commands would execute without intent.

userHeadPic David.Welch