Skip to content
项目

关于

A C++ open source EtherCAT master/slave stack

其他项目

这些数字如何统计

实测星标增长

24小时
0
7天
+2
15天
正在收集历史
1个月
正在收集历史

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文

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

探索相关项目

加载中…