Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generic Profile vehicle_speed appears to be incorrect? #206

Open
cloudbr34k84 opened this issue Sep 18, 2024 · 0 comments
Open

Generic Profile vehicle_speed appears to be incorrect? #206

cloudbr34k84 opened this issue Sep 18, 2024 · 0 comments

Comments

@cloudbr34k84
Copy link

The sensor for vehicle_speed is reporting 0-250km/h
image

OBD2 PID for Vehicle Speed:

The PID for vehicle speed is 0x0D.
Formula for Calculating Vehicle Speed:

  • The response for PID 0x0D is a single byte (A).
  • The formula to convert this byte (A) into vehicle speed is:
  • Vehicle Speed (km/h)=A

How to Use the Data:
When you request PID 0x0D, you will get a value for A in hexadecimal.
Convert the hexadecimal value of A to decimal, and that is the vehicle speed in kilometers per hour (km/h).

Example:
Let’s say the OBD2 scanner reads a value of 0x28 for PID 0x0D.
Convert 0x28 to decimal:
0x28=40 (decimal)
This means the vehicle speed is:
Vehicle Speed=40km/h

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant