1. Attachments are working again! Check out this thread for more details and to report any other bugs.

Lexus RX400h Custom PIDs

Discussion in 'OBDII Android App' started by usbseawolf2000, May 23, 2012.

  1. vincent1449p

    vincent1449p Active Member

    Joined:
    May 24, 2004
    894
    331
    0
    Location:
    Singapore
    Vehicle:
    2012 Prius c
    Hi robbio,

    Thanks for the great info! They share the same platform but I need to compare your data with SynEco to know for sure.

    From you data, it seems that the Battery info. also appear at 7E2. Since RX400h/HiHy was launched between the Gen2 & Gen3, it is likely that some or all of the Battery ECU PIDs had migrated to the HV ECU. Could you try to change all the 7E3 to 7E2 and test?

    Vincent
     
  2. vincent1449p

    vincent1449p Active Member

    Joined:
    May 24, 2004
    894
    331
    0
    Location:
    Singapore
    Vehicle:
    2012 Prius c
    Hi SynEco,

    Sorry, I didn't realise that you've already set the headers correctly. I was confused by the results of your log file and didn't know that you 've also tested other things in Torque and CANhacker.

    Pls help to get the responses from the supported PIDs as what robbio has done.

    Vincent
     
  3. robbio

    robbio New Member

    Joined:
    Sep 30, 2012
    9
    1
    0
    Location:
    marietta, ga
    Vehicle:
    Other Hybrid
    Model:
    II
    Vincent,

    The second file I sent had the responses while using 7E2. Did you mean change to 7E3? If so, should I use the same 7E2 PIDs or maybe test them all in the range of 2101 - 21FE? Lastly, does the car need to be in Ready state for these tests (was not for the first one)? So far I have seen the same behavior with 7E3 as SynEco (sometimes data in realtime mode), but I will try to test again later this evening

     
  4. vincent1449p

    vincent1449p Active Member

    Joined:
    May 24, 2004
    894
    331
    0
    Location:
    Singapore
    Vehicle:
    2012 Prius c
    Nope, what I meant was to change all the 7E3 for Gen2's Battery ECU PIDs to 7E2. Here are part of your log file that let me to believe that the Battery ECU PIDs had been migrated to 7E2:
    Code:
    Pid Map 7E2_CE,7E2_CE,21CE,A,0,100,unk,7E2,7EA102361CE757FFC88,7EA21638866886A8866,7EA2288638866886A88,7EA2366888688608860,7EA2488638863886088,7EA2566000000000000,,,,
    Pid Map 7E2_CF,7E2_CF,21CF,A,0,100,unk,7E2,7EA101E61CF80B93EC8,7EA21000000008C5F8C,7EA226B8C1B8CBA8C5F,7EA238CBA8CE78C7680,7EA2480000000000000,,,,,
    Pid Map 7E2_D0,7E2_D0,21D0,A,0,100,unk,7E2,7EA102061D00F000000,7EA2100000000008853,7EA2200885D011E1F1E,7EA231E1E1E1E1E1E1E,7EA241E1D1E1F1E0000,,,,,
    
    The car only need to be in Ign-on. However, your Auxiliary Battery may drain if you are in Ign-on for too long. So, I suggest to test in Ready.

    Vincent
     
  5. SynEco@eVehicle.co.nz

    Joined:
    Jan 9, 2007
    139
    19
    0
    Vehicle:
    2004 Prius
    Model:
    II
    PID responses using CANhacker V2.00.02 Monitor-tracer and CANusb
    from RX400h 2007
     

    Attached Files:

  6. robbio

    robbio New Member

    Joined:
    Sep 30, 2012
    9
    1
    0
    Location:
    marietta, ga
    Vehicle:
    Other Hybrid
    Model:
    II
    OK, I can confirm the file already contains the responses, on 7E2 header only, through the last PID from your list above, which was 21FE.

    I was a little confused when I got home and made a few additional attempts to read 7E3, then looked more closely at the Gen2 file and saw that 21c3 and above were also configured to use 7E3. At that point I was just guessing, but changing these to 7E2 did seem to work, though I haven't done much more than look through the realtime selector list to confirm that most were active. Attaching the PID.csv I used and a short trackLog.csv of some of the relevant data points. Please let me know what additional testing is needed. Source file was USBSeawolf2000_Gen2_Prius_1-11-12_Metric_

    Some thoughts about the battery. 'HV Battery Block Count' returns 15. If blocks are cell pairs, I believe this is correct for this battery which I've read is 30cell x 9.6V = 288V. However this doesn't totally line up with the sum of individual block voltages (higher) or 'Power Resource VB' which varied between 252 - 324 (maybe that is not the battery total). In any case, I was able to see 14 blocks and made the following changes to try to see 15:

    1. added line #56 using the next logical letter names AF,AG to make HV Battery Block-15 Voltage
    2. added line #71 following the same logic to make Internal Resistance R15
    3. added AF,AG to line #41 formula for Battery power (kw)

    These seemed to work, but I don't know if my guesses were entirely correct. I also added lines 127 - 130 to placehold remaining unmapped PIDS that gave hex responses.
     

    Attached Files:

  7. SynEco@eVehicle.co.nz

    Joined:
    Jan 9, 2007
    139
    19
    0
    Vehicle:
    2004 Prius
    Model:
    II
    It does look like we get the correct responses when using 7E2 to replace 7E3 of the GENII PIDs on the RX400h. At least for the few have just tested in Torque Pro (module voltage and batt temperature). Will do a global change on the PID file and test them all.
    Paul
     
  8. SynEco@eVehicle.co.nz

    Joined:
    Jan 9, 2007
    139
    19
    0
    Vehicle:
    2004 Prius
    Model:
    II
    Battery PID's are now ALL sorted if used on 7E2 HV ECU including BAtt Module 15 Voltage and IR now added to the PID List...
    But the original (PRIUS GEN2) 7E2 PIDs are not displaying the correct values for Batt V and Amps also MG1-MG2 PID displays look wrong .. I guess the format needed to change to accomodate additional components .. eg. MG3 Rear wheel electric Motor.
     
  9. vincent1449p

    vincent1449p Active Member

    Joined:
    May 24, 2004
    894
    331
    0
    Location:
    Singapore
    Vehicle:
    2012 Prius c
    Your PID Map for HV ECU is almost the same as HiHy except for 21D1 which HiHy does not have.

    Vincent
     
  10. vincent1449p

    vincent1449p Active Member

    Joined:
    May 24, 2004
    894
    331
    0
    Location:
    Singapore
    Vehicle:
    2012 Prius c
    1 HV Battery = 15 Blocks
    1 Block = 2 Modules
    1 Module = 8 cells
    1 cell = 1.2 V nominal
    Total HV voltage = 15 * 2 * 8 * 1.2 V = 288 V nominal

    OBD data transmit/receive by serial communication. There is time delay when you try to add 15 Blocks of voltages. By the time the scantool receive the last Block of voltage, Power Resource VB may have been changed to a new value. I suggest you compare VB to VL-Voltage Before Boosted, they should be about the same.
    It is correct.

    Vincent
     
  11. vincent1449p

    vincent1449p Active Member

    Joined:
    May 24, 2004
    894
    331
    0
    Location:
    Singapore
    Vehicle:
    2012 Prius c
    Yes, some PIDs have to be inserted for RMG or MGR (Rear Motor), so some of the PIDs have to be shifted. I'm trying to decode the log file.

    Vincent
     
  12. SynEco@eVehicle.co.nz

    Joined:
    Jan 9, 2007
    139
    19
    0
    Vehicle:
    2004 Prius
    Model:
    II
    AweSOME !! :) look forward to your findings.

    Also I changed the PID formula for HVblock# Low and HV block# high so they range from 1-15 instead of 0-14 formula changed to I+1. The now correspond to the HV block Voltage numbers reported in the corresponding PIDs.
     
  13. vincent1449p

    vincent1449p Active Member

    Joined:
    May 24, 2004
    894
    331
    0
    Location:
    Singapore
    Vehicle:
    2012 Prius c
    Pls test this PID for RMG rpm, it should be proportional to vehicle speed and MG2.
    Column 1
    0 [TH]Name[/TH][TH]ShortName[/TH][TH]ModeAndPID[/TH][TH]Equation[/TH][TH]Min Value[/TH][TH]Max Value[/TH][TH]Units[/TH][TH]Header[/TH]
    1 [TR][TD]Rr MOTOR REV[/TD][TD1]RMG Rev[/TD1][TD1]21C4[/TD1][TD1]C * 256 + D - 16383[/TD1][TD1]-16384[/TD1][TD1]16256[/TD1][TD1]RPM[/TD1][TD1]7E2[/TD1][/TR]

    Vincent
     
    [email protected] likes this.
  14. robbio

    robbio New Member

    Joined:
    Sep 30, 2012
    9
    1
    0
    Location:
    marietta, ga
    Vehicle:
    Other Hybrid
    Model:
    II
    +1 Awesome!

    Here's a short log of mine tested with:
    Column 1
    0 [TH]Name[/TH][TH]ShortName[/TH][TH]ModeAndPID[/TH][TH]Equation[/TH][TH]Min Value[/TH][TH]Max Value[/TH][TH]Units[/TH][TH]Header[/TH]
    1 [TR][TD]Rr MOTOR REV[/TD][TD1]RMG Rev[/TD1][TD1]21C4[/TD1][TD1]C * 256 + D - 16383[/TD1][TD1]-16384[/TD1][TD1]16256[/TD1][TD1]RPM[/TD1][TD1]7E2[/TD1][/TR][TR][TD]MG2 Revolution[/TD][TD1]MG2 Rev[/TD1][TD1]21C3[/TD1][TD1]((256 * A) + B) - 16383[/TD1][TD1]-2000[/TD1][TD1]7000[/TD1][TD1]RPM[/TD1][TD1]7E2[/TD1][/TR][TR][TD]Speed (OBD)[/TD][TD1]Speed[/TD1][TD1]010D[/TD1][TD1]A[/TD1][TD1]0[/TD1][TD1]255[/TD1][TD1]km/h[/TD1][TD1][/TD1][/TR]
     

    Attached Files:

  15. vincent1449p

    vincent1449p Active Member

    Joined:
    May 24, 2004
    894
    331
    0
    Location:
    Singapore
    Vehicle:
    2012 Prius c
    More PIDs to come:
    Column 1
    0 [TH]Name[/TH][TH]ShortName[/TH][TH]ModeAndPID[/TH][TH]Equation[/TH][TH]Min Value[/TH][TH]Max Value[/TH][TH]Units[/TH][TH]Header[/TH]
    1 [TR][TD]Rr MOTOR TORQ[/TD][TD1]RMG Torq[/TD1][TD1]21C4[/TD1][TD1](E * 256 + F) / 8 - 500[/TD1][TD1]-400[/TD1][TD1]400[/TD1][TD1]Nm[/TD1][TD1]7E2[/TD1][/TR][TR][TD]Rr INVERT TEMP[/TD][TD1]RMG Inv Temp[/TD1][TD1]21C4[/TD1][TD1]G - 50[/TD1][TD1]-50[/TD1][TD1]205[/TD1][TD1]C[/TD1][TD1]7E2[/TD1][/TR][TR][TD]Rr MOTOR TEMP[/TD][TD1]RMG Temp[/TD1][TD1]21C4[/TD1][TD1]H - 50[/TD1][TD1]-50[/TD1][TD1]205[/TD1][TD1]C[/TD1][TD1]7E2[/TD1][/TR][TR][TD]Rr TORQ RATIO[/TD][TD1]RMG TR[/TD1][TD1]21C4[/TD1][TD1](I * 256 + J) * 100 / 65535[/TD1][TD1]0[/TD1][TD1]100[/TD1][TD1]%[/TD1][TD1]7E2[/TD1][/TR][TR][TD]Rr RGN EXE TORQ[/TD][TD1]RMG RE Torq[/TD1][TD1]21C4[/TD1][TD1](K * 256 + L) * 4 / 256[/TD1][TD1]0[/TD1][TD1]1020[/TD1][TD1]Nm[/TD1][TD1]7E2[/TD1][/TR][TR][TD]Rr RGN RQ TORQ[/TD][TD1]RMG RQ Torq[/TD1][TD1]21C4[/TD1][TD1](M * 256 + N) * 4 / 256[/TD1][TD1]0[/TD1][TD1]1020[/TD1][TD1]Nm[/TD1][TD1]7E2[/TD1][/TR][TR][TD]ACCEL DEG[/TD][TD1]Accel Deg[/TD1][TD1]21C4[/TD1][TD1]O * 20 / 51[/TD1][TD1]0[/TD1][TD1]100[/TD1][TD1]%[/TD1][TD1]7E2[/TD1][/TR][TR][TD]VL[/TD][TD1]HV Bef Boost[/TD1][TD1]21C4[/TD1][TD1]P * 2[/TD1][TD1]0[/TD1][TD1]510[/TD1][TD1]V[/TD1][TD1]7E2[/TD1][/TR][TR][TD]VH[/TD][TD1]HV Aft Boost[/TD1][TD1]21C4[/TD1][TD1]Q * 2[/TD1][TD1]0[/TD1][TD1]765[/TD1][TD1]V[/TD1][TD1]7E2[/TD1][/TR]
    Vincent
     
    [email protected] likes this.
  16. SynEco@eVehicle.co.nz

    Joined:
    Jan 9, 2007
    139
    19
    0
    Vehicle:
    2004 Prius
    Model:
    II
    How you work this all out ?
     
  17. robbio

    robbio New Member

    Joined:
    Sep 30, 2012
    9
    1
    0
    Location:
    marietta, ga
    Vehicle:
    Other Hybrid
    Model:
    II
    Log of these attached. Included the 3 existing lines that changed (Accel Deg, VL, VH), in case the values are not as expected.

    Thanks Vincent!
     

    Attached Files:

  18. vincent1449p

    vincent1449p Active Member

    Joined:
    May 24, 2004
    894
    331
    0
    Location:
    Singapore
    Vehicle:
    2012 Prius c
    RMG Torq, RMG Inv Temp & RMG Temp look right.

    RMG TR changes corresponding to RMG Torq but the scaling seems too small. I suggest change to (I * 256 + J) * 20 / 51 and check against MG2 Torq.

    RMG RE Torq & RMG RQ Torq are too high. Need to compare against MG2 Regen Torq & Req Regen Torq to correct the scaling.

    Accel Deg does not seem right at 72% near the end when the car is stopped. Can you test again with car in [P] and depress the accel pedal to see whether this value varies accordingly?

    VL is wrong. VH looks like VL. Maybe can try VL = Q * 2 and VH = R * 2.

    Vincent
     
  19. robbio

    robbio New Member

    Joined:
    Sep 30, 2012
    9
    1
    0
    Location:
    marietta, ga
    Vehicle:
    Other Hybrid
    Model:
    II
    Attached. Accel Deg did not vary during several pedal cycles before driving, but RMG RE Torq did.
     

    Attached Files:

  20. vincent1449p

    vincent1449p Active Member

    Joined:
    May 24, 2004
    894
    331
    0
    Location:
    Singapore
    Vehicle:
    2012 Prius c
    Thanks! That is an important clue. After analyzing your data, removing both RMG RE & RQ Torq, Accel Deg, VL & VH make sense now.
    Column 1
    0 [TH]Name[/TH][TH]ShortName[/TH][TH]ModeAndPID[/TH][TH]Equation[/TH][TH]Min Value[/TH][TH]Max Value[/TH][TH]Units[/TH][TH]Header[/TH]
    1 [TR][TD]Rr TORQ RATIO[/TD][TD1]RMG TR[/TD1][TD1]21C4[/TD1][TD1](I * 256 + J) / 8[/TD1][TD1]0[/TD1][TD1]100[/TD1][TD1]%[/TD1][TD1]7E2[/TD1][TR][TD]ACCEL DEG[/TD][TD1]Accel Deg[/TD1][TD1]21C4[/TD1][TD1]K * 20 / 51[/TD1][TD1]0[/TD1][TD1]100[/TD1][TD1]%[/TD1][TD1]7E2[/TD1][/TR][TR][TD]VL[/TD][TD1]HV Bef Boost[/TD1][TD1]21C4[/TD1][TD1]L * 2[/TD1][TD1]0[/TD1][TD1]510[/TD1][TD1]V[/TD1][TD1]7E2[/TD1][/TR][TR][TD]VH[/TD][TD1]HV Aft Boost[/TD1][TD1]21C4[/TD1][TD1]M * 3[/TD1][TD1]0[/TD1][TD1]765[/TD1][TD1]V[/TD1][TD1]7E2[/TD1][/TR][TR][TD]Converter Temp[/TD][TD1]Cnv Temp[/TD1][TD1]21C4[/TD1][TD1]N - 50[/TD1][TD1]-50[/TD1][TD1]205[/TD1][TD1]C[/TD1][TD1]7E2[/TD1][/TR][TR][TD]Crank Position[/TD][TD1]Crank P[/TD1][TD1]21C4[/TD1][TD1]O * 12 / 17 - 90[/TD1][TD1]-90[/TD1][TD1]90[/TD1][TD1]deg[/TD1][TD1]7E2[/TD1][/TR][TR][TD]SMR CONT1[/TD][TD1]SMRP[/TD1][TD1]21C4[/TD1][TD1]{P:0}[/TD1][TD1]0[/TD1][TD1]1[/TD1][TD1]Off/On[/TD1][TD1]7E2[/TD1][/TR][TR][TD]SMR CONT2[/TD][TD1]SMRB[/TD1][TD1]21C4[/TD1][TD1]{P:1}[/TD1][TD1]0[/TD1][TD1]1[/TD1][TD1]Off/On[/TD1][TD1]7E2[/TD1][/TR][TR][TD]SMR CONT3[/TD][TD1]SMRG[/TD1][TD1]21C4[/TD1][TD1]{P:1}[/TD1][TD1]0[/TD1][TD1]1[/TD1][TD1]Off/On[/TD1][TD1]7E2[/TD1][/TR][TR][TD]MG1 GATE[/TD][TD1]MG1 GATE[/TD1][TD1]21C4[/TD1][TD1]{Q:7}[/TD1][TD1]0[/TD1][TD1]1[/TD1][TD1]Off/On[/TD1][TD1]7E2[/TD1][/TR][TR][TD]MG2 GATE[/TD][TD1]MG2 GATE[/TD1][TD1]21C4[/TD1][TD1]{Q:6}[/TD1][TD1]0[/TD1][TD1]1[/TD1][TD1]Off/On[/TD1][TD1]7E2[/TD1][/TR][TR][TD]CNV GATE[/TD][TD1]CNV GATE[/TD1][TD1]21C4[/TD1][TD1]{Q:5}[/TD1][TD1]0[/TD1][TD1]1[/TD1][TD1]Off/On[/TD1][TD1]7E2[/TD1][/TR][TR][TD]SHUTDOWN Rr[/TD][TD1]RMG GATE[/TD1][TD1]21C4[/TD1][TD1]{Q:1}[/TD1][TD1]0[/TD1][TD1]1[/TD1][TD1]Off/On[/TD1][TD1]7E2[/TD1][/TR]
    I couldn't get a constant ratio for RMG TR, tentatively use 8 for the scaling. Power Resource VB seems lower than VL, need to check later.

    Vincent