You may want to add a Serial.print(inChar); in the else block of getResponse() to see what is really coming back from the ODB2.
I haven’t used it but a quick look at the documentation for the ELM327 (page 44) implies that you need to send the 0902 once and then do 5 getResponse() calls, once per line of the responding data. After each getResponse, you would print the 14 characters corresponding to that line of data. Don’t put in any delay() calls between sending the command and any of the getResponse calls to avoid overflowing the serial data buffer.
n1ist:
You may want to add a Serial.print(inChar); in the else block of getResponse() to see what is really coming back from the ODB2.
I haven’t used it but a quick look at the documentation for the ELM327 (page 44) implies that you need to send the 0902 once and then do 5 getResponse() calls, once per line of the responding data. After each getResponse, you would print the 14 characters corresponding to that line of data. Don’t put in any delay() calls between sending the command and any of the getResponse calls to avoid overflowing the serial data buffer.
/mike
Thank you for the tips. I’ll give them a try and update the thread later this evening.