Giter VIP home page Giter VIP logo

tsn_develop's Introduction

Far partire phc2sys

sudo phc2sys -s CLOCK_REALTIME -c enp89s0 -m -O 0

Settare la scheda a 1Gpbs

sudo ethtool -s enp89s0 advertise 32

Settare offset TAI

sudo ./adjust_tai

Verificare offset TAI. tra TAI e RT deve essere 37

sudo ./check_clocks enp89s0

Configurare taprio

sudo ip link set dev enp89s0 down
sudo tc qdisc del dev enp89s0 root
sudo ./config-taprio.sh enp89s0
sudo ip link set dev enp89s0 up
sudo ip addr add 192.168.1.206/24 dev enp89s0

Lanciare nuovo send_udp_tai

sudo ./send_udp_tai -i enp89s0 -S <IP SECONDO NUC>
# anche senza il parametro -S dovrebbe funzionare

Verificare che i pacchetti escano

watch tc -d -p -s qdisc show dev enp89s0

Osservazioni

  • Non sempre i pacchetti escono. Lanciare diverse volte la configurazione di taprio. Se si becca il BASE_TIME corretto, i pacchetti escono.
  • BASE_TIME funzionante 1681903410228854868. Provare a forzare questo BASE_TIME nella configurazione di taprio.

Build dei programmi

gcc send_udp_tai.c -pthread -o send_udp_tai
gcc check_clocks.c -o check_clocks
gcc adjust_tai.c -o adjust_tai

Test PTP

Con questa configurazione PTP resta sempre attivo. Quindi tutto ok...

ATTENZIONE Controollare spesso phc2sys... spesso crasha...

tsn_develop's People

Contributors

albymor avatar

Watchers

 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.