brendan-w / python-OBD

OBD-II serial module for reading engine data
GNU General Public License v2.0
1.02k stars 360 forks source link

Fix ECU ID for legacy protocol #207

Closed gmaniak closed 3 years ago

gmaniak commented 3 years ago

Issues Addressed

When using OBD over legacy protocols like K-line the message is rejected because the ecu id is undefined even if the data is retrieved correctly.

Summary of changes

Add the ENGINE ID and TRANSMISSION ID to the list of ecu map at object creation time to have it available when receiving the message.

Summary of testing

Data is retrieved correctly on K-Line. Car used VW Lupo GTI Data is retrieved correctly on CAN cars. Car used Ford Focus.

Signed-off-by: Catalin Ghenea catalin.ghenea@gmail.com