Coder Social home page Coder Social logo

msf.rust'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-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
  ...

msf.rust's People

Contributors

benclifford avatar

Stargazers

Chris West avatar Conor Keegan avatar

Watchers

 avatar James Cloos avatar  avatar

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.