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

2012-2015 Prius PHV: Custom PIDs for Torque Android App

Discussion in 'OBDII Android App' started by usbseawolf2000, Mar 10, 2012.

  1. usbseawolf2000

    usbseawolf2000 HSD PhD

    Joined:
    Sep 22, 2004
    14,487
    2,994
    0
    Location:
    Fort Lee, NJ
    Vehicle:
    2012 Prius Plug-in
    Model:
    Plug-in Base
    I don't have access to the repair manual. I hope so because individual wheel speed is available from the body ECU. I don't know what's there in TPMS ECU.
     
  2. vincent1449p

    vincent1449p Active Member

    Joined:
    May 24, 2004
    894
    331
    0
    Location:
    Singapore
    Vehicle:
    2012 Prius c
    Yes, you're right! Charging should be -ve and discharging should be +ve.

    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][TR][TD]HV battery charge control[/TD][TD1]Chg ctrl[/TD1][TD1]2198[/TD1][TD1]C / 2 - 64[/TD1][TD1]-40[/TD1][TD1]0[/TD1][TD1]kW[/TD1][TD1]7E2[/TD1][/TR][TR][TD]HV battery discharge control[/TD][TD1]Dischg ctrl[/TD1][TD1]2198[/TD1][TD1]D / 2 - 64[/TD1][TD1]0[/TD1][TD1]40[/TD1][TD1]kW[/TD1][TD1]7E2[/TD1][/TR]
    Vincent
     
    [email protected] likes this.
  3. vincent1449p

    vincent1449p Active Member

    Joined:
    May 24, 2004
    894
    331
    0
    Location:
    Singapore
    Vehicle:
    2012 Prius c
  4. usbseawolf2000

    usbseawolf2000 HSD PhD

    Joined:
    Sep 22, 2004
    14,487
    2,994
    0
    Location:
    Fort Lee, NJ
    Vehicle:
    2012 Prius Plug-in
    Model:
    Plug-in Base
    I am trying to create a Virtual PID for the PHV Battery Power. I will multiply Power Resource VB (battery voltage) and Power Resource IB (battery amp) to get the power in kW.

    They both have 7E2 header and 21 mode. PIDs are different, 81 and 8A. The equations are different too.


    Power Resource VB| 2181| (S * 256 + T) / 10
    Power Resource IB| 218A| (A * 256 + B) / 100

    Ian provided examples with two ways to do it. Due to different variables in the two equations, I don't think I can do it.


    Using the second method, I am stuck with this. I can't specify the equation for IB.

    PID:2181​
    Name: PHV Battery Power​
    Equation: (S * 256 + T / 10) * [218A]​
    Unit: kW​
     
  5. vincent1449p

    vincent1449p Active Member

    Joined:
    May 24, 2004
    894
    331
    0
    Location:
    Singapore
    Vehicle:
    2012 Prius c
    You can try this:

    PID:​
    Name: PHV Battery Power​
    Equation: VAL{Power Resource VB} * VAL{Power Resource IB} / 1000
    Unit: kW​

    Vincent
     
    usbseawolf2000 likes this.
  6. usbseawolf2000

    usbseawolf2000 HSD PhD

    Joined:
    Sep 22, 2004
    14,487
    2,994
    0
    Location:
    Fort Lee, NJ
    Vehicle:
    2012 Prius Plug-in
    Model:
    Plug-in Base
    Success! Bat Pwr is the PHV battery power, idling.

    Catalyst Converter Bank1 Sensor1 is obviously wrong.

    kW.png
     
  7. lensovet

    lensovet former BP Brigade 207

    Joined:
    May 23, 2009
    2,614
    495
    0
    Location:
    Burlington, NJ
    Vehicle:
    2018 Tesla Model 3
    Model:
    N/A
    Can you update the spreadsheet? :)
     
  8. vincent1449p

    vincent1449p Active Member

    Joined:
    May 24, 2004
    894
    331
    0
    Location:
    Singapore
    Vehicle:
    2012 Prius c
    I don't think I added Cat B1S1, did you get it from NHP10 spreadsheet?

    Cat B1S1 is working for Prius C Singapore ver. but it may not work for other regions' Prius C. That is why I amended it later to indicate it is for SG ver.

    I think Torque already has that in the built-in PIDs, but if you want to test, here is the PIDs for PiP:
    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]Catalyst Temp B1 S1[/TD][TD1]CAT B1S1[/TD1][TD1]2105[/TD1][TD1](E * 256 + F) * 9 / 50 - 40[/TD1][TD1]-40[/TD1][TD1]11756.3[/TD1][TD1]F[/TD1][TD1]7E0[/TD1][/TR]
    2 [TR][TD]Catalyst Temp B1 S2[/TD][TD1]CAT B1S2[/TD1][TD1]2105[/TD1][TD1](G * 256 + H) * 9 / 50 - 40[/TD1][TD1]-40[/TD1][TD1]11756.3[/TD1][TD1]F[/TD1][TD1]7E0[/TD1][/TR]

    Vincent
     
  9. usbseawolf2000

    usbseawolf2000 HSD PhD

    Joined:
    Sep 22, 2004
    14,487
    2,994
    0
    Location:
    Fort Lee, NJ
    Vehicle:
    2012 Prius Plug-in
    Model:
    Plug-in Base
    Updated. I added these virtual PIDs:
    • PHV Battery Power
    • Gas Engine Power
    • MG1 Power
    • MG2 Power

    I separated the custom PIDs into three files -- basic, advanced and config.

    Basic file contains limited PIDs to not confuse the newbies and keeping it simple.

    Advanced file contains every PIDs in the Basic file plus more, except the configuration ones.

    Config file contains PIDs that can change the settings of the car such as disabling seat belt or reverse beeps.
     
    lensovet likes this.
  10. usbseawolf2000

    usbseawolf2000 HSD PhD

    Joined:
    Sep 22, 2004
    14,487
    2,994
    0
    Location:
    Fort Lee, NJ
    Vehicle:
    2012 Prius Plug-in
    Model:
    Plug-in Base
    Yea, I think it is the built-in one.

    I will try out yours tomorrow.
     
  11. usbseawolf2000

    usbseawolf2000 HSD PhD

    Joined:
    Sep 22, 2004
    14,487
    2,994
    0
    Location:
    Fort Lee, NJ
    Vehicle:
    2012 Prius Plug-in
    Model:
    Plug-in Base
    I tried CAT B1S1 and it was showing 761 deg F in EV mode (without ICE firing up).
     
  12. mrbigh

    mrbigh Prius Absolutum Dominium

    Joined:
    Sep 6, 2005
    3,686
    699
    2
    Location:
    Long Island, NY
    Vehicle:
    Other Electric Vehicle
    Interesting :confused:
     
  13. Electric Charge

    Electric Charge Active Member

    Joined:
    Sep 22, 2012
    545
    133
    0
    Location:
    Syracuse, NY
    Vehicle:
    2012 Prius Plug-in
    Model:
    Plug-in Base
    Did you move battery fan control to config as well? I'll have to try the basic/advanced versions.
     
  14. usbseawolf2000

    usbseawolf2000 HSD PhD

    Joined:
    Sep 22, 2004
    14,487
    2,994
    0
    Location:
    Fort Lee, NJ
    Vehicle:
    2012 Prius Plug-in
    Model:
    Plug-in Base
    Yup. All with mode 3xxx are in Config now.

    • Disable Traction Control (Car in IGN-ON, NOT READY. Reset: Turn car off and on again.)
    • Set Battery Cooling Fan Speed 0 (Off)
    • Set Battery Cooling Fan Speed 1
    • Set Battery Cooling Fan Speed 2
    • Set Battery Cooling Fan Speed 3
    • Set Battery Cooling Fan Speed 4
    • Set Battery Cooling Fan Speed 5
    • Set Battery Cooling Fan Speed 6 (max.)
    • Seat Belt Beep Disable All
    • Seat Belt Beep Enable Rear Only
    • Seat Belt Beep Enable Passenger Only
    • Seat Belt Beep Disable Driver Only
    • Seat Belt Beep Enable Driver Only
    • Seat Belt Beep Disable Passenger Only
    • Seat Belt Beep Disable Rear Only
    • Seat Belt Beep Enable All
    • Reverse Beep Enable
    • Reverse Beep Disable
     
    mrbigh and Electric Charge like this.
  15. Electric Charge

    Electric Charge Active Member

    Joined:
    Sep 22, 2012
    545
    133
    0
    Location:
    Syracuse, NY
    Vehicle:
    2012 Prius Plug-in
    Model:
    Plug-in Base
    Great job!

    I'll have to rebuild my Torque layout and include some of these values. I originally had trouble with the SoC value (would refresh on 1 screen, but not the other), and didn't understand the discharge/charge control values completely, so I had given up for a while.
     
  16. lensovet

    lensovet former BP Brigade 207

    Joined:
    May 23, 2009
    2,614
    495
    0
    Location:
    Burlington, NJ
    Vehicle:
    2018 Tesla Model 3
    Model:
    N/A
    woah, hold on, this car has rear seat belt detectors? are you sure?
     
  17. vincent1449p

    vincent1449p Active Member

    Joined:
    May 24, 2004
    894
    331
    0
    Location:
    Singapore
    Vehicle:
    2012 Prius c
    Your car does not have, it is just an option to enable/disable if someone has it installed as an option. I need to cater for other parts of the world too.

    Vincent
     
  18. lensovet

    lensovet former BP Brigade 207

    Joined:
    May 23, 2009
    2,614
    495
    0
    Location:
    Burlington, NJ
    Vehicle:
    2018 Tesla Model 3
    Model:
    N/A
    wait so which parts of the world have rear passenger seat belt detectors? and how could someone install this as an option?
     
  19. vincent1449p

    vincent1449p Active Member

    Joined:
    May 24, 2004
    894
    331
    0
    Location:
    Singapore
    Vehicle:
    2012 Prius c
    I don't know, as I said, it is just an option IF someone has. It has the same option in Techstream, so what's wrong with giving people the options? Torque is not as intelligent as Techstream that can determine what config. your car has.

    Vincent

    Edit: Found the customizable parameters after a search on google.

    Gen III Prius - Customizable Parameters
     
  20. lensovet

    lensovet former BP Brigade 207

    Joined:
    May 23, 2009
    2,614
    495
    0
    Location:
    Burlington, NJ
    Vehicle:
    2018 Tesla Model 3
    Model:
    N/A
    okay, i just wish we really did have that option. i guess i'd argue against including sensors in the PHV data sheet if those sensors don't actually exist…just adds confusion.