Feature request: get time sync from nearby/faraway nodes

Open
#4,008 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 2 days

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
25/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Active
Tech stack
c

Research direction

Start by reading the firmware’s timekeeping and node communication entry points to find how time is initialized and whether nodes currently exchange timestamps; the issue does not name files or tests. Compare the proposed trusted-key and nearby-node approaches, including how to validate timestamps and agreement across nodes. Done criteria need agreement on the design and how it will be tested.

Written by the indexing model from the issue text.

Description

Hopefully I am not missing anything but ... when most nodes reboot they lose time and date, no?

Maybe in settings menu we can set 2-3 public keys from where the node can get time sync. Like a NTP server.

OR

If storing 2-3 keys use storage resources, maybe firmware can act like this:

If current time is lower than year 2020 or something, then it gets a sync from nearby nodes. If there are more than X nodes that sent about the same time.
To prevent bad values or abuse, maybe get from nodes from various signal values and distances.

Dominant language
C
Stars
3.9k
Forks
1.5k
Avg merge
2d 7h
Merged PRs (30d)
56

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from meshcore-dev/MeshCore

All issues in meshcore-dev/MeshCore

Similar issues

More C issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.