sparkfun / OpenLog_Artemis

The OpenLog Artemis is an open source datalogger the comes preprogrammed to automatically log IMU, GPS, serial data, and various pressure, humidity, and distance sensors. All without writing a single line of code!
https://www.sparkfun.com/products/15846
Other
88 stars 47 forks source link

Keypress won't open menu until sample time #76

Closed whipple63 closed 3 years ago

whipple63 commented 3 years ago

Keypress won't open menu until sample time When pressing any key to open the menu during slow sample rates, the key is ignored until it is pressed very near the sample time.

Your workbench

Steps to reproduce

This should be easily replicated, but just in case starting from default: • 57600 Baud • Log accelerometer (turn off gyro, turn magnetometer) • Log VIN (battery) voltage • Enable measurement counts • Turn off ‘output actual hertz’ • Set the clock • Change pressure sensor to use kPa • Set up when to open new log files 3600s

Expected behavior

Ideally the menu would come up - even if after a short wait. It shouldn't wait until next sample. I plan on dropping sample period down to 30 minutes when all is set up. I realize that I can reset the device to access the menu, but I will be using this remotely on a data collection device.

Actual behavior

The menu won't come up unless a key is pressed very near the sample time (i.e. hold a key until it pops up).

PaulZC commented 3 years ago

Hi @whipple63 , The issue here is that the Artemis is placed into "deep sleep" when the sample period exceeds 2 seconds. In deep sleep it can't respond to data arriving via UART. I sympathize, but I can't think of a way of implementing what you're asking for... Sorry! Closing... Paul

whipple63 commented 3 years ago

How about allowing for a period of time after the sample where the system listens for a character?