openpilot icon indicating copy to clipboard operation
openpilot copied to clipboard

VW MQB: Added support for APA racks to EPS configuration tool

Open calledit opened this issue 3 years ago • 1 comments

APA steering racks use a different bit to represent whether the ECU should enable steering assist. This change supports those APA steering racks.

Tested on a VW MK7 Golf sportsvan.

Testrun output:

root@localhost:/data/openpilot/selfdrive/debug$ ./vw_mqb_config.py enable
opening device 3e0031001251393031343235 0xddcc
connected

EPS diagnostic data

   Part No HW:   5Q0909143E 
   Part No SW:   5Q0909143K 
   SW Version:   2033
   Component:    MQB_PP_APA   
   Coding:       01000010005000
   ASAM Dataset: EV_SteerAssisVWBSMQBA
   Lane Assist:  DISABLED

EPS parameterization (per-vehicle calibration) data

   Version of system parameters:     51
   Vehicle type:                     9A
   Index of characteristic curve:    90
   Version of characteristic values: 40
   Version of memory map:            20

Attempting configuration update
   New coding:   01000011005000
EPS configuration successfully updated

calledit avatar Aug 25 '22 18:08 calledit

Thank you for doing this! Support for the APA racks is long overdue, and generalizing the byte/bit variables will be useful later for adding a third variant supporting the TRW racks in MQB-A0 vehicles. I think it may actually fix issues with older ZFLS racks with shorter-than-maximum coding strings as well.

Can we trouble you for a screenshot from VCDS or OBDeleven showing the backing ASAM dataset documentation for the bit we're flipping here? In the meantime, sometime in the next couple days I'll review in more detail and re-test to make sure nothing broke in the support for my ZFLS rack with these changes.

jyoung8607 avatar Aug 29 '22 17:08 jyoung8607

Can we trouble you for a screenshot from VCDS or OBDeleven showing the backing ASAM dataset documentation for the bit we're flipping here? In the meantime, sometime in the next couple days I'll review in more detail and re-test to make sure nothing broke in the support for my ZFLS rack with these changes.

I got the information about what bits does what from this website https://vagcode.info/components/8664d0e864943a58c78503a4194b9874.html seams like they got the information from a file called 5Q0-909-143.clb

calledit avatar Aug 30 '22 09:08 calledit

@jyoung8607 look good to you?

adeebshihadeh avatar Sep 05 '22 21:09 adeebshihadeh

@jyoung8607 look good to you?

LGTM other than the proposed changes.

jyoung8607 avatar Sep 08 '22 23:09 jyoung8607