Pages: [1]
Author Topic: No response from TP2 ECU  (Read 2560 times)
Howelley
Newbie
*

Karma: +0/-0
Offline Offline

Posts: 5


« on: December 04, 2023, 10:59:38 AM »

I've reimplemented the VW TP2 protocol as part of a custom ESP32 firmware, everything works perfectly as expected on both bench ECUs and cars with manual gearboxes (so no TCU in the mix).

However in vehicles with ISO-TP ECUs and TP2 TCUs (and vehicles with both a TP2 ECU & TP2 TCU), all of a sudden there is 0 response from either the TCU or TP2 ECU. I've tried communicating with the gateway on 0x1F and that responds as expected.

Just wondering if anyone knew of any wake-up/prerequisite for communicating with control units in vehicles with TP2 TCUs, there's nothing in the spec (from what I can see) to suggest this.

Thanks in advance!
Logged
prj
Hero Member
*****

Karma: +915/-428
Offline Offline

Posts: 5847


« Reply #1 on: December 04, 2023, 12:15:47 PM »

The protocol is described in J2819.
Implement the spec and there should not be any issues.

Assign own dynamic channel for each controller.
Logged

PM's will not be answered, so don't even try.
Log your car properly.
Howelley
Newbie
*

Karma: +0/-0
Offline Offline

Posts: 5


« Reply #2 on: December 04, 2023, 03:36:22 PM »

So the issue I'm seeing here isn't really a case of the ECU responding with an ID I'm not expecting. It could respond with anything and it'd handle it correctly. For some reason sending (01 C0 00 10 00 03 01) 0x0200 is seemingly falling on deaf ears and I get nothing back over OBD on a vehicle with a TCU. Literally no CAN traffic after that message at all, but if I target the gateway it sets up a connection as normal.
Logged
prj
Hero Member
*****

Karma: +915/-428
Offline Offline

Posts: 5847


« Reply #3 on: December 05, 2023, 01:53:03 AM »

So the issue I'm seeing here isn't really a case of the ECU responding with an ID I'm not expecting. It could respond with anything and it'd handle it correctly. For some reason sending (01 C0 00 10 00 03 01) 0x0200 is seemingly falling on deaf ears and I get nothing back over OBD on a vehicle with a TCU. Literally no CAN traffic after that message at all, but if I target the gateway it sets up a connection as normal.
That just means the ECU is either K-Line or ISO-TP.

No way to tell you anything else unless you are going to start being very specific, like VIN codes specific.
And also copy-paste the code with the CAN filter setup.
« Last Edit: December 05, 2023, 01:55:47 AM by prj » Logged

PM's will not be answered, so don't even try.
Log your car properly.
Howelley
Newbie
*

Karma: +0/-0
Offline Offline

Posts: 5


« Reply #4 on: December 05, 2023, 02:48:36 AM »

In fairness I probably should have put a little more info in the original post, it was originally just a "is there some specific weird precondition I'm missing".

The code is derived from https://github.com/jared52005/Monitor/blob/master/Firmware/ESP32/main/Passive_Vwtp20.c so I at least know the parsing is right; essentially everything on a CAN ID < 0x600 is sent to the parser to see if it's TP2 traffic. I'm also logging everything incoming from the TWAI driver and there is nothing after sending the request for the ECU.

My reasoning for believing it can only be a TP2 ECU is that it's an EDC17CP24 (7L0907401T, so it's an sgo) so can't be K Line and with it being an sgo it's definitely KWP.

If there's no "secret" precondition it's almost certainly a code/me issue, just weird the firmware works perfectly fine on 6MT and when trying to communicate with the gateway. Frustrating thing to troubleshoot without a car being local to me, but it is what it is. If for some reason the solution isn't related to my code I'll stick a note on here in case anyone else decides to try and implement this stupid TP on their own  Cheesy
Logged
prj
Hero Member
*****

Karma: +915/-428
Offline Offline

Posts: 5847


« Reply #5 on: December 05, 2023, 03:25:44 AM »

My reasoning for believing it can only be a TP2 ECU is that it's an EDC17CP24 (7L0907401T, so it's an sgo) so can't be K Line and with it being an sgo it's definitely KWP.
The Touareg 7L is a K-Line car.
SGO only means it can't be UDS, it can very well be K-Line.

Mystery solved, now go do something productive instead Tongue
Logged

PM's will not be answered, so don't even try.
Log your car properly.
Howelley
Newbie
*

Karma: +0/-0
Offline Offline

Posts: 5


« Reply #6 on: December 05, 2023, 03:53:40 AM »

Sounds like my ultra productive task is modifying the board design for a LIN transceiver lol Grin

But in all seriousness, thanks that definitely explains it. Been tearing my hair out over this for a couple of days and was just operating on the assumption that CP24 was going to be CAN TP2. Is there any sure fire way to determine CAN vs K-Line like there is for UDS/ISO-TP vs KWP/TP2? Another car with the same symptoms was a 2013 Jetta (CJAA) so EDC17CP14 (likely post DieselGate) but the only theme I had was the existence of a TCU so just ran with it (clearly a red herring).

Reasonable chance that one is my poor code  Roll Eyes
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Page created in 0.036 seconds with 17 queries. (Pretty URLs adds 0s, 0q)