Focus Fanatics Forum banner

1 - 20 of 74 Posts

·
Registered
Joined
·
16 Posts
Discussion Starter #1 (Edited)
Here you go community:

Latest Update 20/6/14:
Learned Relative Octane Adjust "OCTANE ADJ" "2203E8" "((256*A)+B)*(-0.0000610124)+3.998717499" "%"
Equation for Learned Octane Adjust confirmed.

Equation for Clutch Slip Corrected:
Clutch A Slip "CLUTCH A SLIP" "221ebb" "((Signed(A)*256)+B)/4" "RPM"
Clutch B Slip "CLUTCH B SLIP" "221ebc" "((Signed(A)*256)+B)/4" "RPM"

Update 19/6/14:
Battery Current Equation found, added to confirm working and correct equation section


CONFIRM WORKING AND CORRECT EQUATION:

Name "ShortName" "ModeAndPID" "Equation" "Min Value" "Max Value" "Units" "Header"
Accelerator Pedal Position "ACC PEDAL POS" "22032b" "A/2" "%"
Air Cond Compressor State "AIR COND" "22099b" "A"
Battery Age "BATT AGE" "224027" "((A*256)+B)" "Days" "726"
Battery Charge "BATT%" "224028" "A" "%" "726"
Battery Current BATT CUR 224090 (((A*256)+B)/16)-511.7 -600 600 Amp 726
Battery Temperature "BATT Temp" "224029" "A-40" "°C" "726"
Fuel Level "FUEL LEVEL" "22f42f" "A/256*100" "%"
Fuel Pump Pressure Desired "FUEL PSI DESIRED" "2203dc" "((256*A)+b)*10*.145" "PSI"
Gear Commanded by Output State "GEAR" "221e12" "A" "Gear"
In Car Temperature "INCARTEMP" "22dd04" "A/8" "°C" "726"
Lateral G "LAT G" "222b11" "((signed(A)*256)+B)*0.02" "g" "ABS"
Longitude G "LONG G" "222b0c" "((signed(A)*256)+B)*0.02" "g" "ABS"
Steering Wheel Angle "STWHEEL" "223302" "((signed(A)*256+b))/10-780" "°" "ABS"
Throttle Position (Desired) "TP D" "22091a" "((A*256)+B)*(100/8192)" "°"
Trans Axle Gear Ratio Measured "GEAR RATIO" "221e16" "((A*256)+B)/4096" ":1"
Transmission Gear Engaged "GEAR ENGAGED" "221e1f" "A" "Gear"
Transmission Gear Mode "GEAR MODE" "221e23" "A" "Mode"
ABS Wheel Speed 1 "ABS RFW" "222b06" "A" "KM/H" "ABS"
ABS Wheel Speed 2 "ABS LFW" "222b07" "A" "KM/H" "ABS"
ABS Wheel Speed 3 "ABS RRW" "222b08" "A" "KM/H" "ABS"
ABS Wheel Speed 4 "ABS LRW" "222b09" "A" "KM/H" "ABS"
Engine Knock "Knock" "2203ec" "signed(A)/2" "°"

EQUATION not solved but PID working:
Brake Fluid line Hydraulic Pressure "BFLHP" "222b0d" "A" "kpa"
Catalyst Temperature "CAT TEMP" "22f43c" "((A*256)+B)-40" "°C"
Clutch Open "CLUTCH STATE" "221eA0" "A&256"
Engine Total Distance "ENG DIST" "22dd01" "((A*256)+B)" "KM"
In Gear "IN GEAR" "221e04" "A"
Inlet Air Temperature Fault "INLET TEMP" "220700" "A"
Max Diff between TP1 and TP2 "DIFF TP1 TP2" "2203A7" "A" "°"
Torque Control Request "TORQ CON" "2203AF" "A"
Transmission Temperature "Trans" "221E1C" "(((SIGNED(A)*256)+B)*(9/8)+320)/10" "-40" "260" "°C" "TCM"
 

·
Registered
Joined
·
4,324 Posts
Aww yis.

EDIT: I copied this into a text file and opened it with excel - it makes it easier to read and gets rid of the "Â" characters that aren't really supposed to be there. I still had to move around the units/headers to the correct columns if there aren't min/max values specified. Cool stuff - I'll test it tonight!
 

·
Registered
Joined
·
16 Posts
Discussion Starter #3
Aww yis.

EDIT: I copied this into a text file and opened it with excel - it makes it easier to read and gets rid of the "Â" characters that aren't really supposed to be there. I still had to move around the units/headers to the correct columns if there aren't min/max values specified. Cool stuff - I'll test it tonight!
Sadly i cannot attach a CSV file to this forum, so yes, have to do it the manual way. Let me know if you can figure out better equations. I have manage to figure out most but not all.
 

·
Registered
Joined
·
313 Posts
I am currently formatting this into a CSV so we can all import, but I'm having a problem with MIN/MAX values. I have to set one for each line, or the import fails. How do I know what those values should be?
 

·
Registered
Joined
·
313 Posts
Updated to match OP on 6/20/14

Get the csv here. If you prefer to past the text into your own csv, the data is below.

Code:
"Name","ShortName","ModeAndPID","Equation","Min Value","Max Value","Units","Header"
"Accelerator Pedal Position","Acc Pedal Pos","22032b","A/2",0,100,"%",""
"Air Cond Compressor State","Air Cond","22099b","A",0,1,"",""
"Battery Age","Batt Age","224027","((A*256)+B)",0,1825,"Days","726"
"Battery Charge","Batt %","224028","A/256*100",0,100,"%","726"
"Battery Current","Batt Cur","224090","(((A*256)+B)/16)-511.7",-300,300,"Amp","726"
"Battery Temperature","Batt Temp","224029","A-40",0,100,"°C","726"
"Brake Fluid Line Hydraulic Pressure","Brk Fl Press","222b0d","A",0,7000,"kpa",""
"Catalyst Temperature","Cat Temp","22f43c","((A*256)+B)-40",0,1000,"°C",""
"Clutch A Slip","Clutch A Slip","221ebb","((Signed(A)*256)+B)/4",-1000,1000,"RPM",""
"Clutch B Slip","Clutch B Slip","221ebc","((Signed(A)*256)+B)/4",-1000,1000,"RPM",""
"Clutch Open","Clutch State","221eA0","A*256",0,1,"",""
"Engine Total Distance","Eng Dist","22dd01","((A*256)+B)",0,200000,"km",""
"Fuel Level","Fuel Lvl","22f42f","A/256*100",0,100,"%",""
"Fuel Pump Pressure Desired","Fuel PSI Des","2203dc","((256*A)+b)*10*.145",0,75,"PSI",""
"Gear Commanded by Output State","Gear Cmd","221e12","A",-1,6,"Gear",""
"In Car Temperature","In Car Temp","22dd04","A/8",0,50,"°C","726"
"In Gear","IN GEAR","221e04","A",0,1,"",""
"Inlet Air Temperature Fault","Inlet Temp","220700","A",-25,50,"",""
"Lateral Angle","Lat °","222b0c","SIGNED(A)",-90,90,"°","ABS"
"Lateral G","Lat G","222b11","((signed(A)*256)+B)*0.02",-1,1,"g","ABS"
"Learned Relative Octane Adjust","Octane Adj","2203E8","((256*A)+B)*(-0.0000610124)+3.998717499",-

100,100,"%",""
"Longitude G","Long G","222b0c","((signed(A)*256)+B)*0.02",-1,1,"g","ABS"
"Max Diff between TP1 and TP2","Diff TP1 TP2","2203A7","A",0,90,"°",""
"Steering Wheel Angle","StWheel Ang","223302","((signed(A)*256+b)/10-780",-720,720,"°","ABS"
"Throttle Position (Desired)","T Pos D","22091a","((A*256)+B)*(100/8192)",0,90,"°",""
"Torque Control Request","Trq Cont","2203AF","A",0,100,"",""
"Trans Axle Gear Ratio Measured","Gear Ratio","221e16","((A*256)+B)/4096",0,10,":1",""
"Transmission Gear Engaged","Gear Eng","221e1f","A",-1,6,"Gear",""
"Transmission Gear Mode","Gear Mode","221e23","A",-1,6,"Mode",""
"Transmission Temperature","Trans","221E1C","(((SIGNED(A)*256)+B)*(9/8)+320)/10",0,150,"°C","TCM"
"ABS Wheel Speed 1","ABS RFW","222b06","A",0,200,"km/h","ABS"
"ABS Wheel Speed 2","ABS LFW","222b07","A",0,200,"km/h","ABS"
"ABS Wheel Speed 3","ABS RRW","222b08","A",0,200,"km/h","ABS"
"ABS Wheel Speed 4","ABS LRW","222b09","A",0,200,"km/h","ABS"
"Engine Knock","Knock","2203ec","signed(A)/2",0,90,"°",""
 

