benclifford / msf.rust Goto Github PK
View Code? Open in Web Editor NEWA Rust implementation of MSF radio clock decoder
A Rust implementation of MSF radio clock decoder
msf === Reads the time from an MSF radio receiver and feeds it into an NTP daemon running on a Raspberry Pi. Copyright Ben Clifford and CQX Limited, 2013-2018 Installing =============== * Get the hardware: * A Raspberry Pi 2 * (the right kind of) MSF radio board. I use a SYM-RFT-60 from Symtrik. * Get the code git clone https://github.com/benclifford/msf.rust * Build the code cargo build * Attach the output of the clock module to GPIO pin 12 * Configure ntpd: Add these lines to /etc/ntpd.conf and restart ntpd: server 127.127.28.3 fudge 127.127.28.3 refid MSF time1 0.018 and restart ntpd: sudo /etc/init.d/ntp restart * Start msf.rust: ./start.sh * Watch a few minutes for the output to appear. You should see a bunch of symbol information ticking on output a few times a second. Over the course of a minute you should see something like this: >-.1.9/0-.5.5/M.1.1.1.7/1+.1.1.1.7/1+.1.9/0+.1.9/0+.1.9/0+.1.9/0+.1.9/0+.1.9/0+.1.9/0+.1.9/0+.1.9/0+.1.9/0+.1.9/0+.1.9/0+.1.9/0+.1.9/0+.1.9/0+.1.9/0+.1.9/0+.2.8/2+.2.8/2+.1.9/0+.1.9/0+.1.9/0+.1.9/0+.1.9/0+.1.9/0+.1.9/0+.2.8/2+.2.8/2+.1.9/0+.2.8/2+.1.9/0+.1.9/0+.1.9/0+.1.9/0+.1.9/0+.1.9/0+.1.9/0+.1.9/0+.2.8/2+.1.9/0+.1.9/0+.2.8/2+.1.9/0+.1.9/0+.2.8/2+.2.8/2+.1.9/0+.1.9/0+.2.8/2+.1.9/0+.2.8/2+.3.7/3+.2.8/2+.3.7/3+.2.8/2+.2.8/2+.1.9/0+*qqppppppppppppppppprrppppppprrprpppppppprpprpprrpprprsrsrrp{MHDMY} Decode: 18-1-28 9:19 N showing pulses arriving, and then the final time being decoded. * Move the radio board/antenna around until you get a decent signal: there should be about one pulse per second visible in the onboard LED rather than nothing, or random flickering. * After even more minutes, check ntp is receiving the time from msf. ntpq -p ... *SHM(3) .MSF. 0 l 64 64 317 0.000 -18.261 8.695 ...
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.