Yahoo Groups archive

AVR-Chat

Index last updated: 2026-04-28 22:41 UTC

Message

Re: [AVR-Chat] Keeping time accross multiple boards

2013-03-21 by David Kelly

On Mar 20, 2013, at 4:58 PM, Chuck Hackett <egroupscdh@up844.us> wrote:

> Upon receiving the time message the controller would compare it to its
> internal clock.  If its time is less than the received time I would have it
> send its time out on the bus.  If its time was greater than or equal to the
> received time it would set its internal time equal to the received time and
> send no time message on the bus.  This would continue until no more time
> messages were sent.

That sounds like an opportunity for a disaster of a packet flood on your net.

Spend some time studying the design and protocol for ntp. You don't seem to need anything as complex or precise but ntp can sync to better than 20 ms on non-realtime systems over nondeterministic network, world wide.

timed is another Unix utility predating ntpd. Has a smaller computational footprint. Works very well on systems the size you describe.
http://osr507doc.sco.com/en/NetAdminG/tspC.how.html

A scanned document from 1985: http://www.eecs.berkeley.edu/Pubs/TechRpts/1985/CSD-85-250.pdf

Modern timed source code:
http://svnweb.freebsd.org/base/head/usr.sbin/timed/timed/

--
David Kelly N4HHE, dkelly@HiWAAY.net
============================================================
Whom computers would destroy, they must first drive mad.



[Non-text portions of this message have been removed]

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.