benagricola / tracker

Particle Electron GPS / GSM tracker based on fancy-asset-tracker demo and ULOC tracking example.
GNU General Public License v3.0
30 stars 24 forks source link

No wakeup after idle sleep #3

Open dokterbob opened 8 years ago

dokterbob commented 8 years ago

Using spark/firmware@c974657c9917865fd9480d069fbb2202ed3d6968, the unit does not seem to wake up again after sleeping under some circumstances.1

1 Yet to be determined.

dokterbob commented 8 years ago

I have experienced the same problem with particle/firmware@09b7ace1b8096e0829a4a427fa0bbcb3bf7ad8ee, particle/firmware@8dca950a015ab773b6c832160ac1ea740e2c2176 and particle/firmware@cbcb8c141d8770c0e5af8696f64de23736b2b1ee.

benagricola commented 8 years ago

Is this wakeup after 6 hours idle sleep, or wakeup on motion during idle sleep? There is some wakeup due to motion issues with deep sleep which one of the Particle devs believe may be due to the accelerometer not sending a long enough interrupt to wake up the Electron. Definitely on my to-do list to resolve.

Edit: if this IS what causes the on-motion wake-up to not occur, I believe the solution is to set the LIS3DH 'interrupt latching' - it keeps the interrupt high until the interrupt source register is read. Not sure this functionality is in the Adafruit LIS3DH library so may have to be done by hand.

benagricola commented 8 years ago

Made some changes to manual sleeping (3 clicks on 'mode' button) and how various modules are turned off for idle sleep which should help with this.