View Single Post
Posts: 11 | Thanked: 13 times | Joined on Feb 2012
#138
Originally Posted by m750 View Post
A question:
(P) 0135 -> 135 is a decimal number

135 converted in hex is 87

(43) 01 35 -> 135 is expresset in hex, converted in decimal: 309

Or not?
So according wiki page http://en.wikipedia.org/wiki/OBD-II_PIDs, 43 is the reply identifier for dtc request. Every DTC is represented with 16 bits.

reply string = 43 01 35
DTC part of the string = 01 35
DTC in bits = 0000 0001 0011 0101
Two first bits(red) define first DTC character, so that
00=P
01=C
10=B
11=U
Next two bits(blue) define second DTC character so that
00=0
01=1
10=2
11=3
Next four bits(green) define third DTC character. In this case 0001=1.
Next four bits(cyan) define fourth DTC character. In this case 0011=3.
Last four bits(black) define fifth DTC character. In this case 0101=5.

The resulting DTC is P0135.

I hope this helped a bit
//Wictor
 

The Following 5 Users Say Thank You to wictor For This Useful Post: