Torque

Forums

Forums

Guest  

Show or hide header
Welcome Guest, posting in this forum require registration.




Torque » Torque OBD ECU Scanner » Torque Discussion / Ideas » Odometer(from ECU) bug

Pages: [1]
Author Topic: Odometer(from ECU) bug
oliverClimbs
Member
Posts: 10
Post Odometer(from ECU) bug
on: May 14, 2023 (GMT)

PID Odometer(from ECU) [a6] shows a totally wrong value (-164,101,072.00). It should show 31,580.6. Other OBD2 software does show the correct value.

I created a custom PID with the following formula I found at https://en.wikipedia.org/wiki/OBD-II_PIDs#Standard_PIDs:

(A*(2^24)+B*(2^16)+C*(2^8)+D)/10

and that delivers the correct value.

cintakc
Member
Posts: 1646
Post Re: Odometer(from ECU) bug
on: May 14, 2023 (GMT)

try this
(A*16777216+B*65536+C*256+D)/10

oliverClimbs
Member
Posts: 10
Post Re: Odometer(from ECU) bug
on: May 14, 2023 (GMT)

Actually, my formula works. Just posted this so that it gets fixed in the next release.

Vasilich
Member
Posts: 218
Post Re: Odometer(from ECU) bug
on: May 15, 2023 (GMT)

just FYI: most understandable (and probably fastest) formula view would be
INT32(A:B:C:D)/10

oliverClimbs
Member
Posts: 10
Post Re: Odometer(from ECU) bug
on: May 15, 2023 (GMT)

Thanks for the info. It works perfectly. Now Torque just needs to fix their internal PID. Then this custom PID wouldn’t even be necessary.

Pages: [1]
WP-Forum by: Fredrik Fahlstad, Version: 2.4
Page loaded in: 0.018 seconds.

  Follow me on twitter