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

Support for ISO 14230-2 KWP #12

Merged
merged 14 commits into from
Aug 1, 2018
Merged

Support for ISO 14230-2 KWP #12

merged 14 commits into from
Aug 1, 2018

Conversation

iwanders
Copy link
Owner

@iwanders iwanders commented Aug 1, 2018

This adds the ISO 14230-2 KWP support to the master branch. Confirmed today that the 9141-2 functionality on this branch is unaffected using the Display example. This closes #11, closes #5

@@ -70,7 +70,7 @@ typedef struct{
} obd_unit;

typedef struct{
uint32_t old_value;
int32_t old_value;
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One small unrelated fix to ensure that clearing the previous number doesn't break when a negative number was displayed, such as low temperatures.

@@ -57,7 +57,7 @@
// The ECU might not push all bytes on the bus immediately, but wait several ms
// between the bytes, this is the time allowed per byte for the answer

#define OBD9141_WAIT_FOR_REQUEST_ANSWER_TIMEOUT (30 + 10)
#define OBD9141_WAIT_FOR_REQUEST_ANSWER_TIMEOUT (30 + 20)
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Slight increase in this timeout, KWP may require some different timing. In normal operation the code never reaches this timeout so it doesn't negatively affect any successful operation because we return after reading all the expected bytes.

@iwanders
Copy link
Owner Author

iwanders commented Aug 1, 2018

@mjs513, this functionality was in large part made possible by your efforts in testing my code. I enjoyed the quick back and forths we did on #11. Thanks for the collaboration and your help in improving this library!

If you have any last comments before this is merged with master, let me know. If you would like an explicit callout in the readme to mjs513, feel free to say so and I'll happily add it.

@mjs513
Copy link

mjs513 commented Aug 1, 2018

@iwanders. Sorry for the delay in getting back to you. I agree I had a lot fun working on this with you testing the code changes.

I really don't have anything else to add before you do the merge. An no I do not need any explicit callout in the readme. But thanks for offering.

Mike

@iwanders iwanders merged commit cc2055d into master Aug 1, 2018
@iwanders iwanders mentioned this pull request Nov 14, 2022
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.

Questions and ISO 14230-2 KWP development KWP 2000 fast init
2 participants