Sponsored

Firn

Well-known member
Joined
Aug 26, 2024
Threads
32
Messages
1,521
Reaction score
1,724
Location
USA
Vehicles
23 Pro ER
I’ve been working on getting better data visibility for my F-150 Lightning. While FORScan and Car Scanner are the gold standards for seeing what’s going on, they are not always the most convenient tool for long-term logging or custom dashboards. I wanted to move that high-level data into Torque, but that requires knowing the exact hex PIDs and the specific math formulas Ford uses—and the current PID list is inadequate.

To solve this, I used Google Gemini Pro as a data science partner. By feeding the AI raw Bluetooth packet logs and comparing them to live app data, I was able to bridge the gap. We aren't "finding" PIDs that didn't exist—FORScan already sees them—but we are deconstructing them so they can be used in other applications.

The Breakthrough: AI-Enabled Correlation
Typically, matching raw hex values to real-world sensor data requires significant experience in signal processing or software engineering. You have to account for clock drift, filter out thousands of background messages, and solve for linear equations (Scale/Offset) manually.

By using Gemini , I was able to upload the raw .pcapng packet logs and the CSV logs from the diagnostic apps directly. The AI performed the time-syncing and regression analysis automatically. You still have to validate the results, in one instance it switched brake pedal travel and LF brake pressure, but to be honest it also identified that the brake pedal travel PID had unusually high precision. This mistake is not surprising, brake pedal travel and pressure exactly matched (truck was parked) so the plots looked near the same.

Ford F-150 Lightning Deconstructing the Lightning: Using AI to Map PIDs for Torque Screenshot 2026-01-30 221054


Note: While I used a paid Gemini account for the massive context window needed for long logs, you can do this with the free version by feeding it smaller snippets of data.

How to Do It Yourself (Instructional Guide)
If you want to help expand our community PID list, here is the pathway to capture the data.

Ford F-150 Lightning Deconstructing the Lightning: Using AI to Map PIDs for Torque Screenshot 2026-01-30 210342



1. The Sniffer Setup (Windows)
Standard Wireshark on Windows can’t see Bluetooth traffic without help. You need the Microsoft Bluetooth Virtual Sniffer (BTVS).
  • Download: Get the "Bluetooth Test Platform" from Microsoft.
  • The Shortcut: Navigate to the folder containing btvs.exe. Click into the Address Bar of your File Explorer, type cmd, and hit Enter.
  • Launch: In the command window, type btvs.exe -Mode Wireshark. This will open Wireshark and start piping your Bluetooth traffic into it.
2. The Capture Session
  • Laptop Method: Run FORScan and select 5–10 PIDs you want to map. Start your Wireshark capture and perform a specific action (e.g., sweep the steering wheel or plug in a charger).
  • Android Method: Enable "Bluetooth HCI Snoop Log" in Developer Options. Run CarScanner or similar, do your test, and then pull the log via a Bug Report.

Ford F-150 Lightning Deconstructing the Lightning: Using AI to Map PIDs for Torque Screenshot 2026-01-30 221027



3. The Analysis
Once you have your logs, you can use an AI like Gemini to do the math. Tell it: "I have a Bluetooth log (hex) and a sensor log (decimal). Match the timestamps and find the hex PID and the formula for [Sensor Name]."

Ford F-150 Lightning Deconstructing the Lightning: Using AI to Map PIDs for Torque Screenshot 2026-01-30 221105


Ford F-150 Lightning Deconstructing the Lightning: Using AI to Map PIDs for Torque Screenshot 2026-01-30 221027


What We’ve Mapped So Far
Through this process, I’ve already moved several high-fidelity sensors over to Torque:

SensorPIDEquationHeader
High-Res SOC224801(A*256+B)/5007E4
Brake Pressure (LF)222B28(A*256+B)/6.89760
Charging Power (W)22484E(A*256+B)*57E4
Energy to Empty (kWh)224848(A*256+B)/5007E4

Call to Action: Let's Build the List
This is just the start. There are hundreds of PIDs available in the different modules. Tons for the IPC, IPMA, APIM, etc. If you have a favorite sensor or trigger in FORScan that you wish you had in Torque, use the pathway above to capture a log (or give me a shout).

Post your logs or your findings here, and let’s see how large of a "community dictionary" we can build for the Lightning.



Torque values extracted (copy to torque csv).
Name,ShortName,ModeAndPID,Equation,Min Value,Max Value,Units,Header
Battery SOC (High Res),SOC HR,224801,(A*256+B)/500,0,100,%,7E4
HV Battery Current,Amps,22480A,(SIGNED(A*256+B))/100,-500,500,A,7E4
Charging Power,Chg Watts,22484E,(A*256+B)*5,0,20000,W,7E4
Battery Energy to Empty,kWh Rem,224848,(A*256+B)/500,0,150,kWh,7E4
Accelerator Pedal Position,Throttle,22F449,A/2.55,0,100,%,7E4
Steering Wheel Angle,Steer Ang,223302,((A*256+B)-7810)/10,-900,900,°,760
Brake Pressure LF,Brk Press,222B28,(A*256+B)/6.89,0,2000,psi,760
Brake Pedal Position,Brk Pedal,222823,(A*256+B)/2500,0,2,in,760
Lateral Acceleration,Lat G,222B0C,SIGNED(A*256+B)/100,-2,2,G,760
Battery Coolant Inlet Temp,Clnt In T,224846,(A-50)*1.8+32,-40,150,°F,7E4

Ford F-150 Lightning Deconstructing the Lightning: Using AI to Map PIDs for Torque Screenshot 2026-01-30 210403
Sponsored

 

digitaldad

Well-known member
Joined
Jan 14, 2025
Threads
15
Messages
387
Reaction score
362
Location
ABQ
Vehicles
2023 Lariat ER MaxTow
Pretty cool. I know you've posted other threads/comments about Torque...but for those of us not aware (like me):

By quick search, I see this is on Andoid & iOS (assume an alternative to CarScanner).

Does Torque (or Torque Pro) have fullscreen on CarPlay and Andoid Auto?

Are you planning custom dashboards for the app?

Any of this play into Home Assistant?

Sorry for the sidetrack, but I think there may be a wider audience if more details are known.

Thanks
 
OP
OP
Firn

Firn

Well-known member
Joined
Aug 26, 2024
Threads
32
Messages
1,521
Reaction score
1,724
Location
USA
Vehicles
23 Pro ER
Pretty cool. I know you've posted other threads/comments about Torque...but for those of us not aware (like me):

By quick search, I see this is on Andoid & iOS (assume an alternative to CarScanner).

Does Torque (or Torque Pro) have fullscreen on CarPlay and Andoid Auto?

Are you planning custom dashboards for the app?

Any of this play into Home Assistant?

Sorry for the sidetrack, but I think there may be a wider audience if more details are known.

Thanks
Torque really is the old-school OBD tool. Sadly, its stuck there too, and it never really modernized or added more features other than just visualizing PIDs.

I do not believe Torque itself does AA or CP, but I do feel like I have seen some AA dashboards. I cannot say much more than out of the gate, no.

I'm not sure how it would integrate with home assistant, and I'm not familiar with it enough to even guess.

In the end I use Torque simply for the logging. I could not find any other app that did logging in an easy to use manner. I do use it for a dash boards and I just posted another thread on what I am using it for.
 

chriserx

Well-known member
First Name
Chris
Joined
Oct 3, 2025
Threads
1
Messages
594
Reaction score
433
Location
Louisiana
Vehicles
2025 Ford Lightning Flash Job 2 😭
I’ve been working on getting better data visibility for my F-150 Lightning. While FORScan and Car Scanner are the gold standards for seeing what’s going on, they are not always the most convenient tool for long-term logging or custom dashboards. I wanted to move that high-level data into Torque, but that requires knowing the exact hex PIDs and the specific math formulas Ford uses—and the current PID list is inadequate.

To solve this, I used Google Gemini Pro as a data science partner. By feeding the AI raw Bluetooth packet logs and comparing them to live app data, I was able to bridge the gap. We aren't "finding" PIDs that didn't exist—FORScan already sees them—but we are deconstructing them so they can be used in other applications.

The Breakthrough: AI-Enabled Correlation
Typically, matching raw hex values to real-world sensor data requires significant experience in signal processing or software engineering. You have to account for clock drift, filter out thousands of background messages, and solve for linear equations (Scale/Offset) manually.

By using Gemini , I was able to upload the raw .pcapng packet logs and the CSV logs from the diagnostic apps directly. The AI performed the time-syncing and regression analysis automatically. You still have to validate the results, in one instance it switched brake pedal travel and LF brake pressure, but to be honest it also identified that the brake pedal travel PID had unusually high precision. This mistake is not surprising, brake pedal travel and pressure exactly matched (truck was parked) so the plots looked near the same.

Screenshot 2026-01-30 221054.webp


Note: While I used a paid Gemini account for the massive context window needed for long logs, you can do this with the free version by feeding it smaller snippets of data.

How to Do It Yourself (Instructional Guide)
If you want to help expand our community PID list, here is the pathway to capture the data.

Screenshot 2026-01-30 210342.webp



1. The Sniffer Setup (Windows)
Standard Wireshark on Windows can’t see Bluetooth traffic without help. You need the Microsoft Bluetooth Virtual Sniffer (BTVS).
  • Download: Get the "Bluetooth Test Platform" from Microsoft.
  • The Shortcut: Navigate to the folder containing btvs.exe. Click into the Address Bar of your File Explorer, type cmd, and hit Enter.
  • Launch: In the command window, type btvs.exe -Mode Wireshark. This will open Wireshark and start piping your Bluetooth traffic into it.
2. The Capture Session
  • Laptop Method: Run FORScan and select 5–10 PIDs you want to map. Start your Wireshark capture and perform a specific action (e.g., sweep the steering wheel or plug in a charger).
  • Android Method: Enable "Bluetooth HCI Snoop Log" in Developer Options. Run CarScanner or similar, do your test, and then pull the log via a Bug Report.

Screenshot 2026-01-30 221027.webp



3. The Analysis
Once you have your logs, you can use an AI like Gemini to do the math. Tell it: "I have a Bluetooth log (hex) and a sensor log (decimal). Match the timestamps and find the hex PID and the formula for [Sensor Name]."

Screenshot 2026-01-30 221105.webp


Ford F-150 Lightning Deconstructing the Lightning: Using AI to Map PIDs for Torque Screenshot 2026-01-30 221027


What We’ve Mapped So Far
Through this process, I’ve already moved several high-fidelity sensors over to Torque:

SensorPIDEquationHeader
High-Res SOC224801(A*256+B)/5007E4
Brake Pressure (LF)222B28(A*256+B)/6.89760
Charging Power (W)22484E(A*256+B)*57E4
Energy to Empty (kWh)224848(A*256+B)/5007E4

Call to Action: Let's Build the List
This is just the start. There are hundreds of PIDs available in the different modules. Tons for the IPC, IPMA, APIM, etc. If you have a favorite sensor or trigger in FORScan that you wish you had in Torque, use the pathway above to capture a log (or give me a shout).

Post your logs or your findings here, and let’s see how large of a "community dictionary" we can build for the Lightning.



Torque values extracted (copy to torque csv).
Name,ShortName,ModeAndPID,Equation,Min Value,Max Value,Units,Header
Battery SOC (High Res),SOC HR,224801,(A*256+B)/500,0,100,%,7E4
HV Battery Current,Amps,22480A,(SIGNED(A*256+B))/100,-500,500,A,7E4
Charging Power,Chg Watts,22484E,(A*256+B)*5,0,20000,W,7E4
Battery Energy to Empty,kWh Rem,224848,(A*256+B)/500,0,150,kWh,7E4
Accelerator Pedal Position,Throttle,22F449,A/2.55,0,100,%,7E4
Steering Wheel Angle,Steer Ang,223302,((A*256+B)-7810)/10,-900,900,°,760
Brake Pressure LF,Brk Press,222B28,(A*256+B)/6.89,0,2000,psi,760
Brake Pedal Position,Brk Pedal,222823,(A*256+B)/2500,0,2,in,760
Lateral Acceleration,Lat G,222B0C,SIGNED(A*256+B)/100,-2,2,G,760
Battery Coolant Inlet Temp,Clnt In T,224846,(A-50)*1.8+32,-40,150,°F,7E4

Screenshot 2026-01-30 210403.webp
Ford F-150 Lightning Deconstructing the Lightning: Using AI to Map PIDs for Torque 1769842851836-9y
 

Sponsored

mr.Magoo

