Skip to content
/ chronosync Public

Utility to set the time on a Hayes Stack Chronograph

License

Notifications You must be signed in to change notification settings

jcs/chronosync

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

chronosync

A small utility to set the clock on a Hayes Stack Chronograph over its serial port.

Synopsis

chronosync [-d] [-s serial speed] <serial device>

Compiling

Compile with a BSD Make:

$ make

Install:

# make install

Run and pass argument of the serial device connected to the Chronograph:

# chronosync /dev/cua02

The computer's local time is sent to the Chronograph.

Notes

Since the Chronograph only supports setting the time to minute precision with ATST, chronosync will sleep until zero seconds of the next minute before sending the time.

The clock on the Chronograph will probably only need to be set once per day to stay accurate, so running this from cron once a day should suffice:

# sync time at 2am
1	59	*	*	*	/usr/local/bin/chronosync /dev/cua02

About

Utility to set the time on a Hayes Stack Chronograph

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published