General ArduinoGravity

SEN0539: Start awake and stay awake Arduino Uno

userHead David.Welch 2025-05-02 01:51:50 860 Views5 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-09-05 01:50:18

There is no reliable way to programmatically wake the device via I²C, and while a UART command exists in theory, it is not demonstrated as functional in example code.

userHeadPic ahsrab.rifat
2025-09-04 22:31:30

But I really need it myself. By the way, the set_wake-up time only takes effect the next time it wakes up. If I say "Hello robot" before it goes offline, then the awake time is extended by the preset value. How can I send "hello robot" from a program? Python to Raspberry Pi Zero w

userHeadPic Istvan.Neszmelyi
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