How muki01/obd2_kline_library works
This is an Arduino/ESP32 library for vehicle diagnostics over K-Line. A sketch configures a protocol and initialization method, requests standard OBD-II or manufacturer-specific data, and receives decoded results through the serial bus. The architecture separates diagnostic services, protocol framing and handshakes, and byte-level hardware I/O. README-described manufacturer diagnostics are represented at their documented ECU-directory boundary because their implementations are not present in the supplied tree; relationships are limited to documented or excerpted evidence.
Main entry points: KLine_Protocol.cpp Protocol framing · OBD2_KLine_Core.cpp Serial and signals · OBD2_Standard.cpp Standard OBD-II · ecus Manufacturer services
Components 8
Diagnostic services
- Standard OBD-II
src/ecus/OBD2_Standard.cpp - Manufacturer services
src/ecus
Protocol handling
- Library entry header
src/OBD2_KLine.h - Protocol framing
src/KLine_Protocol.cpp
K-Line transport
- Serial and signals
src/OBD2_KLine_Core.cpp
Shared utilities
- Checksum and decoding
src/KLine_Functions.cpp
Other components
- Arduino sketch
- Vehicle ECU
Connections 8
- Arduino sketch → Standard OBD-II: requests diagnostics
README.md - Arduino sketch → Manufacturer services: requests services
README.md - Arduino sketch → Library entry header: includes library
src/OBD2_KLine.h - Standard OBD-II → Protocol framing: inherits protocol API
- Protocol framing → Serial and signals: uses byte I/O
- Protocol framing → Checksum and decoding: verifies checksums
src/KLine_Protocol.cpp - Serial and signals → Vehicle ECU: exchanges bytes
README.md - Vehicle ECU → Serial and signals: returns responses
README.md