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

EV support for Freematic libraries #184

Open
PonomarovP opened this issue Jun 6, 2023 · 2 comments
Open

EV support for Freematic libraries #184

PonomarovP opened this issue Jun 6, 2023 · 2 comments

Comments

@PonomarovP
Copy link

Standard OBD-2 protocol is not supported in electric vehicles. Other diagnostic protocols over OBD-socket are used instead, applying longer parameter IDs. Is there a plan to support these protocols in further Freematic software versions?

@JeroenVanOort
Copy link

I doubt it's even specific to EV's. It might simply be recent cars in general: they don't support the standard OBD-II PID's, but work using Unified Diagnostic Services instead.

Based on the information in this issue I've been trying some things and these are some of the problems in need of solving in order to support UDS.

  1. Using other services than 01.
    Currently the service / mode used is hardcoded.
  2. Better response parsing
    I believe that at this time, only the first line returned by the co-processor (acting as an ELM327) is parsed, while there may be several, as UDS uses ISO-TP in order to handle messages that are larger than the space available in a CAN frame.
  3. Support getting multiple data points from one PID
    In UDS, it seems common to have one PID with many data fields within it. For example 220101 in Hyundai/KIA vehicles:
    image
    source

I do think the lack of UDS support will increasingly be a deal breaker for Freematics products.

@stanleyhuangyc
Copy link
Owner

We are considering adding ISO-TP.

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

No branches or pull requests

3 participants