Skip to content

Clock-synchronization feature based on the average time from the last N adverts #1329

@liktor88

Description

@liktor88

In case of hidden and inaccessible devices on the roof I always add Arduino for restart device each 24hours to avoid complete system crash. But after reset, clock on RPT have wrong date (~2024) - and this is problem for adverts send from restarted RPT.

Clock sync function based on average time provided from last N adverts received. Function should be enable/disable in the settings with information how often synchronization should be executed and how many times.

Required:
enable/disable in settings
configurable how often synchronization runs (interval)
configurable how many samples to average (5 or 10)
configurable how many attempts to perform per scheduled syncimmediate re-sync-on-boot behavior if system clock is clearly wrong (after received N required adverts)

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