mDot wakes up early

Home Forums mDot/xDot mDot wakes up early

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #32289
    kkhylchuk
    Participant

    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.

    #32290
    Jason Reiss
    Keymaster

    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

    #32291
    kkhylchuk
    Participant

    I see. Thanks for the quick reply.

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.