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 · 2 comments
Open

Generic Profile vehicle_speed appears to be incorrect? #206

cloudbr34k84 opened this issue Sep 18, 2024 · 2 comments
Labels
bug Something isn't working

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

@jay-oswald jay-oswald added the bug Something isn't working label Oct 15, 2024
@meatpiHQ
Copy link
Owner

@cloudbr34k84 is this still an issue for you?

The Generic Profile speed is working for me, this is a standard PID. If you're seeing the wrong value in WiCAN but the correct value in car scanner app, this means there is a different PID specific for your car.

@cloudbr34k84
Copy link
Author

Hey @meatpiHQ
I haven't had time to check this because I'm having to rebuild my home assistant server. I have a backup but there is something causing high temps 90-100 and subsequently my server died.
Close it off for now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants