dorchain / dcfshm Goto Github PK
View Code? Open in Web Editor NEWdcf77 radio clock ntp shm parser
dcf77 radio clock ntp shm parser
(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
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
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
Thanks for that piece of software 👍
Did you ever contact the chrony development team to directly integrate it in chrony?
Does anybody have a systemd service file ?
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".
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.