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
    Last PIDs Update: 1/22/2013

    This thread is for the production model of 2012+ Prius plugin (PHV). For Gen2 (2004-2009), go here. For regular Gen3 (2010-now), go here.

    Use the attached file (unzip the csv files) to import the customer PIDs into the Torque (Andriod app). I separated the custom PIDs into three files, basic, advanced and config.

    Basic file contains limited PIDs to not confuse the newbies.

    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.

    Please test them and if something doesn't work, please let us know. Here are the available custom PIDs (gauges):

    • PHV Battery Power
    • Gas Engine Power
    • MG1 Power
    • MG2 Power
    • Regen Cooperation
    • Fuel Input
    • Distance Since Oil Change for U.S.A. (reset)
    • Room Temp
    • Vehicle Load
    • Mass Air Flow
    • Manifold Air Pressure
    • Intake air temperature
    • Coolant temperature
    • Engine Speed
    • Vehicle Speed
    • Engine Run Time
    • Injection volume (Cylinder 1) for 10 times
    • Injection duration for cylinder 1
    • Actual Engine Torque
    • State of Charge
    • Calculated Load
    • Ambient Temperature
    • Atmosphere pressure
    • DTC Clear Warm Up
    • DTC Clear Run Distance
    • DTC Clear Min
    • +B
    • State of Charge (All Bat)
    • Shift Sensor Main
    • Shift Sensor Sub
    • Shift Sensor Select Main
    • Shift Sensor Select Sub
    • Auxiliary Battery Temperature
    • Engine Rev (Sensor)
    • MG1 temperature
    • MG1 temperature after IG-ON
    • MG1 temperature Max
    • MG1 revolution
    • MG2 temperature
    • MG2 temperature after IG-ON
    • MG2 temperature Max
    • MG2 revolution
    • MG1 torque
    • MG1 torque execution value
    • MG1 Control Mode
    • MG2 torque
    • MG2 torque execution value
    • MG2 Control Mode
    • Inverter MG1 Temp
    • Inverter MG1 Temp after IG-ON
    • Inverter MG1 Temp Max
    • MG1 Gate Status
    • Inverter MG2 Temp
    • Inverter MG2 Temp after IG-ON
    • Inverter MG2 Temp Max
    • MG2 Gate Status
    • Boost converter temperature (upper)
    • Boost converter temperature (lower)
    • Boost converter temperature after IG-ON
    • Boost converter temperature Max
    • Converter Gate Status
    • Overvoltage Input to Converter
    • Overvoltage Input to Inverter
    • VL-Voltage before Boosting
    • VH-Voltage after Boosting
    • Prohibit DC/DC converter signal
    • Aircon Gate Status
    • Water Pump Running
    • Inverter Water Pump Revolution
    • Inverter Coolant Temp
    • MG1 Inverter Shutdown
    • MG1 Inverter Fail
    • MG2 Inverter Shutdown
    • MG2 Inverter Fail
    • DCDC Cnv Target Pulse Duty
    • Water Pump Run Control Duty
    • Converter Shutdown
    • Converter Fail
    • MG1 Carrier Frequency
    • MG2 Carrier Frequency
    • Boost Ratio
    • Converter Carrier Frequency
    • A/C consumption power
    • Battery Block Voltage -V01
    • Battery Block Voltage -V02
    • Battery Block Voltage -V03
    • Battery Block Voltage -V04
    • Battery Block Voltage -V05
    • Battery Block Voltage -V06
    • Battery Block Voltage -V07
    • Battery Block Voltage -V08
    • Battery Block Voltage -V09
    • Battery Block Voltage -V10
    • Battery Block Voltage -V11
    • Battery Block Voltage -V12
    • Battery Block Voltage -V13
    • Battery Block Voltage -V14
    • Auxiliary Battery Voltage
    • Power Resource VB
    • VMF Fan Motor Voltage1
    • HV battery intake air temperature
    • Temp of Batt TB1
    • Temp of Batt TB2
    • Temp of Batt TB3
    • Battery pack current
    • Cooling Fan 0
    • Cooling Fan Relay Status
    • Battery block minimum voltage
    • Battery block number with minimum voltage
    • Battery block maximum voltage
    • Battery block number with maximum voltage
    • Difference between maximum & minimum voltage
    • Number of battery blocks
    • Accumulated Time of Battery Low
    • Accumulated Time of DC Inhibit
    • Accumulated Time of Battery too High
    • Accumulated Time of Hot Temperature
    • Internal Resistance R01
    • Internal Resistance R02
    • Internal Resistance R03
    • Internal Resistance R04
    • Internal Resistance R05
    • Internal Resistance R06
    • Internal Resistance R07
    • Internal Resistance R08
    • Internal Resistance R09
    • Internal Resistance R10
    • Internal Resistance R11
    • Internal Resistance R12
    • Internal Resistance R13
    • Internal Resistance R14
    • Power Resource IB
    • HV battery discharge control
    • HV battery charge control
    • Delta SOC
    • SOC after IG-ON
    • SOC Max
    • SOC Min
    • ECU Control Mode
    • Battery Cooling Fan Mode
    • Standby Blower Request Status
    • Short Circuit Wave Highest Value
    • Model Code
    • Engine Code
    • Destination
    • ECU Code
    • Number of Current Code
    • Number of History Code
    • Seat Belt Beep Query
    • Seat Belt Beep Disable All
    • Seat Belt Beep Disable Driver Only
    • Seat Belt Beep Disable Passenger Only
    • Seat Belt Beep Disable Rear Only
    • Seat Belt Beep Enable All
    • Seat Belt Beep Enable Driver Only
    • Seat Belt Beep Enable Passenger Only
    • Seat Belt Beep Enable Rear Only
    • Reverse Beep Query
    • Reverse Beep Disable
    • Reverse Beep Enable
    • Disable Traction Control
    • 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.)

    Note: NOT all the PIDs are available to all manufactured Prius vehicles around the globe with different options.
     

    Attached Files:

  2. Tracksyde

    Tracksyde Member

    Joined:
    Sep 21, 2011
    1,429
    761
    0
    Location:
    So Cal
    Vehicle:
    2012 Prius Plug-in
    Model:
    Plug-in Base
    I tested this yesterday after consulting with USB (thanks!) and I tried 4 PIDs on the way home:

    State of charge (not the "all batt" one, that didn't work for me)
    Coolant temperature (I did not get a reading/didn't work)
    Engine speed (rpm) (I did not get a reading/didn't work)
    Power Resource VB

    I will try to do more testing to see which PIDs work based on what USB has told me.
     
  3. vincent1449p

    vincent1449p Active Member

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

    The PiP uses Li-ion battery so most of the PIDs related to HV battery will not work.

    I can help to create a new list specifically for the PiP but I need some data to work with. I need to know the PID map and some raw values. I've created a spreadsheet just to collect the PID map. If you have time, download the spreadsheet and convert to CSV format. You don't need to drive the car, just put to READY and save the data to a log file.

    Vincent
     
    1 person likes this.
  4. Tracksyde

    Tracksyde Member

    Joined:
    Sep 21, 2011
    1,429
    761
    0
    Location:
    So Cal
    Vehicle:
    2012 Prius Plug-in
    Model:
    Plug-in Base
    Vincent,

    So, put the CSV file on my MicroSD card, then load it into Torque and I'm guessing, log all these values? Sorry for such a basic question.. I'm not very familiar with Torque or PIDs and how they work.

    Taking USB's advice, I'm trying some of the Gen3 PIDs, a few at a time (without logging). I didnt get to try it over the weekend, but I tried a few this morning on my way to work:

    MG1 Revolutions (always negative of MG2 +/- a few RPMs)
    MG2 Revolutions (works)
    MG1 Torque (didn't get a reading)
    MG2 Torque (works)

    I left SoC on there, which works great (~85% full -> 23% when EV range runs out). I didnt note my starting SoC% this morning because the G1 is so slow to boot up. By the time I was able to start Torque, it was ~83% but I was about a mile from home (slight downhill, so there was already some regen).

    I had tried Power Resource VB. USB actually told me to try Power Resource IB. But when I looked through the list, I couldnt find it. So I thought he meant VB. However, when I viewed the spreadsheet on my computer, I saw there was indeed a Power Resource IB.

    So last night, I reloaded the CSV file and was able to add the Power Resource IB, However, when I turned on my G1 this morning, the display I had for IB said "ExtPID" and "not found". So when I got to work, I looked through the list again and it was gone. Reloading the CSV brought it back and I was able once again to add it. However, just checking my phone now, I see its gone again (I guess it disappears after I quit the Torque app).

    Anyone have any ideas about that? Going through the list, I notice there are quite a few that will load with the CSV and then disappear (like a bunch of the other SoC ones, like max, min, delta, etc).

    Driving to work, the only display worth watching today was MG2 Torque. When I take my foot off the accelerator, it goes to about -10.1 or -10.2 ft-lb. The highest I saw it go up to was 69 ft-lbs. But I wasnt constantly watching it during my drive.

    The MG1 and MG2 Revolutions got up to about +/- 4900 or so. I didnt see it go past that.
     
  5. 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 had the same problem with the older version where there was 100 PIDs limit. Are you on the latest version on the Market?

    Regarding Vincent's request, I think you load them like a custom PID and add them to the list to log. He needs the output data from the log. You may not be able to do all at once due to the speed of the OBDII adapter and/or the G1 phone. Perhaps split them into a set of 10.

    I think there is a better way to do it. Torque Scan plugin is free on the Market. Once installed, you can run it from Torque main menu. It'll scan all the PIDs and perhaps have all the data Vincent would need.

    I can do that with my Touchpad (much faster) on my GenII Prius and provide a sample to Vincent. This will tell us it'll meet his request.
     
    1 person likes this.
  6. Tracksyde

    Tracksyde Member

    Joined:
    Sep 21, 2011
    1,429
    761
    0
    Location:
    So Cal
    Vehicle:
    2012 Prius Plug-in
    Model:
    Plug-in Base
    Thanks, I've updated to 1.5.49, I guess that came out today? I also installed TorqueScan. I have the first 10 PIDs from Vincent's PHV list set up for logging too. I'll check it out at lunch in a bit.
     
  7. Tracksyde

    Tracksyde Member

    Joined:
    Sep 21, 2011
    1,429
    761
    0
    Location:
    So Cal
    Vehicle:
    2012 Prius Plug-in
    Model:
    Plug-in Base
    I set up the logging on the first 10 PHV PIDs from Vincent's spreadsheet but it didnt log anything. None of my existing PIDs worked either. This is while I was driving to lunch (about 2 miles). When I left to go back to work, my traction control and ABS lights were on. Not sure what caused it but it must have been something related to my data logging setup (G1, ODB2 adapter, and/or Torque).

    Also, I had TorqueScan installed and when I started the car (in Ready), nothing was really showing and it was near impossible to even scroll the list. When I tried the window popped up on my G1 asking me if I wanted to Force Close or Wait or Cancel.

    I'll try again when I leave. I'm going to try uninstalling TorqueScan first to see if that may have been the issue, or part of it. I guess I should remove the PIDs I have displayed too.. but its such a pain to add them :(

    I may be able to borrow a more recent Android tablet.. maybe that will help too.
     
  8. 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
    Tracksyde,

    You had quite adventure there. Did the traction control and ABS lights go away?

    Perhaps we should start simple. We know some of the custom PIDs from GenIII Prius works. Let's put that on hold for now. Delete all those PIDs and import all of Vincent's test PIDs.

    Without doing the logging, go to the Edit PID screen and hit the Test button. Do you get any data? You can also use the list of PIDs (green list) when you go and add a Gauge. That will be faster if your phone can handle it.

    If they do work, we can start with the logging some of those PIDs.
     
  9. Tracksyde

    Tracksyde Member

    Joined:
    Sep 21, 2011
    1,429
    761
    0
    Location:
    So Cal
    Vehicle:
    2012 Prius Plug-in
    Model:
    Plug-in Base
    Yes, after I got back to work, I removed the OBD2 adapter and confirmed the lights went away after starting/ready-ing the car again.

    I'll remove all the old stuff and load Vincent's new list and try the Test button as you suggested. I should have some time after work to play around with this stuff today.
     
  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
    I ran the Torque Scan on Touch pad and it got stuck with the same message.
     
  11. vincent1449p

    vincent1449p Active Member

    Joined:
    May 24, 2004
    894
    331
    0
    Location:
    Singapore
    Vehicle:
    2012 Prius c
    Yes, all those values consist of very long numbers, it would save a lot of time if it can be logged. Otherwise, you may capture the screenshots or write them down. The values are static so you just need to read it once. Unlike TorqueScan, which try various combinations to search for the extended PIDs and may take hours to find. Sometimes, you may get buffer full as reported in the PLX Forum.

    Power Resource VB and Power Resource IB may not work because of different number of battery blocks and different voltage and current levels.

    Vincent
     
  12. 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
    Vincent, Power Resource VB was reported to return data. 233,000 when full to 201,000 when kicked into HV. It may be showing millivolt instead of volt.
     
  13. vincent1449p

    vincent1449p Active Member

    Joined:
    May 24, 2004
    894
    331
    0
    Location:
    Singapore
    Vehicle:
    2012 Prius c
    That can't be right because the formula (AE * 256 + AF) / 10 cannot be greater than 6553.5.

    Vincent
     
  14. Tracksyde

    Tracksyde Member

    Joined:
    Sep 21, 2011
    1,429
    761
    0
    Location:
    So Cal
    Vehicle:
    2012 Prius Plug-in
    Model:
    Plug-in Base
    I'm going to try and get an Android tablet from work tomorrow to try. But when I left for work today, I was trying the Edit PID/test and the first 3 I tried told me the formula was incorrect or something. So I decided to just add the first 4 PIDs into the logging section.

    When I went to add the PID, I looked at all the PHV PIDs and they were all green (scrolling was really slow). This is good right? That means all those PIDs have some kind of data? Anyhow, I was encouraged by that.. so I picked the first 4 PIDs and entered them into the logging section. I started the logging and left work. About 10 minutes into my drive, I figured there must be some data, so I stopped the logging. When I got home, I checked the log and the 4 PIDs, I logged were all 0.

    So at first I was thinking this is wrong. But then I thought, maybe the PIDs I picked (just the first 4 on the list) may have been related to the engine (the logged section was all EV only). Is that possible/likely?
     
  15. Tracksyde

    Tracksyde Member

    Joined:
    Sep 21, 2011
    1,429
    761
    0
    Location:
    So Cal
    Vehicle:
    2012 Prius Plug-in
    Model:
    Plug-in Base
    Ok, I just went to go sit in the car and look through all the PIDs (on that screen when you add a PID). All the PHV PIDs were green. However, they were all 0. This was with the car in Ready.

    So, what does that mean?

    Also, I really think the G1 is probably not suited for this. The phone just seems extra sluggish when it is connected to the OBD2 adapter and the car is on. When not connected to the car, its not that bad. So I dont know if its the OBD2 adapter or the phone or a combination of both.

    I had the "enable faster communication" turned on in Torque. But today (I guess with the newer version), it told me that I had data corruption and it recommended I turn off the "faster communication" setting.
     
  16. vincent1449p

    vincent1449p Active Member

    Joined:
    May 24, 2004
    894
    331
    0
    Location:
    Singapore
    Vehicle:
    2012 Prius c
    The 1st 4 belong to 7B0 (Skid Control ECU) and as long as you're in READY, you should be able to read. Some PIDs are indeed zero since not every PID are used in the PID Map.

    If you 're still getting formula error, you can try to break the PID into word-size or byte-size. e.g. do A * 256 + B 1st then follow by C * 256 + D or just do the A, B, C, D individually.

    Vincent
     
  17. 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
    My Sanyo Zio gets slow too so I don't think it is the phone.

    Vincent, Can I try them on GenII Prius as well? I'll convert them to CSV properly and try them so the syntax/equation is valid for Tracksyde.
     
  18. 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
    A * 256 ^ 3 + B * 256 ^ 2 + C * 256 + D

    What is ^ 3 supposed to be? Cube? Perhaps, Torque cannot understand it.
     
  19. vincent1449p

    vincent1449p Active Member

    Joined:
    May 24, 2004
    894
    331
    0
    Location:
    Singapore
    Vehicle:
    2012 Prius c
    Yes, it is supposed to be cube. Either change the formula to A * 256 * 256 *256 + B * 256 *256 + C * 256 + D or break up into smaller size. Either Torque don't understand "^" or there is a calculation overflow.

    If there is a format for Torque to display in Hex. number, just ABCD will do.

    Yes, you can try on GenII but use only 7E0, 7E2 & 7E3, the rest I don't think are applicable to GenII.

    Vincent
     
  20. 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
    Vincent, I tried a few on 7E2. The result for the equation changes but the response remains the same. I believe you want the hex response.

    Screenshot_2012-03-13-08-46-22.png

    Equation: A+B+C+D

    Screenshot_2012-03-13-08-46-43.png
     
    1 person likes this.