OpenVehicleDiag icon indicating copy to clipboard operation
OpenVehicleDiag copied to clipboard

[Feature] Volkswagen TP2.0 transport support

Open baconwaifu opened this issue 2 years ago • 5 comments

Volkswagen (used to?) use a proprietary CAN transport protocol for diagnostics in the post-k-line cars, but the contents are just standard KWP2000.

Depending on how modular the code is, it may be possible since the core operation is similar to ISO-TP, just with a "connection" to keep alive on top of the KWP diag session. I have a basic implementation in my pyVCDS repository, and am willing to help with testing and implementing when I have free time, although I only have socketCAN adapters.

baconwaifu avatar Jan 29 '22 20:01 baconwaifu

TP2.0 is still used today, I have seen it in 2020 models. J2545-2 interface support TP2.0, but as I havent had luck connecting my JBoxes with OpenBehicleDiag for now, it should work in theory?

srdjanradojcic avatar Jan 31 '22 08:01 srdjanradojcic

Does anyone have any packet traces on how this works? I could imagine its some variation of UDS diagnostic layer.

Also, consider raising the issue here: https://github.com/rnd-ash/ecu_diagnostics (OpenVehicleDiag will soon transition to using this crate for the diagnostic layer with the vehicle)

rnd-ash avatar Jan 31 '22 09:01 rnd-ash

TP2.0 covers Network and Transport OSI layer, same as ISo15765(ISO-TP). Same as ISO-TP on top of it, you can use other Application/Service layers such as UDS/KWP2000.

I could provide support, you can reach me via email.

srdjanradojcic avatar Jan 31 '22 11:01 srdjanradojcic

@baconwaifu @srdjanradojcic transport layer is a step forward but what about application/service layers? Does anyone has any relevant dictionaries for instance for ID to data point mappings? Like where would one find MAP or MAF sensor for instance?

rusefillc avatar Jun 26 '22 15:06 rusefillc

To add to this, TP2.0 would be added as a layer in OVD, but you would still need to write a description JSON in order to tell OVD how to read the data responses from the ECU, and parse them in meaningful ways, like what @rusefillc is saying

Sidenote. A new Schema is under development as well as a new version of the app, so things are subject to change :)

rnd-ash avatar Jun 27 '22 13:06 rnd-ash