I already hate tech2win with how its handling CANBs.
So.. start with PDUCreateComLogicalLink, this is where it sets the protocol (canbus) and also the pins its going to use. And some fucking backwards world, they using pin 3 and 11 which is what is used with MSCAN for Fords... we are expecting to see 6 and 14 for normal CAN for our Holdens.
It does those a good dozen times... before it attempts pin 6/14 which is just absolutely stupid.
It also manually sets the baud rate.. but I dont understand the math behind it yet.
From here we set a pass filter with an ID of 0, and a mask of FF FF F8 00.
This is kinda backwards to how I would normally deal with it, since we are only caring about 11bit frames, this would technically allow any frames from 0 to 7FF, blocking anything higher. Setting a mask like that will cause the GT to freak out since 11bit and 29bit filters are separated. That mask is the equivalent of a mask of 00 for 11bit... gonna have to do a bit of filter trickery to accommodate for that setup.
We then move onto: PDUSetUniqueRespIdTable, this appears to be where individual filters are set to search for specific IDs, and set the flow control responses ect (I think?).
I can see it does this:
Code: Select all
PDU_PARAM_ITEM
ItemType: PDU_IT_PARAM
ComParamId: CP_CanRespUUDTId
ComParamDataType: $00000105 (261)
ComParamClass: 6
pComParamData: 01A1E288
*pComParamData: 1348 ($544)
Where 544 appears to be the filter ID we would want to look for.
Now here comes the real kicker. All the filtering is going to have to be done in the DPDU DLL since it sets more then 32 filters, and thats the max that the OBDX GT supports in its firmware
When loading up a VZ V6 ECU, it does 64 filters....
Gonna have to keep going through it and deciphering.. since I dont think this is even the correct point where it opens the canbus connection and begins comes, this is like some precheck on the scantool I believe. Since the filter for the expected 7E8 for the ECU doesnt occur till WAY down the log, and all this stuff is in the top section. But since I know from previous work, if you do not satisfy every last step of Tech2win, it will have a full mental breakdown and not work correctly.