Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>You're question is not very specific, but I will give you some guidelines.</p> <p>First of all, test with an exisiting OBD-II reader application if your car actually works.</p> <p>The ELM327-bluetooth-connector you have (I assumed it's a ELM327) translates ASCII commands to voltages. So all you have to do, is send some ASCII commands, and you get ASCII-values back. </p> <p>The OBD protocol knows several modes and parameter's, but I will explain to get real-time data. That's mode 1.</p> <p><strong>Mode 1 Sending</strong><br> This is kinda simple as it is. Mode 1 is '01'. After that part, you have to send a parameter ID with it. 0C is for RPM, 0D is for speed. (Look into the link below). And after each command you have to send a Carriage Return. (CR = '\r')</p> <p>So basically, for speed, you have to send:</p> <pre><code>'010D\r' </code></pre> <p><strong>Receiving Mode 1</strong><br> The answer you will get back from a Mode 1 query, starts with '41'. After that the parameter ID is returned, and then the value. The value is most of the time in hex. You will have to do some conversion to read a human readable value. For more information, see the link, as formula's to convert are provided too.</p> <p>Example:</p> <pre><code>'410D17' </code></pre> <p>So 17 is the value of your current speed in hex. 17 to decimal is 23, so you're driving with 23 km/h.</p> <p>This wikipedia page has some good information about it:<br> <a href="http://en.wikipedia.org/wiki/OBD-II_PIDs">OBD-II Parameters</a></p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload