Skip to content

PIDs: Add support for compute-friendly API (NSUnit and NSNumber) #12

Open

Description

@mickeyl

Right now, the main command class LTOBD2Command provides the formattedResponse call that returns an NSString for displaying the result of a command.

To allow more sophisticated processing of the returned value (like, putting values into a database, comparing different runs, drawing graphs, etc.), it would be beneficial to add API that returns the actual units and values of a command, e.g.:

+(NSUnit)unit;
-(NSNumber)value;

Subsequently, the implementation of formattedResponse would then be rewritten to utilize these functions leveraging a (customizable?) NSUnitFormatter.

Activity

  1. added this to the 2.0 milestone on Feb 19, 2021
  2. lygialiem commented on Feb 9, 2023

    @lygialiem

    Hi Mickey, is this feature available now?

  3. mickeyl commented on Feb 9, 2023

    @mickeyl
    OwnerAuthor

    Unfortunately not. What was planned as 2.0 didn't emerge, much because of this. Hence, this library has been put into critical-bugfixes-only mode.

    There has been an enormous amount of work done on an async-Swift-first successor library which features many protocols (UDS, KWP, CCP, XCP, HSFZ, …), but unfortunately economic reasons have dictated that this is going to be a proprietary closed source library. A corresponding commercial SDK is planned to be offered in the near future.

  4. lygialiem commented on Feb 9, 2023

    @lygialiem

    Hi Mickey. Thank you for your response.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions