Instant and average fuel consumption

Everything regarding communication-protocols like CAN, OBD, LIN, JTAG, BDM, I2C, SPI, ...
Post Reply
sanndo
Active member
Posts: 106
Joined: 09 Feb 2020, 14:21

Instant and average fuel consumption

Post by sanndo »

How we can get Instant and average fuel consumption by CAN?
I want to make a Arduino code to show this info on LCD
DGAlexandru
Pro
Posts: 364
Joined: 04 Aug 2019, 22:47

Re: Instant and average fuel consumption

Post by DGAlexandru »

This information is not present on CAN. The IPC is responssible for calculating them. All it gets from CAN is fuel flow or something similar and then computes this against vehicle speed.
You'll have to sniff CAN for data that changes with RPM and go from there.

We can get the algorithm from IPC by reverse engineering using a dissasembler software against its flash contents... but this might proove to be harder to do than sniffing CAN and doing some math :P
sanndo
Active member
Posts: 106
Joined: 09 Feb 2020, 14:21

Re: Instant and average fuel consumption

Post by sanndo »

if we know formula... we can create simple c++ arduino code to calculate ... maybe :D
08B is fuel, right?
Post Reply