Page 1 of 1

Tutorial on Equations?

Posted: Sat Feb 06, 2021 10:43 am
by mjt57
I'm still learning about this stuff, so all I do is to copy into Torque ready-made PIDs (what does PID stand for anyway?).

The calcs or equations baffle me. Is there somewhere where I can learn how they work. For example, many have the letter "A" in them.

And the header, say, 0E7 (dunno if that's a real one) and other data that form a PID don't mean anything to me.

I have searched on here (and Google) but maybe I did what my wife calls, a "man look".

Thanks.
Martin

Re: Tutorial on Equations?

Posted: Sat Feb 06, 2021 4:41 pm
by CatHerder
Firstly, because we're dealing with computer stuff, numbers are generally shown as hexadecimal (0-F, and case doesn't matter) and this also makes it easy to convert to/from binary. While hex' numbers are generally shown with an 'x' in their presentation (eg: 0xfff67ea1) this seems to be forgone (assumed?) with TORQUE stuff.

PID = Parameter IDentity/IDentifier (unique reference to a parameter associated with a module)
HEADER identifies the module (PCM-7E0, BCM-726, TCM-7E1, etc)

Some of the 'assumed knowledge' fluffy stuff is that a PID has a default unit type (%, C, Volt, ..) AND the module is programmed to use either metric or imperial units. (The Ranger is all metric, but be careful with some PID info from the USA because their older modules use USA imperial units for PIDs)
There are other posts that list the available PIDs.

Once you have the HEADER and PID you can then interrogate the module with a query to see what the value of the PID is at that point in time. (With TORQUE each time the little green light flashes on a display gauge the PID has been queried). The PID value has 2 components, an A part and B part (very occasionally there can be more) which will be hexadecimal numbers. These A and B numbers then need to be converted to decimal and maybe changed to/from metric/imperial to be human readable.
(For interest, some PIDs are spewed out regularly by a module without being queried because the programmers know this PID info is often needed by other modules, like VSS-VehicleSpeedSensor)

Some screen shots are below that I hope capture this explanation. It's for Transmission Temp PID (221e1c) so we are querying the TCM (7e1). The response from the TCM has the HEADER 7E9 (7E1+8) so Torque knows what this packet of information refers to, and it will then update the gauge display with this value. Torque very nicely allows you to TEST the proposed PID and EQUATION information to see if it works before accepting what you type and shows the A and B components in your equation. In the example below the TransTemp is 78.3125 C.
Torque1.jpg
Torque1.jpg (377.76 KiB) Viewed 140 times
Torque1.jpg
Torque1.jpg (377.76 KiB) Viewed 140 times
-
Torque2.jpg
Torque2.jpg (377.28 KiB) Viewed 140 times
Torque2.jpg
Torque2.jpg (377.28 KiB) Viewed 140 times
-
Torque3.jpg
Torque3.jpg (203.65 KiB) Viewed 140 times
Torque3.jpg
Torque3.jpg (203.65 KiB) Viewed 140 times

Re: Tutorial on Equations?

Posted: Sun Feb 07, 2021 8:37 am
by mjt57
Thanks. I'll see if I can work it out from here.