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

New example sketch for custom headers #239

Merged
merged 3 commits into from
Mar 29, 2024

Conversation

jimwhitelaw
Copy link
Collaborator

This example shows how to perform several opearations for using custom (non-OBD2 standard)
queries.

Custom Header
We perform a query that requires a custom header to be sent first. The custom header in this
case determines which ECU in the vehicle's system we want to query.

Custom PID
The query sent to the vehicle is also a custom (non OBD2 standard) PID using the 0x22
(enhanced data) mode.

Manually Processing Response
In this example, we manually extract the data value from the query response and perform
some post-processing to calculate the correct value.

Managing Query State
We also demonstrate managing the query state used by the loop() method. This is typically
managed internally by ELMduino for standard PID methods.

Customize all the things!
The header value, PID, data value bytes and adjustment formula are generally unique for
each different vehicle and PID. You will need to source the correct values for those for
your specific vehicle. This example almost certainly will not work for you "as-is".

@jimwhitelaw jimwhitelaw merged commit e81f308 into PowerBroker2:master Mar 29, 2024
@jimwhitelaw jimwhitelaw deleted the custom-header branch March 29, 2024 04:00
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

Successfully merging this pull request may close these issues.

None yet

1 participant