Well-known member
Joined
May 27, 2022
Threads
24
Messages
992
Reaction score
1,254
Location
Michigan
Vehicles
2022 Lariat ER, AMB

Timeless Epoch

Well-known member
First Name
Chad
Joined
Mar 3, 2025
Threads
5
Messages
206
Reaction score
323
Vehicles
2024 F150 Lightning Platinum
Occupation
Professionally: Disaster Recovery - Recreationally: Watchmaker
Sir, if you could use your AI correlation engine and packet capturing prowess to find and capture the CAN message sent to kick off charging pre-conditioning, you could very well be the hero of the internet for a few days.
 
OP
OP
Firn

Firn

Well-known member
Joined
Aug 26, 2024
Threads
32
Messages
1,521
Reaction score
1,724
Location
USA
Vehicles
23 Pro ER
Sir, if you could use your AI correlation engine and packet capturing prowess to find and capture the CAN message sent to kick off charging pre-conditioning, you could very well be the hero of the internet for a few days.
CAN work has been on the back of my mind for sure.

I guess theoretically that message may originate at the APIM, but who knows if its a back and forth stream or just a single alert. I'm hardly an expert on that.
 

srspring551

Well-known member
First Name
Scott
Joined
Mar 31, 2023
Threads
14
Messages
128
Reaction score
129
Location
WI
Vehicles
F150 Lightning Lariat 2023 ER, delivered 10-28-23
Pretty cool. I know you've posted other threads/comments about Torque...but for those of us not aware (like me):

By quick search, I see this is on Andoid & iOS (assume an alternative to CarScanner).

Does Torque (or Torque Pro) have fullscreen on CarPlay and Andoid Auto?

Are you planning custom dashboards for the app?

Any of this play into Home Assistant?

Sorry for the sidetrack, but I think there may be a wider audience if more details are known.

Thanks
I see several "Torque" apps on IOS, is this the one from Collabrains Tech or Fantastic Software inc?
 

Sponsored

Jseis

Well-known member
Joined
Jul 22, 2023
Threads
44
Messages
619
Reaction score
1,030
Location
Washington
Vehicles
July 2021 SR MME, July 2023, Lightning Lariat
While not in my skill set, fab presentation & discussion!
 

TaxmanHog

Moderator
Moderator
First Name
Noel
Joined
Jan 19, 2022
Threads
218
Messages
16,024
Reaction score
17,989
Location
SE. Mass.
Vehicles
2022 Lightning Lariat-ER & 2024 HD Road Glide CVO-ST
Occupation
Retired
Watching & impressed with what several of your tech geeks can do, carry on!!!!
 

NW Ontario Ford Lightning

Well-known member
First Name
Robert
Joined
Feb 14, 2025
Threads
1
Messages
570
Reaction score
733
Location
NW Ontario Canada
Vehicles
2024 F-150 SR Lightning XLT, 2023 Escape Hybrid
Occupation
Contractor
Any of this play into Home Assistant?
I've been integrating my solar assistant into Home Assistant last few weeks, and building out automations for the property. I hear that HA can grab data from our Ford App - I hope to integrate the charging required into my overall energy management system.
Like the OP, I was able to harness AI to assist, where my own IT knowledge was too thin.
It is quite amazing what is possible now, that was unheard of just 5-6 years ago.
 

galstaf

Well-known member
Joined
Jul 20, 2025
Threads
3
Messages
50
Reaction score
30
Location
North Georgia
Vehicles
2015 LEAF x 2, 2022 F150 Lightning Lariat ER (511A trim)
Occupation
community offgrid training
Has anyone used a mechanism like this to find out how to turn on battery preconditioning manually?
There are some janky workarounds that involve tricking the truck into thinking it is going to a DC fast charger, but I want to just be able to hit a button and have it warm the battery up on the way to work where I can then charge it with an AC EVSE without having to wait for almost 2 hours for the EVSE to warm the battery up.

If Ford won't give us this very basic and useful option, perhaps we can feed the CAN bus instructions manually like the way a Comma self driving device activates steering and braking with it's CAN bus commands.


Does anyone know how the battery conditioning is implemented in the truck? A single CAN bus command? An on off switch?
Seems like something a lot of us would like especially during this cold snap!
Sponsored

 
 







Top