Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ANDROID ELM327/OBD2 PROTOCOL

Tags:

android

obd-ii

I am trying to send command from ANDROID to ELM327/OBD2 protocol (WIFI Diagnostic troubles). I downloaded an api or library from: https://github.com/pires/android-obd-reader The problem that this api not have any documentation. We need help about the command and protocol to exchange data. Thanks!

like image 547
toto Avatar asked Feb 27 '13 16:02

toto


People also ask

What protocol does OBD2 use?

OBD-II Protocols An OBD2 compliant vehicle can use any of the five communication protocols: SAE J1850 PWM, SAE J1850 VPW, ISO9141-2, ISO14230-4 (KWP2000), and since 2003 also ISO 15765-4/SAE J2480. ELM-USB and OBDTester support all of them.

What OBD2 protocol does GM use?

J2411 – Describes the GMLAN (Single-Wire CAN) protocol, used in newer GM vehicles. Often accessible on the OBD connector as PIN 1 on newer GM vehicles.


1 Answers

What do you really want to know?

With the ELM327 the protocol is fairly easy. You just send a PID in ASCII, and you will receive an answer in ASCII. It's based on polling. So you will receive 1 answer for 1 request. As long as you don't send, you don't receive.

For converting and what commands to send, check the links I provided.

Some more links:

AT Commands
OBD-II Commands

like image 159
Eric Smekens Avatar answered Oct 04 '22 12:10

Eric Smekens