How aasaialangaram/python-lin-diagnostic-tool works
This repository is a Raspberry Pi LIN diagnostic/analyzer prototype, with separate PyQt exercises rather than one integrated application. The documented core workflow repeatedly sends a master request, then requests and prints a slave response; the driver handles LIN signaling, serial transfer, and checksum work. The request-form and LED GUIs are separate prototypes: the sampled request form only prints entered values, and the LED GUI controls GPIO. The README documents ECU diagnostics and the LIN hardware setup. Connections are limited to relationships shown in sampled source or explicitly documented; the many other Qt exercises are not mapped individually.
Main entry points: PyLinDriver.py LIN driver · PyLINTask.py LIN task loop · Pyqt_LED control.py LED control GUI · led gui.py Blink thread
Components 14
Diagnostic workflow
- LIN task loop
PyLINTask.py
LIN hardware I/O
- LIN driver
PyLinDriver.py - Header signaling
PyLinDriver.py - Master frame data
PyLinDriver.py - Checksum calculation
PyLinDriver.py
GUI prototypes
- LIN request form
QT Manual Exercise/Pyqt_LIN_Master_Request.py - Diagnostic tab prototype
QT Manual Exercise/Pyqt_Tab1.py - LED control GUI
QT Manual Exercise/Pyqt_LED control.py - Blink thread
QT Manual Exercise/led gui.py
Other components
- Operator
- Pi UART
- Pi GPIO
- LIN transceiver
- Target ECU
Connections 17
- Operator → LIN task loop: starts
- LIN task loop → LIN driver: calls
PyLINTask.py - LIN task loop → LIN driver: prints response from
PyLINTask.py - LIN driver → Header signaling: delegates
PyLinDriver.py - LIN driver → Master frame data: delegates
PyLinDriver.py - Master frame data → Checksum calculation: calculates with
PyLinDriver.py - Header signaling → Pi GPIO: toggles
PyLinDriver.py - Header signaling → Pi UART: writes header to
PyLinDriver.py - Master frame data → Pi UART: writes frame to
PyLinDriver.py - LIN driver → Pi UART: reads response from
PyLinDriver.py - Pi UART → LIN transceiver: connects through
- LIN transceiver → Target ECU: communicates with
- Operator → LIN request form: enters request
- Operator → Diagnostic tab prototype: uses
- Operator → LED control GUI: controls
- LED control GUI → Pi GPIO: sets output
QT Manual Exercise/Pyqt_LED control.py - Blink thread → Pi GPIO: toggles output
QT Manual Exercise/led gui.py