Skip to content
Proyectos

Acerca de

A C++ open source EtherCAT master/slave stack

Otros proyectos

Cómo se miden estas cifras

Crecimiento de estrellas medido

in 24h
0
in 7 days
+2
in 15 days
Recopilando historial
in 1 month
Recopilando historial

Cambios netos en períodos que se solapan, no totales diarios. Los datos no disponibles se dejan en blanco. Las estrellas indican interés, no calidad.

README.md

Original

KickCAT

A lightweight, efficient EtherCAT master/slave stack for embedded and real-time systems

CI Docs PyPI

KickCAT is an EtherCAT stack that you can embed in your own software. One codebase provides both the master and the slave, plus an emulator for developing and testing a bus without hardware.

Documentation: https://leducp.github.io/KickCAT/

Quick start

Build, then run a master against an emulated slave in one process. No hardware is needed.

python3 -m venv .venv && source .venv/bin/activate && pip install 'conan>=2.10'
./scripts/setup_build.sh build
make -C build -j
./build/examples/master/simulated_bus/simulated_bus \
    -f examples/slave/lan9252/freedom-k64f/nuttx/freedom-k64f.xml -t Board

Cheat sheet

Run from the repository root, with .venv active.

Task Command
Choose build options ./scripts/configure.sh build --with=unit_tests (--show lists them)
Fetch dependencies and configure ./scripts/setup_build.sh build (again after changing options)
Build make -C build -j
Run the unit tests ./build/kickcat_unit --gtest_filter='Bus*'
Measure coverage options --with=unit_tests --with=code_coverage, then make -C build coverage
Build with sanitizers options --with=asan --with=ubsan
Build the GUIs options --with=kickui --with=eeprom_editor
Run KickUI ./build/tools/kickui/kickui
Simulate a bus in a second process ./build/simulation/network_simulator -i tap:server -s simulation/slave_configs/freedom-k64f.json
Connect a master to it sudo ./build/examples/master/easycat/easycat_example -i tap:client
Run a master on a network card sudo ./build/examples/master/easycat/easycat_example -i eth0
Write a slave EEPROM sudo ./build/tools/eeprom -s 0 -c write -f eeprom.bin -i eth0
Build NuttX slave firmware ./scripts/build_slave_bin.sh freedom-k64f ~/nuttxspace/nuttx
Install the Python package pip install kickcat, then ./py_bindings/enable_raw_access.sh
Check Python formatting ./scripts/format_py.sh check
Preview the docs uvx [email protected] serve
Build the docs as CI does uvx [email protected] build --strict

Documentation

Project

Contributions are welcome: see Contributing. KickCAT follows Semantic Versioning and is used in production systems.

Issues · Discussions · Releases · Conan package · License: CeCILL-C

Explorar proyectos relacionados

Cargando…