Giter Club home page Giter Club logo

dcfshm's Introduction

(c) 2016 Joerg Dorchain <[email protected]>

Licenced under GNU GPL v2 or later

This program reads input from a charcter device where presumably a DCF77
receiver is connected to.
The input is parsed and written to a shared memory segment, where ntp can
pick it up for further timekeeping.

The main motivation was the the builtin parse driver for ntp  could
crash ntp, e.g. when weird bits came in at weird timing in bad receiving
conditions, and to feed dcf time to chrony.

Bug reports and contributions are welcome, esp. for making the code more
portable.

Works with USB Gude expert Mouse Clock II

You may try different baud rates. One installation only works
with 4800baud.

Put this as DAEMON_ARGS in /etc/default/dcfshm, e.g.
DAEMON_ARGS="-b 4800"

Example ntp.conf snippet:

server 127.127.28.0     # SHM driver fed by dcfshm 
fudge 127.127.28.0 time1 0.450 refid DCFa

dcfshm's People

Contributors

dorchain avatar

Stargazers

 avatar

Watchers

 avatar

dcfshm's Issues

DCFSHM does not fork

Im running Ubuntu 20.04 and when i run in debug mode all is fine... but if i try to run without (or start with systemd) it does not fork.... there is no process in background after

root@capricorn:/usr/local/sbin# ./dcfshm -b 4800
root@capricorn:/usr/local/sbin# ps ax |grep dcf
337744 pts/8 S+ 0:00 grep --color=auto dcf
root@capricorn:/usr/local/sbin# with -d option it works....

Is it about his warning during compilation ?
dcfshm.c: In function ‘main’:
dcfshm.c:340:1: warning: ignoring return value of ‘nice’, declared with attribute warn_unused_result [-Wunused-result]
340 | nice(nicev);
| ^~~~~~~~~~~

Ciao Gerd

illegal timezone

Hi !
i always get

1003017: 0xc0 11000000 59 -> 1 1649766000 0
New minute detected after 59 bits
Illegal time zone 1 1
-92: 0xc0 11000000 01 -> 1 1649766001 0
its running on Ubuntu 20.04... i have it on another device running and there it runs fine....

on this device also it shows on startup in -d mode
pivot year set to 2022
on the device where it runs fine it shows
pivot year set to 2021

Ciao Gerd

Integration in chrony?

Thanks for that piece of software 👍

Did you ever contact the chrony development team to directly integrate it in chrony?

Configurable log level

On a Raspberry Pi there is the known problem of SD-card wear with frequent writing activities.
Is it possible to implement a configurable log level (e.g. debug, info, warning, error) in your dcfshm?
On a Pi I would use "error", or maybe "warning".

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.