Giter VIP home page Giter VIP logo

docker-opencyphal-debug-tools's Introduction

[PROTOTYPE] docker-opencyphal-debug-tools

A docker container to use Yakut from OpenCyphal.org and github.com/opencyphal and Tshark from Wireshark.

Setup

Check out the git submodules to get the latest wire shark filters and the latest Cyphal Regulated Messages.

git submodule init
git submodule update

Building

I use finch locally to build on my Mac.

finch build cyphal-tools cyphal-tools

On Linux you can use docker

docker buildx build cyphal-tools -t cyphal-tools

Running

finch run -it --network host --cap-add=NET_RAW --cap-add=NET_ADMIN cyphal-tools

or

docker run -it --net host cyphal-tools

You can use both the tshark and yakut tools in the container to observer multicast Cyphal/UDP traffic.

Terminal Shark

$ tshark -i eth0 -f "udp port 9382"
...
Capturing on 'eth0'
 ** (tshark:99) 02:02:02.350754 [Main MESSAGE] -- Capture started.
 ** (tshark:99) 02:02:02.350845 [Main MESSAGE] -- File: "/tmp/wireshark_eth0PHSCO2.pcapng"
    1 0.000000000 192.168.5.15 ? 239.0.29.85  CYPHALUDP 77 33667 ? 9382 Len=35
    2 0.981301818 192.168.5.15 ? 239.0.29.85  CYPHALUDP 77 33667 ? 9382 Len=35
    3 1.995579300 192.168.5.15 ? 239.0.29.85  CYPHALUDP 77 33667 ? 9382 Len=35
    4 2.982021528 192.168.5.15 ? 239.0.29.85  CYPHALUDP 77 33667 ? 9382 Len=35
    5 3.992935682 192.168.5.15 ? 239.0.29.85  CYPHALUDP 77 33667 ? 9382 Len=35
    6 4.981271074 192.168.5.15 ? 239.0.29.85  CYPHALUDP 77 33667 ? 9382 Len=35
    7 5.993050351 192.168.5.15 ? 239.0.29.85  CYPHALUDP 77 33667 ? 9382 Len=35
    8 6.898101521 192.168.5.15 ? 239.0.29.86  CYPHALUDP 221 38117 ? 9382 Len=179
    9 6.978108581 192.168.5.15 ? 239.0.29.85  CYPHALUDP 77 33667 ? 9382 Len=35
   10 7.996077225 192.168.5.15 ? 239.0.29.85  CYPHALUDP 77 33667 ? 9382 Len=35
...

Yakut

See Yakut's readme for more information: here

Be sure to set UAVCAN__NODE__ID and UAVCAN__UDP__IFACE as appropriate before running yakut.

# These are incidental to my machine! Don't copy!
export UAVCAN__NODE__ID=44
export UAVCAN__UDP__IFACE=192.168.5.15
yakut monitor

Which results in:

NodID Mode Health VSSC Uptime         VProtcl VHardwr VSoftware(major.minor.vcs.crc)            Unique-ID
   44 oper nomina   13     0d00:07:27   1.0     0.0     0.13                                    8099d400db13bb3
Legend: pub/cln│sub/srv│(pub+sub)/(cln+srv)│activity│uavcan.node.port.List is published/not│
MESSG   44 ∑t/s ∑B/s
 7509   1    1    7  7509
 7510   0    0   15  7510
∑t/s    1    1      ↖ t/s
∑B/s   22        22
RQ+RS   44 ∑t/s ∑B/s
  384   0    0    0   384
  385   0    0    0   385
  430   0    0    0   430
∑t/s    0    0      ↖ t/s
∑B/s    0         0
TOTAL   44 ∑t/s ∑B/s
∑t/s    1    1
∑B/s   22        22
Transport errors:        0         Average over 10.0 sec

docker-opencyphal-debug-tools's People

Contributors

emrainey avatar

Watchers

 avatar

docker-opencyphal-debug-tools's Issues

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.