ATP: How OBD2 Works

Want to get started with car hacking? This video is for you!

Favorited Favorite 2

Greetings and welcome to June! In this episode of ATP, I’m going to cover everything I consider required information about OBD2 to enable you to start poking around at the innards of your car’s data bus. We’ll do a brief history about why it exists at all, talk about the assorted buses and pinout of that oh-so-famous connector, cover the command structure, present examples and wrap up with an evaluation of how you might want to proceed (including some gear choices). I'll also point you toward more info to take you further.

Stuff you should read:

Gear that I talk about:


Comments 10 comments

  • Member #1638455 / about 3 years ago / 1

    Hi, Does any one have working PID sets for Toyota corolla 2014 vehicle?

  • hfs / about 6 years ago / 1

    Big pat on the back for this one Pete. Well done and thank you!

  • Member #394180 / about 6 years ago / 1

    Is there somewhere we could see this in text form, say a transcript file?

    • All I have are my notes, and that wouldn't be pretty. They're really chaotic and spread amongst various media...

  • Very nice

  • Member #134773 / about 6 years ago / 1

    FWIW, I just got back from having my car (a 2013 Dodge Dart) emissions tested (in the Phoenix area). All they did was to plug into the OBD2 connector, observe that when they switched from "START" to "Run" on the key that the "check engine" light came on briefly (to indicate that it was working) and then went off, and their computer "interrogated" the OBD2 stuff on the car. Oh, and they checked the gas cap for leaks. (And charged me $17.). It passed the test, so it's good to go for another two years.

  • Member #134773 / about 6 years ago / 1

    Another interesting ATP!

    Looking through the PIDs again, I still don't see anything that's the "true" odometer reading -- disappointing for my needs. I suppose I could use 0x31, distance (in km) since codes cleared, but that only goes to 65,535 (roughly 39,000 miles). It seems to me that rather than "rolling over", the way it should behave is to "stop counting" when it gets to max. I suppose that one way to deal with this would be to (intentionally) leave the gas cap off for a couple of km (that brings on the "check engine" light). I think that one will self-clear when you put the gas cap back on...

    Oh, yes, one minor argument: it seems to me that the CARB (California Air Resources Board) can only (directly) control vehicles sold in California. However, since CA represents a significant chunk of all cars sold in the US, it's often easiest for the manufacturers to make all cars comply rather than just those destined to CA (and then having to make sure that non-CA cars don't get shipped to CA). (Yeah, I know that several of CARB's standards have been adopted into national standards, but they started out as "required in California only".)

    • Regarding the gas cap, my car will shut off the engine light after 3 consecutive times not having the fault condition.

      CARB and auto manufacturers, yeah totally. If it starts out in CA, it might as well be national for exactly the reason you suggest.

      • Member #134773 / about 3 years ago / 1

        I know that Pete is no longer with SF, but I did just notice that there is now a PID 0xA6 that is supposed to return 4 bytes with the odometer reading in hectometers (tenths of a km). I rather suspect that this may be a "new" PID since my search about 3 years ago!

Related Posts

Recent Posts

Open-Source HVAC?

What is L-Band?

Tags


All Tags