GithubHelp home page GithubHelp logo

axiscommunications / ptpd2-acap Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 45 KB

Builds and packages the ptpd2 server into an ACAP for smooth deployment on an Axis device.

Home Page: https://www.axis.com/developer-community/industry-4-0-integration

License: Apache License 2.0

Dockerfile 85.89% Makefile 14.11%
ptp acap axis industry-40 industry-4

ptpd2-acap's Introduction

Copyright (C) 2022, Axis Communications AB, Lund, Sweden. All Rights Reserved.

Precision Time Protocol daemon ACAP

Build ACAPs GitHub Super-Linter

Precision Time Protocol (PTP) comes in handy in use cases where time synchronization with high precision is needed. PTP open source implementations exist, were we use ptpd2 here: this repository cross-compiles it and packages it as an Axis ACAP application.

Prerequisites

The build procedure assumes the existence of Docker (and Internet connectivity) on the build machine.

Build

On host with ACAP SDK installed

# With the environment initialized, use:
acap-build -a ptpd2 -a ptpd2.conf .

Using ACAP SDK build container and Docker

This repository has a Makefile that wraps cross-compiling the ptpd2 binary for the target architectures and to build for all targets, simply type

make

or perhaps

make -j

(to build in parallel). Then you will find the built ACAP packages in the ./eap directory upon successful build.

If you would like to build for, say, armv7hf only, please use

make armv7hf.eap

If you do have Docker but no make on your system:

# 32-bit ARM, e.g. ARTPEC-6- and ARTPEC-7-based devices
DOCKER_BUILDKIT=1 docker build --build-arg ARCH=armv7hf -o type=local,dest=eap .
# 64-bit ARM, e.g. ARTPEC-8-based devices
DOCKER_BUILDKIT=1 docker build --build-arg ARCH=aarch64 -o type=local,dest=eap .

Running

Install the application like you normally do (e.g. in the target device's web UI). It will automatically start running with the default options set in ptpd2.conf. (More info about the configuration options can be found in ptpd2.conf (5).)

If you would like to alter the configuration, you will find it in the directory /usr/local/packages/ptpd2/ on the target device. Please edit it and then restart the ACAP for the new changes to be used.

License

Apache 2.0

ptpd2-acap's People

Contributors

joakimr-axis avatar renovate[bot] avatar

Watchers

 avatar  avatar

ptpd2-acap's Issues

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

This repository currently has no open or pending branches.

Detected dependencies

dockerfile
Dockerfile
  • axisecp/acap-sdk 3.4.2-armv7hf-ubuntu20.04
github-actions
.github/workflows/build.yml
  • actions/checkout v4
.github/workflows/super-linter.yml
  • actions/checkout v4
  • super-linter/super-linter v6

  • Check this box to trigger a request for Renovate to run again on this repository

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.