Code Monkey home page Code Monkey logo

obd2kit's People

Contributors

mgile avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

obd2kit's Issues

How to get trouble codes using present Github code

Hello,
I have been testing present Github code with wifi ELM-327 OBD-2 device. RPM is completing working fine. But i want to get a Trouble Codes and for that i tried to make few changes as well.

Yet i am not able to get any Trouble Codes.

It would be really appreciated if any one of you can help me to get trouble codes ?

Regards,
Jiten

Can't get any other PID except 0x0C and 0x0D

Hi,

I'm trying to get other PID's in my app, however all that I'm getting 0x0C and 0x0D. I want 0x2F, 0x0A, and 0x11. Here is the code that I'm trying to use:

- (void)scanTool:(FLScanTool*)scanTool didReceiveResponse:(NSArray*)responses {
    FLINFO(@"DID RECEIVE RESPONSE")

    FLECUSensor* sensor =   nil;

    for (FLScanToolResponse* response in responses) {

        sensor          = [FLECUSensor sensorForPID:response.pid];
        [sensor setCurrentResponse:response];
        PID.text = [NSString stringWithFormat:@"%lu", (unsigned long)response.pid];
        if (response.pid == 0x0C) {
            // Update RPM Display
            rpmLabel.text   = [NSString stringWithFormat:@"%@ %@", [sensor valueStringForMeasurement1:NO], [sensor imperialUnitString]];
            [rpmLabel setNeedsDisplay];
        }
        else if(response.pid == 0x2F){
            NSLog(@"Fuel level at: %@",[NSString stringWithFormat:@"%@ %@", [sensor valueStringForMeasurement1:NO], [sensor imperialUnitString]] );
            fuelLevel.text = [NSString stringWithFormat:@"%@ %@", [sensor valueStringForMeasurement1:NO], [sensor imperialUnitString]];
            [fuelLevel setNeedsDisplay];
        }
        else if(response.pid == 0x0A){
            NSLog(@"Fuel pressure: %@", [NSString stringWithFormat:@"%@ %@", [sensor valueStringForMeasurement1:NO], [sensor imperialUnitString]]);


        }
        else if(response.pid == 0x11){

            NSLog(@"Throttle Position: %@", [NSString stringWithFormat:@"%@ %@", [sensor valueStringForMeasurement1:NO], [sensor imperialUnitString]]);
            TPS.text = [NSString stringWithFormat:@"%@ %@", [sensor valueStringForMeasurement1:NO], [sensor imperialUnitString]];
            [TPS setNeedsDisplay];
        }
        else if(response.pid == 0x0D) {
            // Update Speed Display
            speedLabel.text = [NSString stringWithFormat:@"%@ %@", [sensor valueStringForMeasurement1:NO], [sensor imperialUnitString]];

            [speedLabel setNeedsDisplay];
        }else{

        }

    }

}

What am I doing wrong? I tried printing the value for the PID to a label and all I'm getting is 12 and 13 when I push the gas pedal. I'm driving a Lexus RX400h with a very temperamental brain that likes to control the RPM speed and fuel consumption itself. Is my car the problem?

How to get continuously OBD2 Infos with OBD2Kit

Hey Guys,

I'm developing an iPhone App which connect to my Wifi OBD2 Adapter an sends me the actual values to my Phone continuously. That means when I drive faster I also want to show this in my App. I'm using the OBD2Kit from Github and programming in Objective C.

My OBD2 Adapter is the vGate iCar2.

I'm using the Sample App from the OBD2Kit to get all my OBD2 Informations.
When I use the Sample App I just get the data one time when I open the App.
That means the values don't change while driving.

For now I try to start a new Connection to the OBD2 by pressing a Button which starts the [_scanTool startScan] method.




When I press the Button

  1. Time it works all perfectly
    but
  2. Time it doesn't walks through the "didReceiveResponse" delegates. And so it doesn't show my actual values.

So can someone help me the get the Data all the Time

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.