Skip to content

V4 fails to properly read from RTC after power loss #1827

@terminalvelocity23

Description

@terminalvelocity23

I have a DS3231 RTC module added into my V4 repeater (pins 17 and 18), and after simulating a power loss by cutting the battery power and logging back in the app shows year 2043, but the clock command shows 2/1/2000. After pushing the reset button or issuing a reboot command from CLI time returns to normal. The RTC battery is a brand new 2032 showing healthy 3.3 volts.
My guess is there's something wrong with RTC initialization timing, it isn't initialized yet when the time gets read from it after power loss, so the system gets garbage or default time from it. Maybe it needs a slight delay before the first read to initialize properly, although that's just my guess.

I'm running the latest stable firmware.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions