mDot wakes up early
- This topic has 2 replies, 2 voices, and was last updated 2 years, 11 months ago by .
Viewing 3 posts - 1 through 3 (of 3 total)
Viewing 3 posts - 1 through 3 (of 3 total)
- You must be logged in to reply to this topic.
Hi,
I use sleep_wake_rtc_or_interrupt
from dot_util.cpp to put my mDot into sleep. I made a small change to pass sleep interval to the function and that’s it.
Everything works well for small intervals, but for long intervals (>=1 hour), the mDot suddenly wakes up after about 50 minutes.
The same happens if I use sleep_wake_rtc_only
.
sleep_wake_interrupt_only
works as expected, meaning it does not wake the mDot unless there’s an interrupt on XBEE_DIO7.
I use libmDot 4.0.1, mbed-os 6.1.0 and gcc-arm-none-eabi-9-2019-q4-major.
What could be the issue?
Thanks.
The sleep interval is converted to us in libmDot.
An issue was found where this value was not cast to a 64-bit value which caused the value to be truncated.
There is a fix in the libmDot-dev repo that has not been pushed to a release.
https://github.com/MultiTechSystems/libmDot-dev
I see. Thanks for the quick reply.