CANhack.de CAN-Interface RKS+CAN
CAN Hardware, CAN Software, CAN Protocols - CAN Bus Forum for Your CAN Bus Project.

PIDs for odometer and fuel level

 
New Topic Reply 🔗 🖨 CANhack.de - Index » Microcontrollers and Electronics, Programming
Author Message
tallatghazi



Joined: 03/12/2024
Posts: 2
Karma: +0 / -0   Thank you, like it!


Free account, no CAN development support

Post12-03-2024, 13:10    Subject: PIDs for odometer and fuel level Quote

Hello,
I would be very grateful if someone could help me obtain only the following two PIDs for all light vehicle brands, or at least the major brands, starting from 2008.
1. Odometer
Fuel level.


Thank you.


Translated on 12-07-2026, 15:05.
Back to top Profile PM
CAN-Diagnose
Administrator
Administrator
Avatar-CAN-Diagnose

Joined: 06/07/2011
Posts: 573
Karma: +29 / -0   Thank you, like it!
Location: Ländle



Post12-03-2024, 14:05    Subject: PIDs for odometer and fuel level Quote

Quote:
for all lightweight vehicle brands or at least the major brands
.
Please insert coin. icon_lol.gif
Dipl.-Ing. (FH) Rainer Kaufmann - Embedded Software Freelancer
System RKS+CAN: CANHack.de CAN-Bus Interface


Translated on 12-07-2026, 15:05.
Back to top Profile PM WWW
postmann
CAN-Profi
CAN-Profi


Joined: 05/23/2013
Posts: 142
Karma: +63 / -0   Thank you, like it!


CAN Support

CAN-Diagnose likes this.
Post27-07-2024, 15:52    Subject: PIDs for odometer and fuel level Quote

If the vehicle supports OBD2 (which should be the case for most vehicles manufactured in 2008 or later), you will find them in the standard PID list.

Service 01 PID 2F -> Fuel Tank Level.
Service 01 PID A6 -> Odometer [Mileage]


Translated on 12-07-2026, 15:06.
Back to top Profile PM
tallatghazi



Joined: 03/12/2024
Posts: 2
Karma: +0 / -0   Thank you, like it!


Free account, no CAN development support

Post28-07-2024, 14:48    Subject: PIDs for odometer and fuel level Quote

postmann wrote:
If the vehicle supports OBD2 (which should be the case for most vehicles manufactured in 2008 or later), you will find them in the standard PIDs.

Service 01 PID 2F -> Fuel Tank Level.
Service 01 PID A6 -> Odometer [Mileage]



The problem is that most manufacturers have not included the PIDs for fuel level and odometer readings in the list of standard PIDs.

That's why I'm having trouble getting their proprietary PIDs.

I am even willing to pay for authentic data.

Thank you.


Translated on 12-07-2026, 15:07.
Back to top Profile PM
Ulli13



Joined: 10/08/2012
Posts: 27
Karma: +19 / -0   Thank you, like it!
Location: Senden
2018 Audi A4 Avant
CAN Support

CAN-Diagnose likes this.
Post02-08-2024, 11:58    Subject: Mileage and fuel consumption for Audi A4 Quote

My ESP32 is connected to the OBD port in my Audi A4 and sends data requests to the engine, transmission, and instrument cluster; it's working perfectly. It displays everything on a screen and also transmits it via Bluetooth.

Mileage: (MR)
Request 0x7E0 0x03 0x22 0x16 0xA9 0x55 ...
Answer: 0x7E8 0x06 0x62 0x16 0xA9 0x01 0x1D 0x79 * 1 = 73081 km.
0x06 is a 3-byte response that needs to be combined (High byte, Low byte).

Fuel level: (Motorola) Low High
Request 0x7E0 0x03 0x22 0x10 0x0C 0x55 ...
Answer: 0x7E8 0x05 0x62 0x10 0x0C 0x0C 0xE4 * 0.01 == 33 L
0x05 is a 2-byte response that needs to be combined (High/Low) (Intel).

You have to painstakingly calculate these factors (compared to the display in VCDS), and the temperatures are a real guessing game.

Best regards, Uli.
Audi A4 B9 Bj 2018


Translated on 12-07-2026, 15:10.
Back to top Profile PM Email Garage
New Topic Reply 🔗 🖨 CANhack.de - Index » Microcontrollers and Electronics, Programming
Similar articles and topics
Topic Forum
No new posts Fuel Level: How to Check Your Car's Gauge General
Jump to:  
You cannot post new topics in this forum.