Coder Social home page Coder Social logo

msf's Introduction

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-2017

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.git

* Build the code 

  make

* Attach the output of the clock module to GPIO pin 25

* Configure ntpd:

  Add these lines to /etc/ntpd.conf and restart ntpd:

  server 127.127.28.2
  fudge 127.127.28.2 refid MSF time1 0.018

  and restart ntpd:
  sudo /etc/init.d/ntp restart

* Start msf:

  sudo ./start.sh

* Watch a few minutes for the output to appear.

  You should see the symbol . appear every time the LED on the
  clock module turns on or off, and after a minute or two if a decode
  is successful, you should see a bunch of decoding information,
  including a timestamp.

* 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(2)          .MSF.            0 l   64   64  317    0.000  -18.261   8.695
  ...

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.