Skip to content

Standard PID Request #274

Description

@interardu

Hi. I'm guess I'm asking for you to do my homework for me....

I am trying to get Lambda data.

I have been following this #84 but the format has changed for the latest version? I am using the latest version of Elmduino according to the "Manage Libraries" in Arduino IDE.

This is the code I am using

if (DATArequest==0){
floattemplambdaRATIO=myELM327.processPID(1, 36, 4, 1, (2.0 / 65536.0),0);
DATArequest=1;
if (myELM327.nb_rx_state==ELM_SUCCESS)
{
lambdaRATIO=templambdaRATIO;
Serial.print(lambdaRATIO);
DATArequest=0;
}
elseif (myELM327.nb_rx_state!=ELM_GETTING_MSG)
SENSORnum++;
DATArequest=0;
}

with debug enabled it returns "no data"

I can pull the data like coolant temp and rpm no problem.

The solution you gave in the issue linked above was to go from

2, 2.0/65536);

to

>> (((myELM327.numPayChars / 2) - 2) * 8)) * (2.0 / 65536.0)

I don't know what I need to do with the new format.....

Activity

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

Metadata

Metadata

Assignees

Labels

questionFurther information is requested

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions