Skip to main content

Windows CAN simulator and testing tool with GUI and CLI.

Project description

🚌 WIN CAN TOOL

Windows CAN-Bus Simulator & Testing Tool

GUI + CLI • J1939-style messages • Real hardware output • Windows EXE auto-builds

License Python PyPI Platform


🚀 Overview

WIN CAN TOOL is a CAN-Bus simulator with both a GUI and CLI interface. It allows you to:

  • simulate engine, GNSS, and vehicle messages
  • output CAN traffic to real hardware (ValueCAN, Kvaser, Peak, virtual, ICS, etc.)
  • test dashboards, gateways, CDL devices, or software decoders
  • run dynamic simulation profiles
  • build custom message streams with Python

Every version tag automatically produces a Windows EXE release.


📥 Download the Windows EXE

Latest release: 👉 https://github.com/kfafard/win_can_tool/releases/latest

Download win_can_tool.zip, unzip, and run win_can_tool.exe.


📦 Install via PyPI

Prefer the Python version?

pip install win-can-tool

Run GUI:

win-can-gui

Run CLI:

win-can-cli --interface virtual --channel 0

🖥 GUI Features

  • Live GNSS position manipulation
  • Real-time engine RPM, hours, speed, load, fuel, temps
  • Clean PyQt6 interface
  • Status bar + event log
  • Auto-generated CAN frames at realistic frequencies
  • Selectable python-can backend interface

🖥 GUI Preview

🌙 Dark Mode

Dark Mode

☀️ Light Mode

Light Mode


🛠 CLI Usage Example

Send simulated CAN frames over a selected hardware interface:

win-can-cli --interface neovi --channel 1

Run the virtual interface:

win-can-cli --interface virtual --channel 0

📁 Project Structure

win_can_tool/
 ├── bus.py              # CAN interface layer (python-can)
 ├── engine.py           # Engine + GNSS simulation models
 ├── gui.py              # PyQt6 GUI application
 ├── cli.py              # CLI interface
 ├── profiles.py         # Simulation profiles
 ├── can_gui_launcher.py # PyInstaller entrypoint for EXE builds

⚙ Simulation Profiles

Profiles define preset simulation states. Example:

{
    "engine": {"rpm": 1500, "speed_kph": 12.4},
    "gnss":   {"lat": 51.23456, "lon": -102.34567}
}

🔧 Development

Clone the repo:

git clone https://github.com/kfafard/win_can_tool
cd win_can_tool

Install in editable mode:

pip install -e .

Run GUI manually:

python -m win_can_tool.gui

🏗 Auto-Build Pipeline

GitHub Actions automatically:

  1. Builds the EXE using PyInstaller
  2. Zips the executable
  3. Creates a GitHub Release
  4. Uploads the binary

Triggered by pushing a version tag:

git tag v1.0.9
git push origin v1.0.9

🤝 Contributing

Pull requests and issues are welcome.


📜 License

This project is licensed under the MIT License – see the LICENSE file for details.


📝 Changelog

All notable changes are documented in the CHANGELOG.md.

Latest release: v1.1.0


⚡ Credits

Developed by Kurtis Fafard Built for real-world CAN-Bus testing, simulation, and rapid development.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

win_can_tool-1.2.3.tar.gz (19.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

win_can_tool-1.2.3-py3-none-any.whl (19.4 kB view details)

Uploaded Python 3

File details

Details for the file win_can_tool-1.2.3.tar.gz.

File metadata

  • Download URL: win_can_tool-1.2.3.tar.gz
  • Upload date:
  • Size: 19.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for win_can_tool-1.2.3.tar.gz
Algorithm Hash digest
SHA256 3b103d32ee541930c893de9b7229235b83dfdf45c2bed102f86f2816078f4c02
MD5 104264bb67667748357dc3e85e98d8b6
BLAKE2b-256 2aeaf3f8260dab662c5d62974312a534edc4952d92e9801c51a898d685f90f54

See more details on using hashes here.

File details

Details for the file win_can_tool-1.2.3-py3-none-any.whl.

File metadata

  • Download URL: win_can_tool-1.2.3-py3-none-any.whl
  • Upload date:
  • Size: 19.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for win_can_tool-1.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 9d91fe6dd2dbacba6c936ea1fd3ae817d35228f9de5dcbcf4f4afa78194354c0
MD5 81e6ead7d849f0aed3db8c8a32bd2051
BLAKE2b-256 57b121009b9de20b4fb86cf49ba02c673de46f6b8c72da98e0ae3ec20c87b964

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page