·
Registered
Joined
·
16 Posts
Discussion Starter #9
Here goes nothing... I slapped together this file. You can download it here. It is also in plain text so anyone can paste it into notepad, save it to a .csv and call it a day. I also fixed a typo in an equation and removed the extra characters.

Code:
"Name","ShortName","ModeAndPID","Equation","Min Value","Max Value","Units","Header"
"Accelerator Pedal Position","ACC PEDAL POS","22032b","A/2",0,100,"%",""
"Air Cond Compressor State","AIR COND","22099b","A",0,1,"",""
"Battery Age","BATT AGE","224027","((A*256)+B)",0,4096,"Days",""
"Battery Charge","BATT%","224028","A/256*100",0,100,"%",""
"Battery Temperature","BATT Temp","224029","A-40",-100,256,"°C",""
"Brake Fluid Line Hydraulic Pressure","BFLHP","222b0d","A",0,16384,"kpa",""
"Catalyst Temperature","CAT TEMP","22f43c","((A*256)+B)-40",-100,512,"°C",""
"Clutch A Slip","CLUTCH A SLIP","221ebb","((A*256)+B)*(1/4)",0,1024,"RPM",""
"Clutch B Slip","CLUTCH B SLIP","221ebc","((A*256)+B)*(1/4)",0,1024,"RPM",""
"Clutch Open","CLUTCH STATE","221eA0","A*256",0,1,"",""
"Engine Total Distance","ENG DIST","22dd01","((A*256)+B)",0,1000000,"km",""
"Fuel Level","FUEL LEVEL","22f42f","A/256*100",0,100,"%",""
"Fuel Pump Pressure Desired","FUEL PSI DESIRED","2203dc","((256*A)+b)*10*.145",0,512,"PSI",""
"Gear Commanded by Output State","GEAR","2.21E+14","A",-1,6,"Gear",""
"In Car Temperature","INCARTEMP","22dd04","A/8",-100,100,"°C",""
"In Gear","IN GEAR","2.21E+06","A",-1,6,"",""
"Inlet Air Temperature Fault","INLET TEMP","220700","A",-100,256,"",""
"Lateral Angle","LAT °","222b0c","SIGNED(A)",-360,360,"°","ABS"
"Lateral G","LAT G","222b11","((signed(A)*256)+B)*0.02",-32,32,"g","ABS"
"Learned Relative Octane Adjust","OCTANE ADJ","2.20E+11","A/256*100",-256,256,"%",""
"Longitude G","LONG G","222b0c","((signed(A)*256)+B)*0.02",-32,32,"g","ABS"
"Max Diff between TP1 and TP2","DIFF TP1 TP2","2203A7","A",0,360,"°",""
"Steering Wheel Angle","STWHEEL","223302","((signed(A)*256+b)/10-780",0,1440,"°","ABS"
"Throttle Position (Desired)","TP D","22091a","((A*256)+B)*(100/8192)",0,90,"°",""
"Torque Control Request","TORQ CON","2203AF","A",0,1,"",""
"Trans Axle Gear Ratio Measured","GEAR RATIO","2.21E+18","((A*256)+B)/4096",0,24,":1",""
"Transmission Gear Engaged","GEAR ENGAGED","221e1f","A",-1,6,"Gear",""
"Transmission Gear Mode","GEAR MODE","2.21E+25","A",-1,6,"Mode",""
"Transmission Temperature","Trans","221E1C","(((SIGNED(A)*256)+B)*(9/8)+320)/10",-100,256,"°C","TCM"
"ABS Wheel Speed 1","ABS RFW","222b06","A",0,512,"km/h","ABS"
"ABS Wheel Speed 2","ABS LFW","222b07","A",0,512,"km/h","ABS"
"ABS Wheel Speed 3","ABS RRW","222b08","A",0,512,"km/h","ABS"
"ABS Wheel Speed 4","ABS LRW","222b09","A",0,512,"km/h","ABS"
"Engine Knock","Knock","2203ec","signed(A)/2",0,100,"°",""
Here are screenshots from my BlackBerry running Torque showing the PIDs while my car was running. Not all of them are working, and I can't even validate that some of these are accurate. I chose MIN and MAX values that I felt would be within the bounds of the sensor, but I can't tell if that is causing problems.




Hi Zehkaiser, thank you for your good work.

for your battery settings, make sure to use header "726", this will make your battery PIDs work.

All I request is more people in this community help figure out the equations.
 

