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

Fixes #2 - adds faster sensor reading #10

Merged
merged 1 commit into from
Jan 21, 2018
Merged

Fixes #2 - adds faster sensor reading #10

merged 1 commit into from
Jan 21, 2018

Conversation

rzetterberg
Copy link
Owner

Description

Sends expected data lines with each OBD command to speed up communication. According to the ELM327 datasheet you can send a single hex number at the end of a request that represents how many lines of data to expect. You can read more about this on page 33 in the data sheet.

For each data line there are 4 bytes, so this change takes the data width (amount of bytes) and divides it by 4 to get the amount of data lines. Currently this value will always be 1, since there are no commands that return more than 4 bytes. Instead of hard coding it to 1, we have a future proof solution.

Checklist

  • Running go test locally is successful
  • VERSION has been changed
  • Changes has been documented in CHANGELOG.md

@rzetterberg rzetterberg added this to the 2017 Q4 milestone Jan 21, 2018
@rzetterberg rzetterberg self-assigned this Jan 21, 2018
@rzetterberg rzetterberg merged commit 463c85c into master Jan 21, 2018
@rzetterberg rzetterberg deleted the issue-2 branch January 21, 2018 12:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant