-
-
Notifications
You must be signed in to change notification settings - Fork 63
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
UDS Support (cancelled) #35
Comments
…time. #35 For OBD2, we usually want the default behavior of the ELM327Adapter, which is 1. Fast auto-negotiation with the vehicle, 2. Slow try with protocol after protocol, 3. Move to an error state, if we don't get a response. For UDS and/or direct communication with certain ECUs, it can be desirable to skip this logic and rather assume that the connected vehicle / ECUs use a specific protocol.
Apart from the changes I already did in the UDS branch, I sadly have to confess that I have abandoned the idea of adding full UDS support to this library. After having worked more on UDS (and I can release working code very soon), I have realized that when developing this library, I did base the protocols and the parsing with some OBD2-format-assumptions that no longer hold would I generalize this for introducing full UDS support. In order not to destabilize this library and add a lot of special casing and/or This also allows me to handle some of the other griefs that I always had with this library – in particular the support for multiple adapter types, multiple (non-apple) platforms, and the notion of units right from the start. Plus: The new library will be implemented in Swift, which – while not being uncontroversial – due to its richness in language concepts allows for a much better translation. |
Leaving this issue open so that it's immediately visible. |
only being curious and willing to learn: |
@rs38 I'll tell you. As I worked on UDS and KWP, trying to extend this library to cover both protocols, I began to understand how many OBD2-isms were lurking in Digression: Handling ISOTP fragmentation on the controller (OBD2 adapter) is a necessity for transmitting large ISOTP frames, i.e., when rewriting flash software to an ECU. The vast majority of ELM327 and its clones do not have the capability to handle this, hence you can't use them for something like ECU reprogramming or enhanced diagnostics. As I layed out an infrastructure that would support multiple adapter types with their own specific command sets, it became clear that I would have to tear a whole lot of the layers in Last but not least, I was teased by Swift, in particular Swift 5.5+. Swift 5.5+'s introduction of first class concurrency features allows for a wonderful mapping of hardware communication, which is inherently asynchronous, to programmatic control flow. So it became clear to me that I can only solve the complex requirement of rock-solid ECU reprogramming with a new Swift-Concurrency-based library. |
This issue is for keeping track of the necessary work to allow UDS communication as per ISO14229
The text was updated successfully, but these errors were encountered: