Giter Club home page Giter Club logo

openptp's Introduction

Openptp is an opensource implementation of the Precision Time Protocol (PTP) version 2 [IEEE STD1588-2008]. 

1. Compilation
run "make" in top directory

2. Installation
run "make install" in top directory

3. Configuration
Configuration is set in ptp_config.xml. A sample file can be found from top directory. XML schema can be found from ptp_config.xsd.

Configurable parameters:
- <debug>: commanline debugging on/off (1/0)
- <custom_clk_if>: custom clock interface on/off (1/0) (used currently to control multicast loopback used for timestamping)
- <clock_status_file>: enable/disable (1/0) debug file generation to /tmp (ptp_state.txt: master/slave, ptp_debug.txt: clock adjustment status in slave)
- <Interface>: enable/disable interfaces, multiple entries supported.
    - enable multicast on eth0:
    <Interface name="eth0">
        <multicast>1</multicast>
    </Interface>
    - enable unicast only on eth1:
    <Interface name="eth1">
        <multicast>0</multicast>
        <unicast>10.1.2.3</unicast>
        <unicast>10.1.2.5</unicast>
    </Interface>
- <one_step_clock>: enable unicast mode, HW SUPPORT REQUIRED!
- <Clock>: Clock configurations, see standard and ptp_config.c for possible values.
- <Intervals>: message rates, in power of 2, see standard (e.g. -4 means 16 messages per second)

4. Execution
run "openptp ptp_config.xml"



Features included:
- Ordinary clock
- Boundary clock
- BMC alogorithm
- Asymmetry corrections
- Adjustable message transmission intervals
- Support for domains
- Timescale PTP
- Layer 3, UDP IPv4
- Unicast transmission

Features not included currently:
- End-to-end transparent clock
- Peer-to-peer transparent clock
- Management node
- PTP variance support
- Unicast negotiation
- Unicast discovery
- Security protocol

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.