Sponsored

PID experimenting

OP
OP
fordtruckman2003

fordtruckman2003

Well-known member
Joined
Apr 28, 2023
Threads
26
Messages
4,587
Reaction score
3,746
Location
Indy
Vehicles
2021 F-150 FX4 Lariat
I'll see if I can get odometer tomorrow to see what you talking about.
Sponsored

 
OP
OP
fordtruckman2003

fordtruckman2003

Well-known member
Joined
Apr 28, 2023
Threads
26
Messages
4,587
Reaction score
3,746
Location
Indy
Vehicles
2021 F-150 FX4 Lariat
I was confused this morning due to typo I was getting short term fuel trim not odometer. ?

I'll try again going home.

Built in Torque PID is definitely psycho.
Says truck has 79 million miles...
 
Last edited:

Cobraman428

Well-known member
First Name
Jerry
Joined
Dec 21, 2021
Threads
39
Messages
623
Reaction score
1,164
Location
Tampa Bay Florida
Vehicles
2021 F150 Platinum PB 701A MT FX4
Occupation
VP of IT
Man, I haven't been watching this thread in a few days, and it looks like you guys unlocked the PID Holy Grail while I was gone.... Can't wait to see what happens next... Keep up the good work guys...
 
Last edited:
OP
OP
fordtruckman2003

fordtruckman2003

Well-known member
Joined
Apr 28, 2023
Threads
26
Messages
4,587
Reaction score
3,746
Location
Indy
Vehicles
2021 F-150 FX4 Lariat
Can spam truck on mode 22 but no idea what the data is supposed to be on response. Not fond of that idea.
 
OP
OP
fordtruckman2003

fordtruckman2003

Well-known member
Joined
Apr 28, 2023
Threads
26
Messages
4,587
Reaction score
3,746
Location
Indy
Vehicles
2021 F-150 FX4 Lariat
Tada...

Ford F-150 PID experimenting Screenshot_20231106-160705~2
 

Sponsored

OP
OP
fordtruckman2003

fordtruckman2003

Well-known member
Joined
Apr 28, 2023
Threads
26
Messages
4,587
Reaction score
3,746
Location
Indy
Vehicles
2021 F-150 FX4 Lariat
Torque...

Long name can be whatever you fancy, I put my custom PID in brackets and differentiate them from the other [FORD] PID I have loaded. Makes easier to find but do what you want.

Odometer from 01A6 is in KM and full number.
So 12345 is really 1234.5 km.
That is why divide by 10.
You have to put the whole equation inside parentheses because Torque won't divide by 10 if you don't.

Put the unit type as km, torque automatically converts metric to standard if you have it setup in your settings.

INT32 is Torque only function not in OBDLink. It just returns a 4 byte 32 bit number.
Without that you would need to use the formula to convert into a 32 bit number the hard way...
Ford F-150 PID experimenting Screenshot_20231105-174951


Code:
OBD2 mode and PID: 01A6
Long Name: [FordEco2.7] Odometer
Short Name: Odometer
Max value: 500000
Unit type: km
Equation: ((INT32(A:B:C:D))/10)
This just shows the math Torque is doing step by step and you can see the truck value broken down A thru D as is the OBD2 standard.

Ford F-150 PID experimenting Screenshot_20231106-162126~2
 

oneinch

Well-known member
Joined
Apr 17, 2022
Threads
36
Messages
629
Reaction score
565
Location
Philly area
Vehicles
2022 F150 Powerboost, 2022 Maverick Lariat Lux
@fordtruckman2003, I bow to you. I entered the Odometer PID using your info and indeed it works. It's a hair off, but close enough for government work. My mileage is 16,377.3. The PID read 16,376.9.

I haven't the slightest idea how you figured this out, but you did it.

Ford F-150 PID experimenting Take a bow
 
OP
OP
fordtruckman2003

fordtruckman2003

Well-known member
Joined
Apr 28, 2023
Threads
26
Messages
4,587
Reaction score
3,746
Location
Indy
Vehicles
2021 F-150 FX4 Lariat
@fordtruckman2003, I bow to you. I entered the Odometer PID using your info and indeed it works. It's a hair off, but close enough for government work. My mileage is 16,377.3. The PID read 16,376.9.

I haven't the slightest idea how you figured this out, but you did it.

Take a bow.png
That is odd. Mine was fully accurate.
Did your truck have the gauge cluster replaced at some point? ?
 

Snakebitten

Well-known member
First Name
Bruce
Joined
Jun 19, 2021
Threads
5
Messages
11,560
Reaction score
22,964
Location
Coastal Texas
Vehicles
2022 F150 KingRanch Powerboost
I'm not saying that I'm not impressed by his seemingly effortless ability to parse that equation.
But I'm FAR more amazed that he can Wireshark, or packet sniff, or however you should describe what he did to harvest the oil pressure Pid from Forscan. That was cool!

Makes me wonder why these pids can be so elusive on the world wide interweb? ??
 
OP
OP
fordtruckman2003

fordtruckman2003

Well-known member
Joined
Apr 28, 2023
Threads
26
Messages
4,587
Reaction score
3,746
Location
Indy
Vehicles
2021 F-150 FX4 Lariat
Far as I know that was the only "missing" PID not out in the wild yet. I just did what I read on old forum post and looked what Forscan was doing. No different than how Forscan looked at what Ford software is doing when they created Forscan. I have no interest in fully reverse engineering Forscan. I'm a happy paid customer.
 

Sponsored


Spidergears

Well-known member
Joined
Mar 26, 2022
Threads
9
Messages
92
Reaction score
50
Location
Texas
Vehicles
F150
Obd link has a warning for the user defined pids. I’m not sure what kind of bad things can happen. Anybody broken anything on their truck with a user defined pid?
 
OP
OP
fordtruckman2003

fordtruckman2003

Well-known member
Joined
Apr 28, 2023
Threads
26
Messages
4,587
Reaction score
3,746
Location
Indy
Vehicles
2021 F-150 FX4 Lariat
Obd link has a warning for the user defined pids. I’m not sure what kind of bad things can happen. Anybody broken anything on their truck with a user defined pid?
Warning on every app. People have been using custom PID across many brands and vehicles since the apps came out. You could send something on the bus that would cause issues but it is unlikely.
 
OP
OP
fordtruckman2003

fordtruckman2003

Well-known member
Joined
Apr 28, 2023
Threads
26
Messages
4,587
Reaction score
3,746
Location
Indy
Vehicles
2021 F-150 FX4 Lariat
From what I can tell by online browsing Ford only put oil temperature sensors on diesel trucks. Some mentions of that comes up on power stroke forums.
 

PB2021

Well-known member
First Name
Rob
Joined
Sep 3, 2021
Threads
2
Messages
297
Reaction score
250
Location
Canada
Vehicles
2021 F150 Lariat Powerboost
While I'm bored fooling around anyone else have a PID that they can't find in OBDLink? ??
First of all thank you for finding the route to pull oil pressure. This is awesome to have on Powerboost. Wondering out loud here - what are the odds of tapping into the weigh scale option through a PID formula? 502a and higher all have the auto level LED lights and I believe the same sensors are used to feed calculations for weigh scales. Even if we don’t have the option on the dash might this be something that can be displayed through MX+ ?
 
OP
OP
fordtruckman2003

fordtruckman2003

Well-known member
Joined
Apr 28, 2023
Threads
26
Messages
4,587
Reaction score
3,746
Location
Indy
Vehicles
2021 F-150 FX4 Lariat
First of all thank you for finding the route to pull oil pressure. This is awesome to have on Powerboost. Wondering out loud here - what are the odds of tapping into the weigh scale option through a PID formula? 502a and higher all have the auto level LED lights and I believe the same sensors are used to feed calculations for weigh scales. Even if we don’t have the option on the dash might this be something that can be displayed through MX+ ?
Not something I have and if it's not in Forscan it probably isn't possible.

There is a lot of traffic on the CAN bus and I used to play with injection of my own commands on my Gen 12 but the Gen 14 is far more complex with tons of modules. I'm not really comfortable just throwing out data into that sea. Might cause a crash somewhere.

Something repeatable in a pattern can be inferred off logging all the CAN traffic but I don't see how you can do that with scales. It might be possible if scales work with truck off when bus has little traffic but it could be on a totally different bus too. I don't know anything about the LIN that connects some modules.
Sponsored

 
 







Top