Information: Following the announcement on October 23, 2023, this site has been archived as of July 1, 2024. For further details, visit this page.

Tutorial on Equations?

mjt57
Donator
Donator
Posts: 52
Joined: Thu May 28, 2020 9:42 pm
Location: Gippsland
Model Of Vehicle: RANGER WILDTRAK PX3
Year Of Vehicle: 2019
Has thanked: 5 times
Been thanked: 2 times

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
'19 Ranger Wildtrak.
CatHerder
Donator
Donator
Posts: 159
Joined: Mon Apr 22, 2019 12:02 am
Location: Canberra
Model Of Vehicle: RANGER XLT PX3
Year Of Vehicle: 2019
Forscan Dongle Type: OBDlink MX Black Bluetooth
Has thanked: 14 times
Been thanked: 39 times

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 138 times
Torque1.jpg
Torque1.jpg (377.76 KiB) Viewed 138 times
-
Torque2.jpg
Torque2.jpg (377.28 KiB) Viewed 138 times
Torque2.jpg
Torque2.jpg (377.28 KiB) Viewed 138 times
-
Torque3.jpg
Torque3.jpg (203.65 KiB) Viewed 138 times
Torque3.jpg
Torque3.jpg (203.65 KiB) Viewed 138 times
Last edited by CatHerder on Sun Nov 21, 2021 3:07 pm, edited 2 times in total.
Ian B
PX3 XLT 3.2
mjt57
Donator
Donator
Posts: 52
Joined: Thu May 28, 2020 9:42 pm
Location: Gippsland
Model Of Vehicle: RANGER WILDTRAK PX3
Year Of Vehicle: 2019
Has thanked: 5 times
Been thanked: 2 times

Thanks. I'll see if I can work it out from here.
'19 Ranger Wildtrak.