·
Registered
Joined
·
313 Posts
Hi Zehkaiser, thank you for your good work.

for your battery settings, make sure to use header "726", this will make your battery PIDs work.

All I request is more people in this community help figure out the equations.
Well, I feel stupid. I'll update the post and the file. Thanks for supplying the PIDs. I ran some logging this morning on my way to work, but I haven't looked at the data to see if anything looks weird.
 

·
Registered
Joined
·
4,324 Posts
I had some weird stuff going on with the clutch slip equations. Can anyone else verify that these are correct? I think it might be a signed(a) value and even with that I got some readings that I didn't think were accurate - like the *(1/4) part. I'll have to look into it more when I actually have some free time... (read: never)

Or maybe I just typed the equation wrong?
 

·
Registered
Joined
·
313 Posts
I had some weird stuff going on with the clutch slip equations. Can anyone else verify that these are correct? I think it might be a signed(a) value and even with that I got some readings that I didn't think were accurate - like the *(1/4) part. I'll have to look into it more when I actually have some free time... (read: never)

Or maybe I just typed the equation wrong?
I'm getting weird readings, too. I read normal stuff while driving (0-10 RPMs), but when I let off the gas or shift gears it reads in the 16,000s.

I've also noticed that any PID that reads what gear the transmission is in is wrong. I'm either in 0, 2, 5, or 6.
 

·
Registered
Joined
·
16 Posts
Discussion Starter #15
Result is correct as I expect it to be.

Remember that we have a dual clutch transmission, so the Gear Engaged should either be 1,3,5 when you are on 2,4 (meaning that the system have engaged the clutch B when you are driving on clutch A). So Gear Engaged merely show you which clutch is engaged as preparation for the next shift.

However, if you want to know which Gear the PCM have commanded, use the Gear Commanded PID I have provided. That should show you Gears 1,2,3,4,5,6 properly.

As for the Clutch Slip, unless I can be proven wrong with a different equation, I believe this equation is correct and there should be no signed(a) value as clutch slip will never be a negative value.
 

·
Registered
Joined
·
313 Posts
The Clutch Engaged explanation makes sense. I've tweaked the PID list and will be testing again tomorrow to see if I've worked it all out.

As for the Clutch Slip, I think it is accurate when it is reading sub-1000 numbers, as I've noticed during shifts it will jump to about 130 (what the dealer said my car frequently shows), and if I downshift it shows 300-500 (which I can watch the RPM dial flare and then come back down). I'm sure the 16,000 reading is just a default when there isn't a reading.
 

·
Registered
Joined
·
4,324 Posts
I'm sure the 16,000 reading is just a default when there isn't a reading.
I would have thought the disengaged reading would be roughly equal to the RPM of the engine? That would make the most sense to me if it's not spinning at all when it's disengaged. And it should really hover around 0 when you're cruising in gear.

Even so, I would think the A is signed, because I remember it jumping from 0 to 16,000 while I was cruising in 6th gear.

EDIT: I did some data logging, I'll see what I can find out.

EDIT #2: Weird... in my data logging (was done at idle), it looks like my values match yours? But when I'm driving the car I think they're way different.

To be continued...
 

·
Registered
Joined
·
510 Posts
Is there any "easy" way of setting up these PID's in Torque? (AKA, other than typing them in one at a time)

I was looking at my file system in android and there is a file called TorqueConf.dat that seems to have the custom PID info in it. Is there any way for someone who has all of the PID's configured to share their "TorqueConf.dat" file so we can quickly import all PID's?
 

·
Registered
Joined
·
16 Posts
Discussion Starter #20
I would have thought the disengaged reading would be roughly equal to the RPM of the engine? That would make the most sense to me if it's not spinning at all when it's disengaged. And it should really hover around 0 when you're cruising in gear.

Even so, I would think the A is signed, because I remember it jumping from 0 to 16,000 while I was cruising in 6th gear.

EDIT: I did some data logging, I'll see what I can find out.

EDIT #2: Weird... in my data logging (was done at idle), it looks like my values match yours? But when I'm driving the car I think they're way different.

To be continued...
As far as I understand, for dual clutch systems, the B clutch will spin when the A clutch is engaged, thats how they advertise that it is a sports clutch, whereby a 2nd clutch is always spinning and ready to engage the moment you shift. So for me, i expect it to be spinning.

I am happy for you to try your signed(A) idea, but logically it does not make sense, since there is no point calculating negative RPM.
 
1 - 20 of 74 Posts
Top