How souhaattia/can-bus-stm32 works
This is a five-node STM32 automotive-style CAN network with a Python/PyQt5 dashboard on each PC. The main workflow is dashboard commands over UART to a node, then CAN commands broadcast on the bus; CAN telemetry is also bridged back to the dashboard for live display. Firmware responsibilities below share the sampled main.c implementation; the dashboard is represented by its sampled Python file. The README documents the multi-node network and monitoring capabilities, but unsampled code limits detail about their implementation.
Main entry points: main.c Node Runtime · interface2.py Dashboard UI
Components 13
STM32 Firmware
- Node Runtime
Core/Src/main.c - Periodic CAN TX
Core/Src/main.c - CAN Reception
Core/Src/main.c - UART Bridge
Core/Src/main.c - UART Parser
Core/Src/main.c - Command Handler
Core/Src/main.c
Dashboard
- Dashboard UI
Dashboard/interface2.py - Serial Reader
Dashboard/interface2.py
CAN Network
- Shared CAN Bus
- Other STM32 Nodes
Bus Monitoring
- PEAK-CAN View
- Saleae Logic
Other components
- Operator
Connections 14
- Operator → Dashboard UI: clicks commands
Dashboard/interface2.py - Dashboard UI → Node Runtime: sends UART commands
README.md - Node Runtime → Periodic CAN TX: emits periodically
Core/Src/main.c - Periodic CAN TX → Shared CAN Bus: transmits frames
README.md - Other STM32 Nodes → Shared CAN Bus: share frames
README.md - Shared CAN Bus → CAN Reception: delivers frames
README.md - CAN Reception → UART Bridge: relays received frames
Core/Src/main.c - UART Bridge → Serial Reader: sends UART frames
README.md - Serial Reader → Dashboard UI: feeds live display
Dashboard/interface2.py - Node Runtime → UART Parser: starts byte reception
Core/Src/main.c - UART Parser → Command Handler: dispatches complete frames
Core/Src/main.c - Command Handler → Shared CAN Bus: transmits command frames
Core/Src/main.c - Shared CAN Bus → PEAK-CAN View: monitored by
README.md - Shared CAN Bus → Saleae Logic: analyzed by
README.md