概要
A C++ open source EtherCAT master/slave stack
その他のプロジェクト計測したスター増加
- 24時間
- 0
- 7日間
- +2
- 15日間
- 履歴を収集中
- 1か月
- 履歴を収集中
期間ごとの純増数です。期間は重複しており、日別の値ではありません。未計測の値は空欄です。スター数は注目度の指標であり、品質の保証ではありません。
README.md
オリジナル
A lightweight, efficient EtherCAT master/slave stack for embedded and real-time systems
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
- Home: what KickCAT is, and where to start
- Get started: installation, a first bus, the ecosystem
- User guide: features, building, hardware, simulation, tools
- Developer guide: architecture and contributing
- Reference: glossary and ETG specifications
- EtherCAT quick reference: the ETG Device Protocol Poster
Project
Contributions are welcome: see Contributing. KickCAT follows Semantic Versioning and is used in production systems.
Issues · Discussions · Releases · Conan package · License: CeCILL-C
関連プロジェクトを探す
読み込み中…