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

Updated to newest version of Python-OBD #1

Open
wants to merge 27 commits into
base: master
Choose a base branch
from

Conversation

ItsJustAGitHubMichealWhosGonnaSeeIt5Ppl

The version of Python OBD this was originally built on no longer seems to work, so I updated it and verified it works with my car :)

alistair23 and others added 27 commits March 2, 2020 21:06
This adds support for the Mode 9 PIDS, including VIN and CVN.

This is baed on the original work by Paul Mundt
(brendan-w#151).

This patch includes adding a few test cases for the new decoders.

Signed-off-by: Alistair Francis <[email protected]>
Signed-off-by: Alistair Francis <[email protected]>
Signed-off-by: Alistair Francis <[email protected]>
travis: Update the Python versions
 #### Issues Addressed
 When using OBD over legacy protocols like K-line the
 message is rejected because the ecu id is undefined
 even if the data is retrieved correctly.

 #### Summary of changes
 Add the ENGINE ID and TRANSMISSION ID to the list of ecu
 map at object creation time to have it available when
 receiving the message.

 #### Summary of testing
 Data is retrieved correctly on K-Line. Car used VW Lupo GTI
 Data is retrieved correctly on CAN cars. Car used Ford Focus.

Signed-off-by: Catalin Ghenea <[email protected]>
Increase "0100" query (PIDS_A) timeout to support inexpensive/slow OBDII adapters.

This patch fixes the case in which "SEARCHING" is not shown after "0100",
due to slow response of cheap devices.

```
[obd.elm327] write: '0100\r'
[obd.elm327] read: b'SEARCHING...\r...
```

It should also fix the case in which the debug mode needs to be active:
in fact the debug logs might slow down the query timeout enough to be able
to catch the query answer.

Reference brendan-w#205

Reference brendan-w#200

Reference brendan-w#187
 #### Issues addressed
 Can't auto detect protocol on BT connection
 even if the elm devices detects the protocol
 successfully.

 Add delay after erasing stored protocols
 so the adapter can read the discover command

 #### Summary of testing
 Tested on an Mazda MX5.
 The protocol can be detected successfully
 on each run. Tested for about 10 times in a row.

Signed-off-by: Catalin Ghenea <[email protected]>
Right now __read() will stop reading at "OK" even if a ">" is still coming.
This can cause the ">" to be seen as the response to the next command, which
confuses the initialization sequence, since the initialization sequence
expects a very specific set of responses to its commands.

This changes __read() so that by default it only treats ">" as the response
terminator. When we issue the "ATLP" command to enter low-power mode, we will
use "OK" as the response terminator instead, since that's the only time we
don't expect to see a prompt.

This should fix brendan-w#226 and should also fix brendan-w#227.
Signed-off-by: Alistair Francis <[email protected]>
Moving to a feature branch

This reverts commit 3ecbf6f.
This reverts commit eb8679e.
Also fixed some of the doc headers for more modern versions of mkdocs
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.

10 participants